Skip to content

Commit

Permalink
Merge pull request #1040 from Automattic/release/3.6.1
Browse files Browse the repository at this point in the history
Release 3.6.1
  • Loading branch information
alecgeatches authored Apr 25, 2024
2 parents 2f124f4 + af01981 commit 252951f
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.6.1] - 2024-04-25

### Fixed

* Fix missing author column in wp-admin Posts table #1038

## [3.6.0] - 2024-04-22

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

[3.6.1]: https://github.com/automattic/co-authors-plus/compare/3.6.0..3.6.1
[3.6.0]: https://github.com/automattic/co-authors-plus/compare/3.5.15...3.6.0
[3.5.15]: https://github.com/automattic/co-authors-plus/compare/3.5.14...3.5.15
[3.5.14]: https://github.com/automattic/co-authors-plus/compare/3.5.13...3.5.14
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Co-Authors Plus

Stable tag: 3.6.0
Stable tag: 3.6.1
Requires at least: 4.1
Tested up to: 6.5
Requires PHP: 5.6
Expand Down
4 changes: 2 additions & 2 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Co-Authors Plus
* Plugin URI: https://wordpress.org/plugins/co-authors-plus/
* 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.
* Version: 3.6.0
* Version: 3.6.1
* Requires at least: 5.7
* Requires PHP: 7.4
* Author: Mohammad Jangda, Daniel Bachhuber, Automattic
Expand All @@ -21,7 +21,7 @@
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/

const COAUTHORS_PLUS_VERSION = '3.6.0';
const COAUTHORS_PLUS_VERSION = '3.6.1';
const COAUTHORS_PLUS_FILE = __FILE__;

require_once __DIR__ . '/template-tags.php';
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "co-authors-plus",
"version": "3.6.0",
"version": "3.6.1",
"description": "Allows multiple authors to be assigned to a post.",
"license": "GPL-2.0-or-later",
"private": true,
Expand Down
16 changes: 13 additions & 3 deletions php/class-coauthors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function admin_init() {
*
* By default, this is the built-in and custom post types that have authors.
*
* @since 3.5.16
* @since 3.6.0
*
* @return array Supported post types.
*/
Expand Down Expand Up @@ -487,13 +487,23 @@ public function refresh_coauthors_nonce( $response ) {
}

/**
* Removes the default 'author' dropdown from quick edit
* Removes the default 'author' dropdown from quick edit.
*/
public function remove_quick_edit_authors_box() {
global $pagenow;

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

Check failure on line 505 in php/class-coauthors-plus.php

View workflow job for this annotation

GitHub Actions / WP 5.7 on PHP 7.1

syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)

Check failure on line 505 in php/class-coauthors-plus.php

View workflow job for this annotation

GitHub Actions / WP 6.3 on PHP 7.1

syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)

Check failure on line 505 in php/class-coauthors-plus.php

View workflow job for this annotation

GitHub Actions / WP 5.7 on PHP 7.1

syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)

Check failure on line 505 in php/class-coauthors-plus.php

View workflow job for this annotation

GitHub Actions / WP 6.3 on PHP 7.1

syntax error, unexpected 'fn' (T_STRING), expecting :: (T_PAAMAYIM_NEKUDOTAYIM)
);
}
}

Expand Down

0 comments on commit 252951f

Please sign in to comment.