Co-Authors Plus - Version 3.0.3

Version Description

(Dec. 3, 2012) = * Bug fix: The default order for the 'author' taxonomy should be 'term_order', in order for the author positions to stick. Props lgedeon

Download this release

Release Info

Developer danielbachhuber
Plugin Icon wp plugin Co-Authors Plus
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

co-authors-plus.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Co-Authors Plus
4
  Plugin URI: http://wordpress.org/extend/plugins/co-authors-plus/
5
  Description: Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter.
6
- Version: 3.0.2
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
  Copyright: 2008-2012 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
 
25
  */
26
 
27
- define( 'COAUTHORS_PLUS_VERSION', '3.0.2' );
28
 
29
  define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
30
  define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
@@ -152,6 +152,7 @@ class coauthors_plus {
152
  'rewrite' => false,
153
  'public' => false,
154
  'sort' => true,
 
155
  'show_ui' => false
156
  );
157
  $post_types_with_authors = array_values( get_post_types() );
3
  Plugin Name: Co-Authors Plus
4
  Plugin URI: http://wordpress.org/extend/plugins/co-authors-plus/
5
  Description: Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter.
6
+ Version: 3.0.3
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
  Copyright: 2008-2012 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
24
 
25
  */
26
 
27
+ define( 'COAUTHORS_PLUS_VERSION', '3.0.3' );
28
 
29
  define( 'COAUTHORS_PLUS_PATH', dirname( __FILE__ ) );
30
  define( 'COAUTHORS_PLUS_URL', plugin_dir_url( __FILE__ ) );
152
  'rewrite' => false,
153
  'public' => false,
154
  'sort' => true,
155
+ 'args' => array( 'orderby' => 'term_order' ),
156
  'show_ui' => false
157
  );
158
  $post_types_with_authors = array_values( get_post_types() );
php/class-coauthors-guest-authors.php CHANGED
@@ -654,8 +654,10 @@ class CoAuthors_Guest_Authors
654
  // Guest authors can't be created with the same user_login as a user
655
  $user_nicename = str_replace( 'cap-', '', $slug );
656
  $user = get_user_by( 'slug', $user_nicename );
657
- if ( $user && $user->user_login != get_post_meta( $original_args['ID'], $this->get_post_meta_key( 'linked_account' ), true ) )
658
- wp_die( __( 'Guest authors cannot be created with the same user_login value as a user. Try creating a profile from the user instead', 'co-authors-plus' ) );
 
 
659
 
660
  // Guest authors can't have the same post_name value
661
  $guest_author = $this->get_guest_author_by( 'post_name', $post_data['post_name'] );
654
  // Guest authors can't be created with the same user_login as a user
655
  $user_nicename = str_replace( 'cap-', '', $slug );
656
  $user = get_user_by( 'slug', $user_nicename );
657
+ if ( $user
658
+ && is_user_member_of_blog( $user->ID, get_current_blog_id() )
659
+ && $user->user_login != get_post_meta( $original_args['ID'], $this->get_post_meta_key( 'linked_account' ), true ) )
660
+ wp_die( __( 'Guest authors cannot be created with the same user_login value as a user. Try creating a profile from the user on the Manage Users listing instead.', 'co-authors-plus' ) );
661
 
662
  // Guest authors can't have the same post_name value
663
  $guest_author = $this->get_guest_author_by( 'post_name', $post_data['post_name'] );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: batmoo, danielbachhuber, automattic
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
  Tested up to: 3.4.2
5
  Requires at least: 3.3
6
- Stable tag: 3.0.2
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
@@ -34,6 +34,9 @@ Bug fixes and minor enhancements
34
 
35
  == Changelog ==
36
 
 
 
 
37
  = 3.0.2 (Nov. 23, 2012) =
38
  * Bug fix: Fall back to non-pretty permalinks when the author permastruct is empty, so that coauthors_posts_links() doesn't link to the homepage
39
 
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
  Tested up to: 3.4.2
5
  Requires at least: 3.3
6
+ Stable tag: 3.0.3
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
34
 
35
  == Changelog ==
36
 
37
+ = 3.0.3 (Dec. 3, 2012) =
38
+ * Bug fix: The default order for the 'author' taxonomy should be 'term_order', in order for the author positions to stick. Props [lgedeon](https://github.com/lgedeon)
39
+
40
  = 3.0.2 (Nov. 23, 2012) =
41
  * Bug fix: Fall back to non-pretty permalinks when the author permastruct is empty, so that coauthors_posts_links() doesn't link to the homepage
42