Co-Authors Plus - Version 3.5.3

Version Description

  • Add author taxonomy labels #860
  • Add check for empty author in Jetpack Open Graph tags #861
  • Improve performance of search_authors() #872
  • Update WP versions in tests and grant permission to composer-installer packages #863

For all previous changes, view the Changelog

Download this release

Release Info

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

Code changes from version 3.5.2 to 3.5.3

Files changed (57) hide show
  1. CHANGELOG.md +6 -0
  2. Makefile +0 -0
  3. README.md +6 -4
  4. build/index.asset.php +0 -0
  5. build/index.js +0 -0
  6. build/style-index.css +0 -0
  7. co-authors-plus.php +18 -11
  8. composer.json +6 -0
  9. css/co-authors-plus.css +0 -0
  10. css/guest-authors.css +0 -0
  11. deprecated.php +0 -0
  12. js/guest-authors.js +0 -0
  13. languages/co-authors-plus-de_DE.mo +0 -0
  14. languages/co-authors-plus-de_DE.po +0 -0
  15. languages/co-authors-plus-he_IL.mo +0 -0
  16. languages/co-authors-plus-he_IL.po +0 -0
  17. languages/co-authors-plus-nl_NL.mo +0 -0
  18. languages/co-authors-plus-nl_NL.po +0 -0
  19. languages/co-authors-plus-sv_SE.mo +0 -0
  20. languages/co-authors-plus-sv_SE.po +0 -0
  21. lib/select2/select2.css +0 -0
  22. lib/select2/select2.min.js +0 -0
  23. lib/select2/select2.png +0 -0
  24. lib/select2/select2x2.png +0 -0
  25. lib/select2/spinner.gif +0 -0
  26. package-lock.json +0 -0
  27. package.json +1 -1
  28. php/class-coauthors-endpoint.php +0 -0
  29. php/class-coauthors-guest-authors.php +0 -0
  30. php/class-coauthors-template-filters.php +0 -0
  31. php/class-wp-cli.php +0 -0
  32. php/integrations/amp.php +0 -0
  33. php/integrations/amp/meta-author.php +0 -0
  34. phpunit.xml +0 -0
  35. readme.txt +6 -4
  36. screenshot-1.png +0 -0
  37. screenshot-2.png +0 -0
  38. screenshot-3.png +0 -0
  39. src/__mocks__/authors.js +0 -0
  40. src/__tests__/utils.test.js +0 -0
  41. src/components/AuthorsSelection.js +0 -0
  42. src/index.js +0 -0
  43. src/store.js +0 -0
  44. src/style.css +0 -0
  45. src/utils.js +0 -0
  46. template-tags.php +0 -0
  47. tests/bootstrap.php +0 -0
  48. tests/coauthorsplus-testcase.php +0 -0
  49. tests/fixtures/dummy-attachment.png +0 -0
  50. tests/test-author-queried-object.php +0 -0
  51. tests/test-author-queries.php +0 -0
  52. tests/test-coauthors-endpoint.php +0 -0
  53. tests/test-coauthors-guest-authors.php +0 -0
  54. tests/test-coauthors-plus.php +0 -0
  55. tests/test-manage-coauthors.php +0 -0
  56. tests/test-template-tags.php +0 -0
  57. upgrade.php +0 -0
CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
  # Changelog for Co-Authors Plus
2
 
 
 
 
 
 
 
3
  **3.5.2 (June 1, 2022)**
4
  * Remove the `/wp/v2/coauthors` endpoint #851
5
  * Remove CSS hack that hides the add author box from core in the block editor #847
1
  # Changelog for Co-Authors Plus
2
 
3
+ **3.5.3 (Oct 24, 2022)**
4
+ * Add author taxonomy labels #860
5
+ * Add check for empty author in Jetpack Open Graph tags #861
6
+ * Improve performance of search_authors() #872
7
+ * Update WP versions in tests and grant permission to composer-installer packages #863
8
+
9
  **3.5.2 (June 1, 2022)**
10
  * Remove the `/wp/v2/coauthors` endpoint #851
11
  * Remove CSS hack that hides the add author box from core in the block editor #847
Makefile CHANGED
File without changes
README.md CHANGED
@@ -4,7 +4,7 @@
4
  * Tags: authors, users, multiple authors, co-authors, multi-author, publishing
5
  * Tested up to: 5.8
6
  * Requires at least: 4.1
7
- * Stable tag: 3.5.2
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
@@ -85,8 +85,10 @@ add_filter( 'coauthors_count_published_post_types', function( $post_types ) {
85
 
86
  ## Changelog
87
 
88
- **3.5.2 (June 1, 2022)**
89
- * Remove the `/wp/v2/coauthors` endpoint #851
90
- * Remove CSS hack that hides the add author box from core in the block editor #847
 
 
91
 
92
  For all previous changes, [view the Changelog](https://github.com/Automattic/Co-Authors-Plus/blob/master/CHANGELOG.md)
4
  * Tags: authors, users, multiple authors, co-authors, multi-author, publishing
5
  * Tested up to: 5.8
6
  * Requires at least: 4.1
7
+ * Stable tag: 3.5.3
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
85
 
86
  ## Changelog
87
 
88
+ **3.5.3 (Oct 24, 2022)**
89
+ * Add author taxonomy labels #860
90
+ * Add check for empty author in Jetpack Open Graph tags #861
91
+ * Improve performance of search_authors() #872
92
+ * Update WP versions in tests and grant permission to composer-installer packages #863
93
 
94
  For all previous changes, [view the Changelog](https://github.com/Automattic/Co-Authors-Plus/blob/master/CHANGELOG.md)
build/index.asset.php CHANGED
File without changes
build/index.js CHANGED
File without changes
build/style-index.css CHANGED
File without changes
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.5.2
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.5.2' );
36
 
37
  require_once dirname( __FILE__ ) . '/template-tags.php';
38
  require_once dirname( __FILE__ ) . '/deprecated.php';
@@ -220,7 +220,10 @@ class CoAuthors_Plus {
220
  // Register new taxonomy so that we can store all of the relationships
221
  $args = array(
222
  'hierarchical' => false,
223
- 'label' => false,
 
 
 
224
  'query_var' => false,
225
  'rewrite' => false,
226
  'public' => false,
@@ -1302,6 +1305,7 @@ class CoAuthors_Plus {
1302
  'user_email',
1303
  'user_login',
1304
  ),
 
1305
  'fields' => 'all_with_meta',
1306
  );
1307
  $found_users = get_users( $args );
@@ -1683,14 +1687,17 @@ class CoAuthors_Plus {
1683
  public function filter_jetpack_open_graph_tags( $og_tags, $image_dimensions ) {
1684
 
1685
  if ( is_author() ) {
1686
- $author = get_queried_object();
1687
- $og_tags['og:title'] = $author->display_name;
1688
- $og_tags['og:url'] = get_author_posts_url( $author->ID, $author->user_nicename );
1689
- $og_tags['og:description'] = $author->description;
1690
- $og_tags['profile:first_name'] = $author->first_name;
1691
- $og_tags['profile:last_name'] = $author->last_name;
1692
- if ( isset( $og_tags['article:author'] ) ) {
1693
- $og_tags['article:author'] = get_author_posts_url( $author->ID, $author->user_nicename );
 
 
 
1694
  }
1695
  } elseif ( is_singular() && $this->is_post_type_enabled() ) {
1696
  $authors = get_coauthors();
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.5.3
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.5.3' );
36
 
37
  require_once dirname( __FILE__ ) . '/template-tags.php';
38
  require_once dirname( __FILE__ ) . '/deprecated.php';
220
  // Register new taxonomy so that we can store all of the relationships
221
  $args = array(
222
  'hierarchical' => false,
223
+ 'labels' => array(
224
+ 'name' => __( 'Authors' ),
225
+ 'all_items' => __( 'All Authors' ),
226
+ ),
227
  'query_var' => false,
228
  'rewrite' => false,
229
  'public' => false,
1305
  'user_email',
1306
  'user_login',
1307
  ),
1308
+ 'capability' => array( apply_filters( 'coauthors_edit_author_cap', 'edit_posts' ) ),
1309
  'fields' => 'all_with_meta',
1310
  );
1311
  $found_users = get_users( $args );
1687
  public function filter_jetpack_open_graph_tags( $og_tags, $image_dimensions ) {
1688
 
1689
  if ( is_author() ) {
1690
+ $author = get_queried_object();
1691
+
1692
+ if ( ! empty( $author ) ) {
1693
+ $og_tags['og:title'] = $author->display_name;
1694
+ $og_tags['og:url'] = get_author_posts_url( $author->ID, $author->user_nicename );
1695
+ $og_tags['og:description'] = $author->description;
1696
+ $og_tags['profile:first_name'] = $author->first_name;
1697
+ $og_tags['profile:last_name'] = $author->last_name;
1698
+ if ( isset( $og_tags['article:author'] ) ) {
1699
+ $og_tags['article:author'] = get_author_posts_url( $author->ID, $author->user_nicename );
1700
+ }
1701
  }
1702
  } elseif ( is_singular() && $this->is_post_type_enabled() ) {
1703
  $authors = get_coauthors();
composer.json CHANGED
@@ -58,5 +58,11 @@
58
  "@putenv WP_MULTISITE=1",
59
  "@composer integration"
60
  ]
 
 
 
 
 
 
61
  }
62
  }
58
  "@putenv WP_MULTISITE=1",
59
  "@composer integration"
60
  ]
61
+ },
62
+ "config": {
63
+ "allow-plugins": {
64
+ "composer/installers": true,
65
+ "dealerdirect/phpcodesniffer-composer-installer": true
66
+ }
67
  }
68
  }
css/co-authors-plus.css CHANGED
File without changes
css/guest-authors.css CHANGED
File without changes
deprecated.php CHANGED
File without changes
js/guest-authors.js CHANGED
File without changes
languages/co-authors-plus-de_DE.mo CHANGED
File without changes
languages/co-authors-plus-de_DE.po CHANGED
File without changes
languages/co-authors-plus-he_IL.mo CHANGED
File without changes
languages/co-authors-plus-he_IL.po CHANGED
File without changes
languages/co-authors-plus-nl_NL.mo CHANGED
File without changes
languages/co-authors-plus-nl_NL.po CHANGED
File without changes
languages/co-authors-plus-sv_SE.mo CHANGED
File without changes
languages/co-authors-plus-sv_SE.po CHANGED
File without changes
lib/select2/select2.css CHANGED
File without changes
lib/select2/select2.min.js CHANGED
File without changes
lib/select2/select2.png CHANGED
File without changes
lib/select2/select2x2.png CHANGED
File without changes
lib/select2/spinner.gif CHANGED
File without changes
package-lock.json CHANGED
File without changes
package.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "name": "co-authors-plus-3.5.2",
3
  "version": "1.0.0",
4
  "description": "Allows multiple authors to be assigned to a post.",
5
  "main": "index.js",
1
  {
2
+ "name": "co-authors-plus-3.5.3",
3
  "version": "1.0.0",
4
  "description": "Allows multiple authors to be assigned to a post.",
5
  "main": "index.js",
php/class-coauthors-endpoint.php CHANGED
File without changes
php/class-coauthors-guest-authors.php CHANGED
File without changes
php/class-coauthors-template-filters.php CHANGED
File without changes
php/class-wp-cli.php CHANGED
File without changes
php/integrations/amp.php CHANGED
File without changes
php/integrations/amp/meta-author.php CHANGED
File without changes
phpunit.xml CHANGED
File without changes
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.8
5
  Requires at least: 4.1
6
- Stable tag: 3.5.2
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
@@ -62,8 +62,10 @@ Yep! Guest authors can be disabled entirely through an apt filter. Having the fo
62
 
63
  == Changelog ==
64
 
65
- = 3.5.2 =
66
- * Remove the `/wp/v2/coauthors` endpoint #851
67
- * Remove CSS hack that hides the add author box from core in the block editor #847
 
 
68
 
69
  For all previous changes, [view the Changelog](https://github.com/Automattic/Co-Authors-Plus/blob/master/CHANGELOG.md)
3
  Tags: authors, users, multiple authors, coauthors, multi-author, publishing
4
  Tested up to: 5.8
5
  Requires at least: 4.1
6
+ Stable tag: 3.5.3
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.5.3 =
66
+ * Add author taxonomy labels #860
67
+ * Add check for empty author in Jetpack Open Graph tags #861
68
+ * Improve performance of search_authors() #872
69
+ * Update WP versions in tests and grant permission to composer-installer packages #863
70
 
71
  For all previous changes, [view the Changelog](https://github.com/Automattic/Co-Authors-Plus/blob/master/CHANGELOG.md)
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
File without changes
screenshot-3.png CHANGED
File without changes
src/__mocks__/authors.js CHANGED
File without changes
src/__tests__/utils.test.js CHANGED
File without changes
src/components/AuthorsSelection.js CHANGED
File without changes
src/index.js CHANGED
File without changes
src/store.js CHANGED
File without changes
src/style.css CHANGED
File without changes
src/utils.js CHANGED
File without changes
template-tags.php CHANGED
File without changes
tests/bootstrap.php CHANGED
File without changes
tests/coauthorsplus-testcase.php CHANGED
File without changes
tests/fixtures/dummy-attachment.png CHANGED
File without changes
tests/test-author-queried-object.php CHANGED
File without changes
tests/test-author-queries.php CHANGED
File without changes
tests/test-coauthors-endpoint.php CHANGED
File without changes
tests/test-coauthors-guest-authors.php CHANGED
File without changes
tests/test-coauthors-plus.php CHANGED
File without changes
tests/test-manage-coauthors.php CHANGED
File without changes
tests/test-template-tags.php CHANGED
File without changes
upgrade.php CHANGED
File without changes