Co-Authors Plus - Version 3.5.1

Version Description

Download this release

Release Info

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

Code changes from version 3.5 to 3.5.1

Files changed (57) hide show
  1. CHANGELOG.md +3 -0
  2. Makefile +0 -0
  3. README.md +1 -1
  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 +2 -2
  8. composer.json +0 -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 +4 -2
  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 +1 -1
  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,8 @@
1
  # Changelog for Co-Authors Plus
2
 
 
 
 
3
  **3.5 (April 21, 2022)**
4
  * Add Block Editor integration #790
5
  * Fix issues with cache key `id` not being deleted #832
1
  # Changelog for Co-Authors Plus
2
 
3
+ **3.5.1 (April 25, 2022)**
4
+ * Fix error for undefined `use_block_editor_for_post` #843
5
+
6
  **3.5 (April 21, 2022)**
7
  * Add Block Editor integration #790
8
  * Fix issues with cache key `id` not being deleted #832
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
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
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.1
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
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
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.0' );
36
 
37
  require_once dirname( __FILE__ ) . '/template-tags.php';
38
  require_once dirname( __FILE__ ) . '/deprecated.php';
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.1
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.1' );
36
 
37
  require_once dirname( __FILE__ ) . '/template-tags.php';
38
  require_once dirname( __FILE__ ) . '/deprecated.php';
composer.json CHANGED
File without changes
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",
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.1",
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
@@ -236,7 +236,7 @@ class Endpoints {
236
  * Get authors' data and add it to the response.
237
  *
238
  * @param array The response array.
239
- * @param int Thet post ID from the request.
240
  */
241
  public function _build_authors_response( &$response, $request ) {
242
  $authors = get_coauthors( $request->get_param( 'post_id' ) );
@@ -289,7 +289,9 @@ class Endpoints {
289
  return $response;
290
  }
291
 
292
- if ( ! use_block_editor_for_post( $post ) ) {
 
 
293
  return $response;
294
  }
295
 
236
  * Get authors' data and add it to the response.
237
  *
238
  * @param array The response array.
239
+ * @param int The post ID from the request.
240
  */
241
  public function _build_authors_response( &$response, $request ) {
242
  $authors = get_coauthors( $request->get_param( 'post_id' ) );
289
  return $response;
290
  }
291
 
292
+ require_once ABSPATH . '/wp-admin/includes/post.php';
293
+
294
+ if ( ! \use_block_editor_for_post( $post ) ) {
295
  return $response;
296
  }
297
 
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
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
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.1
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
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