From 49cf1d7f8dd677ce384fe8578d1852e31c9e1aea Mon Sep 17 00:00:00 2001 From: Nikita Sinelnikov Date: Tue, 3 Aug 2021 08:52:34 +0300 Subject: [PATCH] - 2.2.2 release; --- README.md | 2 +- includes/core/class-access.php | 4 ++-- readme.txt | 8 +++++++- ultimate-member.php | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6acd143c..dd692ea6 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ GNU Version 2 or Any Later Version ## Releases -[Official Release Version: 2.2.1](https://github.com/ultimatemember/ultimatemember/releases/tag/2.2.1). +[Official Release Version: 2.2.2](https://github.com/ultimatemember/ultimatemember/releases/tag/2.2.2). ## Changelog diff --git a/includes/core/class-access.php b/includes/core/class-access.php index eec989fa..ea7fa596 100644 --- a/includes/core/class-access.php +++ b/includes/core/class-access.php @@ -1747,8 +1747,8 @@ if ( ! class_exists( 'um\core\Access' ) ) { function filter_post_thumbnail( $has_thumbnail, $post, $thumbnail_id ) { if ( $this->is_restricted( $thumbnail_id ) ) { $has_thumbnail = false; - } elseif ( ! empty( $post ) ) { - if ( $this->is_restricted( $post ) ) { + } elseif ( ! empty( $post ) && ! empty( $post->ID ) ) { + if ( $this->is_restricted( $post->ID ) ) { $has_thumbnail = false; } } else { diff --git a/readme.txt b/readme.txt index 3612528b..3a71c776 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration Requires PHP: 5.6 Requires at least: 5.0 Tested up to: 5.8 -Stable tag: 2.2.1 +Stable tag: 2.2.2 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -155,6 +155,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0) * UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin += 2.2.2: August 3, 2021 = + +* Bugfixes: + + - Fixed: `is_restricted()` functions in class-access.php. Avoid using object as array offset + = 2.2.1: August 2, 2021 = * Enhancements: diff --git a/ultimate-member.php b/ultimate-member.php index 2c6e223e..9056e6f8 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.2.1 +Version: 2.2.2 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member