Co-Authors Plus - Version 3.5.2

Version Description

  • Remove the /wp/v2/coauthors endpoint #851
  • Remove CSS hack that hides the add author box from core in the block editor #847

For all previous changes, view the Changelog

Download this release

Release Info

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

Code changes from version 3.5.1 to 3.5.2

Files changed (6) hide show
  1. CHANGELOG.md +4 -0
  2. README.md +9 -1
  3. co-authors-plus.php +2 -4
  4. css/co-authors-plus.css +111 -118
  5. package.json +1 -1
  6. readme.txt +13 -5
CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
 
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
6
+
7
  **3.5.1 (April 25, 2022)**
8
  * Fix error for undefined `use_block_editor_for_post` #843
9
 
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.1
8
 
9
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
10
 
@@ -82,3 +82,11 @@ add_filter( 'coauthors_count_published_post_types', function( $post_types ) {
82
  1. Multiple authors can be added to a Post, Page, or Custom Post Type using an auto-complete interface.
83
  2. The order of your co-authors can be changed by drag and drop.
84
  3. Guest authors allow you to assign bylines without creating WordPress user accounts. You can also override existing WordPress account meta by mapping a guest author to a WordPress user.
 
 
 
 
 
 
 
 
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
 
82
  1. Multiple authors can be added to a Post, Page, or Custom Post Type using an auto-complete interface.
83
  2. The order of your co-authors can be changed by drag and drop.
84
  3. Guest authors allow you to assign bylines without creating WordPress user accounts. You can also override existing WordPress account meta by mapping a guest author to a WordPress user.
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)
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.1
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.1' );
36
 
37
  require_once dirname( __FILE__ ) . '/template-tags.php';
38
  require_once dirname( __FILE__ ) . '/deprecated.php';
@@ -226,9 +226,7 @@ class CoAuthors_Plus {
226
  'public' => false,
227
  'sort' => true,
228
  'args' => array( 'orderby' => 'term_order' ),
229
- 'show_in_rest' => true,
230
  'show_ui' => false,
231
- 'rest_base' => 'coauthors',
232
  );
233
 
234
  // If we use the nasty SQL query, we need our custom callback. Otherwise, we still need to flush cache.
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
  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';
226
  'public' => false,
227
  'sort' => true,
228
  'args' => array( 'orderby' => 'term_order' ),
 
229
  'show_ui' => false,
 
230
  );
231
 
232
  // If we use the nasty SQL query, we need our custom callback. Otherwise, we still need to flush cache.
css/co-authors-plus.css CHANGED
@@ -1,118 +1,111 @@
1
- .inline-edit-group.inline-edit-coauthors {
2
- display: none;
3
- }
4
-
5
- .inline-edit-group.inline-edit-coauthors #coauthors-edit {
6
- margin-left: 5em;
7
- }
8
-
9
- #coauthors-list {
10
- width: 100%;
11
- padding: 0 5px;
12
- }
13
- #coauthors-list td {
14
- padding-left:0;
15
- padding-right:0;
16
- vertical-align: middle;
17
- background: #F9F9F9;
18
- }
19
-
20
- #coauthors-list .coauthor-row {
21
- overflow: hidden;
22
- }
23
- #coauthors-list .coauthor-tag {
24
- width: 200px;
25
- display: block;
26
- padding: 10px 3px 5px;
27
- font-size: 13px;
28
- color: #21759B;
29
- border-bottom: 1px solid #21759B;
30
- cursor: text;
31
- float: left;
32
- }
33
- #coauthors-list .coauthor-tag:hover {
34
- cursor: text;
35
- background: #EAF2FA;
36
- color:#D54E21;
37
- }
38
- #coauthors-list .ui-state-highlight {
39
- border:2px dashed #21759B;
40
- height:31px;
41
- margin-top:3px;
42
- width:200px;
43
- }
44
- #coauthors-list .ui-sortable-helper .coauthor-tag {
45
- cursor: grabbing;
46
- cursor:-moz-grabbing;
47
- cursor:-webkit-grabbing;
48
- }
49
- #coauthors-list .coauthor-gravatar {
50
- float: right;
51
- height: 25px;
52
- margin-right: 5px;
53
- margin-top: -5px;
54
- width: 25px;
55
- }
56
- #coauthors-list .coauthor-suggest {
57
- margin: 5px 0;
58
- color: #888;
59
- width: 200px;
60
- float: left;
61
- }
62
- #coauthors-list .coauthor-suggest:focus {
63
- color: #333;
64
- }
65
- #coauthors-list .coauthors-author-options {
66
- overflow: hidden;
67
- padding: 7px 0 0 7px;
68
- }
69
- #coauthors-list .delete-coauthor {
70
- display: block;
71
- float: left;
72
- padding: 5px;
73
- text-decoration: underline;
74
- color: #FF0000;
75
- font-size: 11px;
76
-
77
- border: 1px solid transparent;
78
- }
79
- #coauthors-list .delete-coauthor:hover {
80
- cursor: pointer;
81
- background: #FF0000;
82
- color: #fff;
83
-
84
- border: 1px solid #FF0000;
85
- border-radius: 3px;
86
- -moz-border-radius: 3px;
87
- -webkit-border-radius: 3px;
88
- }
89
- #coauthors-loading {
90
- margin: 10px 0px 5px 10px;
91
- float: left;
92
- }
93
-
94
- #coauthors-readonly {
95
- }
96
- #coauthors-readonly ul {
97
- list-style: none;
98
- padding: 0;
99
- margin: 0;
100
- }
101
- #coauthors-readonly ul li {
102
- }
103
- #coauthors-readonly ul li .avatar {
104
- float: left;
105
- }
106
- #coauthors-readonly ul li .coauthor-tag {
107
- display:block;
108
- padding: 5px 3px;
109
- margin-left: 30px;
110
- font-size: 13px;
111
- }
112
-
113
- /** Block Editor Hack for 5.0: Hide the core author input **/
114
- .block-editor label[for^="post-author-selector-"],
115
- .block-editor select[id^="post-author-selector-"],
116
- .block-editor .post-author-selector {
117
- display: none;
118
- }
1
+ .inline-edit-group.inline-edit-coauthors {
2
+ display: none;
3
+ }
4
+
5
+ .inline-edit-group.inline-edit-coauthors #coauthors-edit {
6
+ margin-left: 5em;
7
+ }
8
+
9
+ #coauthors-list {
10
+ width: 100%;
11
+ padding: 0 5px;
12
+ }
13
+ #coauthors-list td {
14
+ padding-left:0;
15
+ padding-right:0;
16
+ vertical-align: middle;
17
+ background: #F9F9F9;
18
+ }
19
+
20
+ #coauthors-list .coauthor-row {
21
+ overflow: hidden;
22
+ }
23
+ #coauthors-list .coauthor-tag {
24
+ width: 200px;
25
+ display: block;
26
+ padding: 10px 3px 5px;
27
+ font-size: 13px;
28
+ color: #21759B;
29
+ border-bottom: 1px solid #21759B;
30
+ cursor: text;
31
+ float: left;
32
+ }
33
+ #coauthors-list .coauthor-tag:hover {
34
+ cursor: text;
35
+ background: #EAF2FA;
36
+ color:#D54E21;
37
+ }
38
+ #coauthors-list .ui-state-highlight {
39
+ border:2px dashed #21759B;
40
+ height:31px;
41
+ margin-top:3px;
42
+ width:200px;
43
+ }
44
+ #coauthors-list .ui-sortable-helper .coauthor-tag {
45
+ cursor: grabbing;
46
+ cursor:-moz-grabbing;
47
+ cursor:-webkit-grabbing;
48
+ }
49
+ #coauthors-list .coauthor-gravatar {
50
+ float: right;
51
+ height: 25px;
52
+ margin-right: 5px;
53
+ margin-top: -5px;
54
+ width: 25px;
55
+ }
56
+ #coauthors-list .coauthor-suggest {
57
+ margin: 5px 0;
58
+ color: #888;
59
+ width: 200px;
60
+ float: left;
61
+ }
62
+ #coauthors-list .coauthor-suggest:focus {
63
+ color: #333;
64
+ }
65
+ #coauthors-list .coauthors-author-options {
66
+ overflow: hidden;
67
+ padding: 7px 0 0 7px;
68
+ }
69
+ #coauthors-list .delete-coauthor {
70
+ display: block;
71
+ float: left;
72
+ padding: 5px;
73
+ text-decoration: underline;
74
+ color: #FF0000;
75
+ font-size: 11px;
76
+
77
+ border: 1px solid transparent;
78
+ }
79
+ #coauthors-list .delete-coauthor:hover {
80
+ cursor: pointer;
81
+ background: #FF0000;
82
+ color: #fff;
83
+
84
+ border: 1px solid #FF0000;
85
+ border-radius: 3px;
86
+ -moz-border-radius: 3px;
87
+ -webkit-border-radius: 3px;
88
+ }
89
+ #coauthors-loading {
90
+ margin: 10px 0px 5px 10px;
91
+ float: left;
92
+ }
93
+
94
+ #coauthors-readonly {
95
+ }
96
+ #coauthors-readonly ul {
97
+ list-style: none;
98
+ padding: 0;
99
+ margin: 0;
100
+ }
101
+ #coauthors-readonly ul li {
102
+ }
103
+ #coauthors-readonly ul li .avatar {
104
+ float: left;
105
+ }
106
+ #coauthors-readonly ul li .coauthor-tag {
107
+ display:block;
108
+ padding: 5px 3px;
109
+ margin-left: 30px;
110
+ font-size: 13px;
111
+ }
 
 
 
 
 
 
 
package.json CHANGED
@@ -1,5 +1,5 @@
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",
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",
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.1
7
 
8
  Assign multiple bylines to posts, pages, and custom post types via a search-as-you-type input box
9
 
@@ -49,13 +49,21 @@ Yep! Guest authors can be disabled entirely through an apt filter. Having the fo
49
  == Installation ==
50
 
51
  1. IMPORTANT: Please disable the original Co-Authors plugin (if you are using it) before installing Co-Authors Plus
52
- 1. Extract the coauthors-plus.zip file and upload its contents to the `/wp-content/plugins/` directory. Alternately, you can install directly from the Plugin directory within your WordPress Install.
53
- 1. Activate the plugin through the "Plugins" menu in WordPress.
54
- 1. Place the appropriate [co-authors template tags](http://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/) in your template.
55
- 1. Add co-authors to your posts and pages.
56
 
57
  == Screenshots ==
58
 
59
  1. Multiple authors can be added to a Post, Page, or Custom Post Type using an auto-complete interface.
60
  2. The order of your co-authors can be changed by drag and drop.
61
  3. Guest authors allow you to assign bylines without creating WordPress user accounts. You can also override existing WordPress account meta by mapping a guest author to a WordPress user.
 
 
 
 
 
 
 
 
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
 
49
  == Installation ==
50
 
51
  1. IMPORTANT: Please disable the original Co-Authors plugin (if you are using it) before installing Co-Authors Plus
52
+ 2. Extract the coauthors-plus.zip file and upload its contents to the `/wp-content/plugins/` directory. Alternately, you can install directly from the Plugin directory within your WordPress Install.
53
+ 3. Activate the plugin through the "Plugins" menu in WordPress.
54
+ 4. Place the appropriate [co-authors template tags](http://vip.wordpress.com/documentation/incorporate-co-authors-plus-template-tags-into-your-theme/) in your template.
55
+ 5. Add co-authors to your posts and pages.
56
 
57
  == Screenshots ==
58
 
59
  1. Multiple authors can be added to a Post, Page, or Custom Post Type using an auto-complete interface.
60
  2. The order of your co-authors can be changed by drag and drop.
61
  3. Guest authors allow you to assign bylines without creating WordPress user accounts. You can also override existing WordPress account meta by mapping a guest author to a WordPress user.
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)