Ultimate Member – User Profile & Membership Plugin - Version 2.2.2

Version Description

Download this release

Release Info

Developer nsinelnikov
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

includes/core/class-access.php CHANGED
@@ -1747,8 +1747,8 @@ if ( ! class_exists( 'um\core\Access' ) ) {
1747
  function filter_post_thumbnail( $has_thumbnail, $post, $thumbnail_id ) {
1748
  if ( $this->is_restricted( $thumbnail_id ) ) {
1749
  $has_thumbnail = false;
1750
- } elseif ( ! empty( $post ) ) {
1751
- if ( $this->is_restricted( $post ) ) {
1752
  $has_thumbnail = false;
1753
  }
1754
  } else {
1747
  function filter_post_thumbnail( $has_thumbnail, $post, $thumbnail_id ) {
1748
  if ( $this->is_restricted( $thumbnail_id ) ) {
1749
  $has_thumbnail = false;
1750
+ } elseif ( ! empty( $post ) && ! empty( $post->ID ) ) {
1751
+ if ( $this->is_restricted( $post->ID ) ) {
1752
  $has_thumbnail = false;
1753
  }
1754
  } else {
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: community, member, membership, user-profile, user-registration
7
  Requires PHP: 5.6
8
  Requires at least: 5.0
9
  Tested up to: 5.8
10
- Stable tag: 2.2.1
11
  License: GNU Version 2 or Any Later Version
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
13
 
@@ -155,6 +155,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
155
  * To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
156
  * 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
157
 
 
 
 
 
 
 
158
  = 2.2.1: August 2, 2021 =
159
 
160
  * Enhancements:
7
  Requires PHP: 5.6
8
  Requires at least: 5.0
9
  Tested up to: 5.8
10
+ Stable tag: 2.2.2
11
  License: GNU Version 2 or Any Later Version
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
13
 
155
  * To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
156
  * 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
157
 
158
+ = 2.2.2: August 3, 2021 =
159
+
160
+ * Bugfixes:
161
+
162
+ - Fixed: `is_restricted()` functions in class-access.php. Avoid using object as array offset
163
+
164
  = 2.2.1: August 2, 2021 =
165
 
166
  * Enhancements:
ultimate-member.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
- Version: 2.2.1
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  Text Domain: ultimate-member
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
+ Version: 2.2.2
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  Text Domain: ultimate-member