Groups - Version 1.5.1

Version Description

  • Please MAKE A BACKUP of your site and database PRIOR to updating.
  • WordPress 4.2 compatible.
  • Adopted a more flexible index size on the capability row of the capability table.
Download this release

Release Info

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

Code changes from version 1.5.0 to 1.5.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.5.0
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.5.0' );
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.5.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.5.1' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
lib/core/class-groups-controller.php CHANGED
@@ -169,7 +169,7 @@ class Groups_Controller {
169
  name VARCHAR(100) DEFAULT NULL,
170
  description LONGTEXT DEFAULT NULL,
171
  PRIMARY KEY (capability_id),
172
- UNIQUE INDEX capability (capability(20)),
173
  INDEX capability_kco (capability(20),class(20),object(20))
174
  ) $charset_collate;";
175
  }
@@ -270,9 +270,9 @@ class Groups_Controller {
270
  Groups_Options::update_option( Groups_Post_Access::READ_POST_CAPABILITIES, array( Groups_Post_Access::READ_POST_CAPABILITY ) );
271
  $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->postmeta SET meta_value = %s WHERE meta_key = %s", Groups_Post_Access::READ_POST_CAPABILITY, Groups_Post_Access::POSTMETA_PREFIX . Groups_Post_Access::READ_POST_CAPABILITY ) );
272
  }
273
- if ( strcmp( $previous_version, '1.5.0' ) < 0 ) {
274
  $capability_table = _groups_get_tablename( 'capability' );
275
- $queries[] = "ALTER TABLE $capability_table DROP INDEX capability, ADD UNIQUE INDEX capability(capability(20));";
276
  }
277
  }
278
  } // switch
169
  name VARCHAR(100) DEFAULT NULL,
170
  description LONGTEXT DEFAULT NULL,
171
  PRIMARY KEY (capability_id),
172
+ UNIQUE INDEX capability (capability(100)),
173
  INDEX capability_kco (capability(20),class(20),object(20))
174
  ) $charset_collate;";
175
  }
270
  Groups_Options::update_option( Groups_Post_Access::READ_POST_CAPABILITIES, array( Groups_Post_Access::READ_POST_CAPABILITY ) );
271
  $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->postmeta SET meta_value = %s WHERE meta_key = %s", Groups_Post_Access::READ_POST_CAPABILITY, Groups_Post_Access::POSTMETA_PREFIX . Groups_Post_Access::READ_POST_CAPABILITY ) );
272
  }
273
+ if ( strcmp( $previous_version, '1.5.1' ) < 0 ) {
274
  $capability_table = _groups_get_tablename( 'capability' );
275
+ $queries[] = "ALTER TABLE $capability_table DROP INDEX capability, ADD UNIQUE INDEX capability(capability(100));";
276
  }
277
  }
278
  } // switch
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.2
7
- Stable tag: 1.5.0
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,11 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
180
  = 1.5.0 =
181
  * Please **MAKE A BACKUP** of your site and database PRIOR to updating.
182
  * WordPress 4.2 compatible.
@@ -430,6 +435,6 @@ Some installations wouldn't work correctly, showing no capabilities and making i
430
 
431
  == Upgrade Notice ==
432
 
433
- = 1.5.0 =
434
  Please **MAKE A BACKUP** of your site and database PRIOR to updating.
435
  This release is required for compatibility with WordPress 4.2 and above (uses a reduced index size on a database table).
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.2
7
+ Stable tag: 1.5.1
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.5.1 =
181
+ * Please **MAKE A BACKUP** of your site and database PRIOR to updating.
182
+ * WordPress 4.2 compatible.
183
+ * Adopted a more flexible index size on the capability row of the capability table.
184
+
185
  = 1.5.0 =
186
  * Please **MAKE A BACKUP** of your site and database PRIOR to updating.
187
  * WordPress 4.2 compatible.
435
 
436
  == Upgrade Notice ==
437
 
438
+ = 1.5.1 =
439
  Please **MAKE A BACKUP** of your site and database PRIOR to updating.
440
  This release is required for compatibility with WordPress 4.2 and above (uses a reduced index size on a database table).