Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ 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.7.0] - 2025-10-20

### Added

* Add bulk editing support for Co-Authors in the admin interface by @mattradford-sage in https://github.com/Automattic/Co-Authors-Plus/pull/1120
* Filter author label during selection by @Ritesh-patel in https://github.com/Automattic/Co-Authors-Plus/pull/1121

### Fixed

* fix: avoid posts without authors on CLI and REST by @leogermani in https://github.com/Automattic/Co-Authors-Plus/pull/1137

### Maintenance

* refactor: Update create_post method to allow nullable WP_User parameter by @GaryJones in https://github.com/Automattic/Co-Authors-Plus/pull/1122

### Documentation

* Update README.md by @GaryJones in https://github.com/Automattic/Co-Authors-Plus/pull/1130

## [3.6.6] - 2025-05-27

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

[3.7.0]: https://github.com/automattic/co-authors-plus/compare/3.6.6...3.7.0
[3.6.6]: https://github.com/automattic/co-authors-plus/compare/3.6.5...3.6.6
[3.6.5]: https://github.com/automattic/co-authors-plus/compare/3.6.4...3.6.5
[3.6.4]: https://github.com/automattic/co-authors-plus/compare/3.6.3...3.6.4
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Co-Authors Plus

Stable tag: 3.6.6
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: authors, users, multiple authors, co-authors, multi-author, publishing
Contributors: batmoo, danielbachhuber, automattic, GaryJ
Stable tag: 3.7.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: authors, users, multiple authors, co-authors, multi-author, publishing
Contributors: batmoo, danielbachhuber, automattic, GaryJ

Assign multiple bylines to posts, pages, and custom post types with a search-as-you-type input box.

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.6
* Version: 3.7.0
* Requires at least: 5.9
* 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.6';
const COAUTHORS_PLUS_VERSION = '3.7.0';
const COAUTHORS_PLUS_FILE = __FILE__;

require_once __DIR__ . '/template-tags.php';
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9",
"wp-cli/extension-command": "^2.0",
"wp-cli/i18n-command": "^2.6",
"wp-cli/wp-cli-tests": "^v4",
"wp-coding-standards/wpcs": "^3.1",
"yoast/wp-test-utils": "^1.2"
Expand Down Expand Up @@ -61,6 +62,9 @@
"cbf": [
"@php ./vendor/bin/phpcbf"
],
"i18n": [
"wp i18n make-pot . languages/co-authors-plus.pot"
],
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"
],
Expand Down
9 changes: 9 additions & 0 deletions css/co-authors-plus.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
margin-left: 5em;
}

#bulk-edit label.bulk-edit-group {
clear: both;
margin-top: .5em;
}

#bulk-edit #coauthors-list {
padding: 0;
}

#coauthors-list {
width: 100%;
padding: 0 5px;
Expand Down
34 changes: 34 additions & 0 deletions js/co-authors-plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ jQuery( document ).ready(function () {
.on( 'blur', function(){ $co.val( coAuthorsPlusStrings.search_box_text ) } )
;

if ( coauthors_initialized_on_bulk_edit )
$co.attr({
'aria-labelledby': 'coauthors-bulk-edit-label',
'aria-describedby': 'coauthors-bulk-edit-desc'
})
;

return $co;

}
Expand Down Expand Up @@ -395,6 +402,7 @@ jQuery( document ).ready(function () {

var wpInlineEdit = inlineEditPost.edit;

// Inline editing
inlineEditPost.edit = function( id ) {

wpInlineEdit.apply( this, arguments )
Expand Down Expand Up @@ -429,6 +437,32 @@ jQuery( document ).ready(function () {

}
}

// Bulk editing
var coauthors_initialized_on_bulk_edit = false;
var wpBulkEdit = inlineEditPost.setBulk;

inlineEditPost.setBulk = function() {

wpBulkEdit.apply( this, arguments );

// Initialize co-authors, but only on the first 'Bulk edit' interaction.
if ( ! coauthors_initialized_on_bulk_edit ) {
var bulk_right_column = jQuery( '#bulk-edit .inline-edit-col-right' );
var coauthors_authors_label = jQuery( '#bulk-edit .bulk-edit-coauthors' );

// Move the Co-Authors section to the right-hand column of the Bulk section.
coauthors_authors_label.appendTo( bulk_right_column );
// Give the right-hand column its 'real' height because of float:left;
// The Post Format dropdown does not help positioning the Co-Authors section.
bulk_right_column.find( 'div.inline-edit-col' ).addClass( 'wp-clearfix' );
// Move the autosuggest input box under the Co-Authors label.
jQuery( '#coauthors-edit' ).appendTo( coauthors_authors_label );

coauthors_initialized_on_bulk_edit = true;
coauthors_initialize( [] );
}
}
}

});
Expand Down
Loading