Skip to content

Commit

Permalink
Fix admin notice for Co-Authors
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Sep 3, 2020
1 parent ca30aa4 commit 65b8271
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ There are two ways to install the PublishPress Authors plugin:
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).

= [3.6.1] - 2020-09-03 =

* Fixed: Fix admin notice for Co-Authors Plus displaying even when the plugin is not installed;

= [3.6.0] - 2020-09-02 =

* Added: Added support to update authors for posts using the quick edit form, #180;
Expand Down
4 changes: 4 additions & 0 deletions src/modules/multiple-authors/multiple-authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,10 @@ public function coauthorsMigrationNotice()
{
global $pagenow;

if (!isset($GLOBALS['coauthors_plus']) || empty($GLOBALS['coauthors_plus'])) {
return;
}

$requirements = [
(isset($_GET['page']) && $_GET['page'] === 'ppma-modules-settings') ? 1 : 0,
($pagenow === 'edit-tags.php' && isset($_GET['taxonomy']) && $_GET['taxonomy'] === 'author') ? 1 : 0
Expand Down

0 comments on commit 65b8271

Please sign in to comment.