Skip to content

Commit 252951f

Browse files
authored
Merge pull request #1040 from Automattic/release/3.6.1
Release 3.6.1
2 parents 2f124f4 + af01981 commit 252951f

6 files changed

+25
-8
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.6.1] - 2024-04-25
9+
10+
### Fixed
11+
12+
* Fix missing author column in wp-admin Posts table #1038
13+
814
## [3.6.0] - 2024-04-22
915

1016
### Added
@@ -488,6 +494,7 @@ Props to the many people who helped make this release possible: [catchmyfame](ht
488494
**1.1.0 (Apr. 14, 2009)**
489495
* Initial beta release.
490496

497+
[3.6.1]: https://github.com/automattic/co-authors-plus/compare/3.6.0..3.6.1
491498
[3.6.0]: https://github.com/automattic/co-authors-plus/compare/3.5.15...3.6.0
492499
[3.5.15]: https://github.com/automattic/co-authors-plus/compare/3.5.14...3.5.15
493500
[3.5.14]: https://github.com/automattic/co-authors-plus/compare/3.5.13...3.5.14

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Co-Authors Plus
22

3-
Stable tag: 3.6.0
3+
Stable tag: 3.6.1
44
Requires at least: 4.1
55
Tested up to: 6.5
66
Requires PHP: 5.6

co-authors-plus.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Plugin Name: Co-Authors Plus
1212
* Plugin URI: https://wordpress.org/plugins/co-authors-plus/
1313
* 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.
14-
* Version: 3.6.0
14+
* Version: 3.6.1
1515
* Requires at least: 5.7
1616
* Requires PHP: 7.4
1717
* Author: Mohammad Jangda, Daniel Bachhuber, Automattic
@@ -21,7 +21,7 @@
2121
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
2222
*/
2323

24-
const COAUTHORS_PLUS_VERSION = '3.6.0';
24+
const COAUTHORS_PLUS_VERSION = '3.6.1';
2525
const COAUTHORS_PLUS_FILE = __FILE__;
2626

2727
require_once __DIR__ . '/template-tags.php';

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "co-authors-plus",
3-
"version": "3.6.0",
3+
"version": "3.6.1",
44
"description": "Allows multiple authors to be assigned to a post.",
55
"license": "GPL-2.0-or-later",
66
"private": true,

php/class-coauthors-plus.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function admin_init() {
250250
*
251251
* By default, this is the built-in and custom post types that have authors.
252252
*
253-
* @since 3.5.16
253+
* @since 3.6.0
254254
*
255255
* @return array Supported post types.
256256
*/
@@ -487,13 +487,23 @@ public function refresh_coauthors_nonce( $response ) {
487487
}
488488

489489
/**
490-
* Removes the default 'author' dropdown from quick edit
490+
* Removes the default 'author' dropdown from quick edit.
491491
*/
492492
public function remove_quick_edit_authors_box() {
493493
global $pagenow;
494494

495495
if ( 'edit.php' === $pagenow && $this->is_post_type_enabled() ) {
496-
remove_post_type_support( get_post_type(), $this->coauthor_taxonomy );
496+
/*
497+
* The author dropdown isn't displayed if wp_dropdown_users( $args ) returns an empty string.
498+
* It will return an empty string if the user query returns an empty array.
499+
* We can force it return an empty array by changing $args to include only the user ID 0 which doesn't exist.
500+
* We can target the $args specific to Quick Edit using the filter quick_edit_dropdown_authors_args.
501+
* See https://github.com/Automattic/Co-Authors-Plus/issues/1033.
502+
*/
503+
add_filter(
504+
'quick_edit_dropdown_authors_args',
505+
static fn() => [ 'include' => [ 0 ] ]
506+
);
497507
}
498508
}
499509

0 commit comments

Comments
 (0)