Groups - Version 1.4.15

Version Description

  • Due to changes in versions 1.4.14 and 1.4.15, it's important to MAKE A BACKUP of the site & database, test the site, extensions & theme PRIOR to updating.
  • Fixes a cache incompatibility with caching mechanisms that do not implement wp_cache_get()'s function signature fully. This addresses cases specifically where the fourth parameter $found is not initialized as expected upon return. The performance improvements included in this release are lessened with caching plugins that fail to implement the return value disambiguation via $found.
Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 1.4.15
Comparing to
See all releases

Code changes from version 1.4.14 to 1.4.15

groups.php CHANGED
@@ -21,13 +21,13 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
- * Version: 1.4.14
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
- define( 'GROUPS_CORE_VERSION', '1.4.14' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
+ * Version: 1.4.15
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
+ define( 'GROUPS_CORE_VERSION', '1.4.15' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
lib/access/class-groups-post-access.php CHANGED
@@ -393,6 +393,7 @@ class Groups_Post_Access {
393
  if ( $user_id === null ) {
394
  $user_id = get_current_user_id();
395
  }
 
396
  $result = wp_cache_get( self::CAN_READ_POST . '_' . $user_id . '_' . $post_id, self::CACHE_GROUP, false, $found );
397
  if ( $found === false ) {
398
  $groups_user = new Groups_User( $user_id );
393
  if ( $user_id === null ) {
394
  $user_id = get_current_user_id();
395
  }
396
+ $found = false;
397
  $result = wp_cache_get( self::CAN_READ_POST . '_' . $user_id . '_' . $post_id, self::CACHE_GROUP, false, $found );
398
  if ( $found === false ) {
399
  $groups_user = new Groups_User( $user_id );
lib/core/class-groups-capability.php CHANGED
@@ -197,6 +197,7 @@ class Groups_Capability {
197
  public static function read_by_capability( $capability ) {
198
  global $wpdb;
199
  $_capability = $capability;
 
200
  $result = wp_cache_get( self::READ_BY_CAPABILITY . '_' . $_capability, self::CACHE_GROUP, false, $found );
201
  if ( $found === false ) {
202
  $result = false;
197
  public static function read_by_capability( $capability ) {
198
  global $wpdb;
199
  $_capability = $capability;
200
+ $found = false;
201
  $result = wp_cache_get( self::READ_BY_CAPABILITY . '_' . $_capability, self::CACHE_GROUP, false, $found );
202
  if ( $found === false ) {
203
  $result = false;
lib/core/class-groups-group.php CHANGED
@@ -280,6 +280,7 @@ class Groups_Group implements I_Capable {
280
  */
281
  public static function read_by_name( $name ) {
282
  global $wpdb;
 
283
  $result = wp_cache_get( self::READ_BY_NAME . '_' . $name, self::CACHE_GROUP, false, $found );
284
  if ( $found === false ) {
285
  $result = false;
280
  */
281
  public static function read_by_name( $name ) {
282
  global $wpdb;
283
+ $found = false;
284
  $result = wp_cache_get( self::READ_BY_NAME . '_' . $name, self::CACHE_GROUP, false, $found );
285
  if ( $found === false ) {
286
  $result = false;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: itthinx
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 3.5
6
- Tested up to: 4.1
7
- Stable tag: 1.4.14
8
  License: GPLv3
9
 
10
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
@@ -177,6 +177,12 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
 
180
  = 1.4.14 =
181
  * Now not using Groups' the_posts filter by default as results are already filtered by Groups' posts_where filter.
182
  * Added the groups_filter_the_posts filter which can be used to 'reactivate' Groups' the_posts filter where needed.
@@ -419,6 +425,6 @@ Some installations wouldn't work correctly, showing no capabilities and making i
419
 
420
  == Upgrade Notice ==
421
 
422
- = 1.4.14 =
423
- Due to changes in this version, it's important to **make a backup** of the site & database, test the site, extensions & theme prior to updating.
424
- It improves performance & disables admin override by default (disable manually under Groups > Options > Administrator Access Override).
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, memberships, paypal, permission, permissions, subscription, subscriptions, woocommerce
5
  Requires at least: 3.5
6
+ Tested up to: 4.1.1
7
+ Stable tag: 1.4.15
8
  License: GPLv3
9
 
10
  Groups is an efficient and powerful solution, providing group-based user membership management, group-based capabilities and content access control.
177
 
178
  == Changelog ==
179
 
180
+ = 1.4.15 =
181
+ * Due to changes in versions 1.4.14 and 1.4.15, it's important to **MAKE A BACKUP** of the site & database, test the site, extensions & theme PRIOR to updating.
182
+ * Fixes a cache incompatibility with caching mechanisms that do not implement wp_cache_get()'s function signature fully.
183
+ This addresses cases specifically where the fourth parameter $found is not initialized as expected upon return.
184
+ The performance improvements included in this release are lessened with caching plugins that fail to implement the return value disambiguation via $found.
185
+
186
  = 1.4.14 =
187
  * Now not using Groups' the_posts filter by default as results are already filtered by Groups' posts_where filter.
188
  * Added the groups_filter_the_posts filter which can be used to 'reactivate' Groups' the_posts filter where needed.
425
 
426
  == Upgrade Notice ==
427
 
428
+ = 1.4.15 =
429
+ Fixes a cache incompatibility with some object caching implementations.
430
+ Due to changes in versions 1.4.14 and 1.4.15, it's important to **MAKE A BACKUP** of the site & database, test the site, extensions & theme PRIOR to updating.