diff --git a/defines.php b/defines.php index 5cdcdda3..a0cc1409 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.1'); + define('PP_AUTHORS_VERSION', '3.6.2'); 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 19d85125..d2dc677d 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.1 + * Version: 3.6.2 * Text Domain: publishpress-authors * * ------------------------------------------------------------------------------ diff --git a/readme.txt b/readme.txt index 9cf6fdce..c3d29e1a 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: multiple authors, authors, guest authors, author fields, author layouts Requires at least: 4.7 Requires PHP: 5.6 Tested up to: 5.5 -Stable tag: 3.6.0 +Stable tag: 3.6.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -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.2] - 2020-09-03 = + +* Fixed: Fix error "Call to a member function get_error_message() on boolean", a regression bug result of the recent updates, #221; + = [3.6.1] - 2020-09-03 = * Fixed: Fix admin notice for Co-Authors Plus displaying even when the plugin is not installed; diff --git a/src/core/Classes/Objects/Author.php b/src/core/Classes/Objects/Author.php index 21e94d0a..6f7edb08 100644 --- a/src/core/Classes/Objects/Author.php +++ b/src/core/Classes/Objects/Author.php @@ -468,8 +468,6 @@ public function __get($attribute) } if (is_wp_error($return)) { - $return = false; - error_log( sprintf( '[PublishPress Authors] Error found while getting author\'s %s attribute (term_id = %d): %s', @@ -478,6 +476,8 @@ public function __get($attribute) $return->get_error_message() ) ); + + $return = false; } $return = apply_filters('publishpress_authors_author_attribute', $return, $this->term_id, $attribute);