Co-Authors Plus - Version 3.4.5

Version Description

= 3.1 = Manage co-authors from quick edit, Jetpack Open Graph support, bug fixes.

= 3.0.7 = Support for symlink installations, updated French translation, bug fixes.

= 3.0.4 = Bug fixes and the ability to automatically add co-authors to your feeds.

= 3.0.1 = Bug fixes and minor enhancements

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Co-Authors Plus
Version 3.4.5
Comparing to
See all releases

Code changes from version 3.4.4 to 3.4.5

Files changed (3) hide show
  1. README.md +4 -1
  2. co-authors-plus.php +9 -3
  3. readme.txt +4 -1
README.md CHANGED
@@ -4,7 +4,7 @@
4
  * Tags: authors, users, multiple authors, co-authors, multi-author, publishing
5
  * Tested up to: 5.7
6
  * Requires at least: 4.1
7
- * Stable tag: 3.4.4
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
@@ -71,6 +71,9 @@ add_filter( 'coauthors_count_published_post_types', function( $post_types ) {
71
 
72
  ## Changelog ##
73
 
 
 
 
74
  **3.4.4**
75
  * Fixed bug where author with slug beginning with "cap" does not appear in bylines AJAX suggest box when queried #744
76
  * Travis for Xenial build no longer fails #751
4
  * Tags: authors, users, multiple authors, co-authors, multi-author, publishing
5
  * Tested up to: 5.7
6
  * Requires at least: 4.1
7
+ * Stable tag: 3.4.5
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
71
 
72
  ## Changelog ##
73
 
74
+ **3.4.5**
75
+ * Fixed bug where guest authors with spaces in names were not showing when queried in AJAX suggest box.
76
+
77
  **3.4.4**
78
  * Fixed bug where author with slug beginning with "cap" does not appear in bylines AJAX suggest box when queried #744
79
  * Travis for Xenial build no longer fails #751
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.4.4
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
  Copyright: 2008-2015 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
@@ -32,7 +32,7 @@ Co-author - in the context of a single post, a guest author or user assigned to
32
  Author - user with the role of author
33
  */
34
 
35
- define( 'COAUTHORS_PLUS_VERSION', '3.4.4' );
36
 
37
  require_once( dirname( __FILE__ ) . '/template-tags.php' );
38
  require_once( dirname( __FILE__ ) . '/deprecated.php' );
@@ -1258,7 +1258,13 @@ class CoAuthors_Plus {
1258
  // Get the guest author objects
1259
  $found_users = array();
1260
  foreach ( $found_terms as $found_term ) {
1261
- $found_user = $this->get_coauthor_by( 'user_nicename', $found_term->name );
 
 
 
 
 
 
1262
  if ( ! empty( $found_user ) ) {
1263
  $found_users[ $found_user->user_login ] = $found_user;
1264
  }
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.4.5
7
  Author: Mohammad Jangda, Daniel Bachhuber, Automattic
8
  Copyright: 2008-2015 Shared and distributed between Mohammad Jangda, Daniel Bachhuber, Weston Ruter
9
 
32
  Author - user with the role of author
33
  */
34
 
35
+ define( 'COAUTHORS_PLUS_VERSION', '3.4.5' );
36
 
37
  require_once( dirname( __FILE__ ) . '/template-tags.php' );
38
  require_once( dirname( __FILE__ ) . '/deprecated.php' );
1258
  // Get the guest author objects
1259
  $found_users = array();
1260
  foreach ( $found_terms as $found_term ) {
1261
+ $found_user = $this->get_coauthor_by( 'user_nicename', $found_term->slug );
1262
+ if ( ! $found_user && 0 === strpos( $found_term->slug, 'cap-cap-' ) ) {
1263
+ // Account for guest author terms that start with 'cap-'.
1264
+ // e.g. "Cap Ri" -> "cap-cap-ri".
1265
+ $cap_slug = substr( $found_term->slug, 4, strlen( $found_term->slug ) );
1266
+ $found_user = $this->get_coauthor_by( 'user_nicename', $cap_slug );
1267
+ }
1268
  if ( ! empty( $found_user ) ) {
1269
  $found_users[ $found_user->user_login ] = $found_user;
1270
  }
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: 5.7
5
  Requires at least: 4.1
6
- Stable tag: 3.4.4
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
@@ -62,6 +62,9 @@ Bug fixes and minor enhancements
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 3.4.4 =
66
  * Fixed bug where author with slug beginning with "cap" does not appear in bylines AJAX suggest box when queried
67
  * Travis for Xenial build no longer fails
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
  Tested up to: 5.7
5
  Requires at least: 4.1
6
+ Stable tag: 3.4.5
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
62
 
63
  == Changelog ==
64
 
65
+ =3.4.5=
66
+ * Fixed bug where guest authors with spaces in names were not showing when queried in AJAX suggest box.
67
+
68
  = 3.4.4 =
69
  * Fixed bug where author with slug beginning with "cap" does not appear in bylines AJAX suggest box when queried
70
  * Travis for Xenial build no longer fails