Groups - Version 1.4.6.1

Version Description

  • Fixed: Don't interfere with output when there is no post (the_content and get_the_excerpt filters)
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.6.1

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.6
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.6' );
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.6.1
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.6.1' );
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
@@ -247,6 +247,9 @@ class Groups_Post_Access {
247
  if ( self::user_can_read_post( $post->ID ) ) {
248
  $result = $output;
249
  }
 
 
 
250
  }
251
  return $result;
252
  }
@@ -264,6 +267,9 @@ class Groups_Post_Access {
264
  if ( self::user_can_read_post( $post->ID ) ) {
265
  $result = $output;
266
  }
 
 
 
267
  }
268
  return $result;
269
  }
247
  if ( self::user_can_read_post( $post->ID ) ) {
248
  $result = $output;
249
  }
250
+ } else {
251
+ // not a post, don't interfere
252
+ $result = $output;
253
  }
254
  return $result;
255
  }
267
  if ( self::user_can_read_post( $post->ID ) ) {
268
  $result = $output;
269
  }
270
+ } else {
271
+ // not a post, don't interfere
272
+ $result = $output;
273
  }
274
  return $result;
275
  }
readme.txt CHANGED
@@ -177,6 +177,9 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
177
 
178
  == Changelog ==
179
 
 
 
 
180
  = 1.4.6 =
181
  * Security fix : Certain capabilities could be granted to users instead of being denied with a change introduced in version 1.4.5. Roles with negated capabilities would effectively grant these capabilities to the user.
182
 
177
 
178
  == Changelog ==
179
 
180
+ = 1.4.6.1 =
181
+ * Fixed: Don't interfere with output when there is no post (the_content and get_the_excerpt filters)
182
+
183
  = 1.4.6 =
184
  * Security fix : Certain capabilities could be granted to users instead of being denied with a change introduced in version 1.4.5. Roles with negated capabilities would effectively grant these capabilities to the user.
185