diff --git a/codeception.dist.yml b/codeception.dist.yml index 82b9cc8e..57db72b8 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -23,10 +23,13 @@ extensions: src: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/src" vendor: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/vendor" publishpress-authors.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/publishpress-authors.php" + includes.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/includes.php" + deprecated.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/deprecated.php" + defines.php: "%WP_ROOT_FOLDER%/wp-content/plugins/publishpress-authors/defines.php" params: - .env.testing settings: shuffle: true lint: true - report_useless_tests: true \ No newline at end of file + report_useless_tests: true diff --git a/composer.lock b/composer.lock index 30893cf8..bf4f8391 100644 --- a/composer.lock +++ b/composer.lock @@ -3287,16 +3287,16 @@ }, { "name": "phpmd/phpmd", - "version": "2.8.2", + "version": "2.9.0", "source": { "type": "git", "url": "https://github.com/phpmd/phpmd.git", - "reference": "714629ed782537f638fe23c4346637659b779a77" + "reference": "2a346575a45a6f00e631f4d7f3f71b6a05e0d46d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpmd/phpmd/zipball/714629ed782537f638fe23c4346637659b779a77", - "reference": "714629ed782537f638fe23c4346637659b779a77", + "url": "https://api.github.com/repos/phpmd/phpmd/zipball/2a346575a45a6f00e631f4d7f3f71b6a05e0d46d", + "reference": "2a346575a45a6f00e631f4d7f3f71b6a05e0d46d", "shasum": "" }, "require": { @@ -3307,6 +3307,8 @@ }, "require-dev": { "easy-doc/easy-doc": "0.0.0 || ^1.3.2", + "ext-json": "*", + "ext-simplexml": "*", "gregwar/rst": "^1.0", "mikey179/vfsstream": "^1.6.4", "phpunit/phpunit": "^4.8.36 || ^5.7.27", @@ -3353,7 +3355,7 @@ "phpmd", "pmd" ], - "time": "2020-02-16T20:15:50+00:00" + "time": "2020-09-02T09:12:27+00:00" }, { "name": "phpspec/prophecy", @@ -5183,7 +5185,7 @@ }, { "name": "symfony/browser-kit", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", @@ -5242,7 +5244,7 @@ }, { "name": "symfony/config", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/config.git", @@ -5308,16 +5310,16 @@ }, { "name": "symfony/console", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "51ff337ce194bdc3d8db12b20ce8cd54ac9f71e9" + "reference": "186f395b256065ba9b890c0a4e48a91d598fa2cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/51ff337ce194bdc3d8db12b20ce8cd54ac9f71e9", - "reference": "51ff337ce194bdc3d8db12b20ce8cd54ac9f71e9", + "url": "https://api.github.com/repos/symfony/console/zipball/186f395b256065ba9b890c0a4e48a91d598fa2cf", + "reference": "186f395b256065ba9b890c0a4e48a91d598fa2cf", "shasum": "" }, "require": { @@ -5383,11 +5385,11 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-08-17T13:51:41+00:00" + "time": "2020-09-02T07:07:40+00:00" }, { "name": "symfony/css-selector", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", @@ -5440,16 +5442,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "52e8a8a63f9e6ba56e83be076fd48cc309191e10" + "reference": "48d6890e12ce9cd8e68aaa4fb72010139312fd73" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/52e8a8a63f9e6ba56e83be076fd48cc309191e10", - "reference": "52e8a8a63f9e6ba56e83be076fd48cc309191e10", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/48d6890e12ce9cd8e68aaa4fb72010139312fd73", + "reference": "48d6890e12ce9cd8e68aaa4fb72010139312fd73", "shasum": "" }, "require": { @@ -5511,7 +5513,7 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2020-08-26T09:10:33+00:00" + "time": "2020-09-01T18:07:16+00:00" }, { "name": "symfony/deprecation-contracts", @@ -5565,7 +5567,7 @@ }, { "name": "symfony/dom-crawler", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", @@ -5627,7 +5629,7 @@ }, { "name": "symfony/event-dispatcher", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", @@ -5761,7 +5763,7 @@ }, { "name": "symfony/filesystem", - "version": "v4.4.12", + "version": "v4.4.13", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -5811,7 +5813,7 @@ }, { "name": "symfony/finder", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", @@ -6182,7 +6184,7 @@ }, { "name": "symfony/process", - "version": "v4.4.12", + "version": "v4.4.13", "source": { "type": "git", "url": "https://github.com/symfony/process.git", @@ -6293,7 +6295,7 @@ }, { "name": "symfony/string", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/string.git", @@ -6364,7 +6366,7 @@ }, { "name": "symfony/translation", - "version": "v5.1.4", + "version": "v5.1.5", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", @@ -6503,7 +6505,7 @@ }, { "name": "symfony/yaml", - "version": "v4.4.12", + "version": "v4.4.13", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", diff --git a/defines.php b/defines.php index 49072995..5cdcdda3 100644 --- a/defines.php +++ b/defines.php @@ -12,7 +12,7 @@ defined('ABSPATH') or die('No direct script access allowed.'); if (!defined('PP_AUTHORS_VERSION')) { - define('PP_AUTHORS_VERSION', '3.6.0'); + define('PP_AUTHORS_VERSION', '3.6.1'); define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php'); define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php')); define('PP_AUTHORS_MODULES_PATH', PP_AUTHORS_BASE_PATH . 'src/modules/'); diff --git a/publishpress-authors.php b/publishpress-authors.php index f9e2ef87..19d85125 100644 --- a/publishpress-authors.php +++ b/publishpress-authors.php @@ -5,7 +5,7 @@ * Description: PublishPress Authors allows you to add multiple authors and guest authors to WordPress posts * Author: PublishPress * Author URI: https://publishpress.com - * Version: 3.6.0 + * Version: 3.6.1 * Text Domain: publishpress-authors * * ------------------------------------------------------------------------------ diff --git a/readme.txt b/readme.txt index 7d261809..9cf6fdce 100644 --- a/readme.txt +++ b/readme.txt @@ -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; diff --git a/src/modules/multiple-authors/multiple-authors.php b/src/modules/multiple-authors/multiple-authors.php index 695ad71c..0c1dccd4 100644 --- a/src/modules/multiple-authors/multiple-authors.php +++ b/src/modules/multiple-authors/multiple-authors.php @@ -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