Groups - Version 1.4.4

Version Description

  • WordPress 3.8 compatibility checked.
  • Fixed: Access restriction options per post type when none is checked.
Download this release

Release Info

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

Code changes from version 1.4.3 to 1.4.4

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.3
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.3' );
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.4
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.4' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
lib/admin/class-groups-admin-posts.php CHANGED
@@ -85,6 +85,7 @@ class Groups_Admin_Posts {
85
  echo '.groups-capabilities-container .selectize-input { font-size: inherit; line-height: 18px; padding: 1px 2px 2px 2px; vertical-align: middle; }';
86
  echo '.groups-capabilities-container .selectize-input input[type="text"] { font-size: inherit; vertical-align: middle; }';
87
  echo '.groups-capabilities-container input.button { margin-top: 1px; vertical-align: top; }';
 
88
  echo '.tablenav .actions { overflow: visible; }'; // this is important so that the selectize options aren't hidden
89
  echo '.wp-list-table td { overflow: visible; }'; // idem for bulk actions
90
  echo '</style>';
85
  echo '.groups-capabilities-container .selectize-input { font-size: inherit; line-height: 18px; padding: 1px 2px 2px 2px; vertical-align: middle; }';
86
  echo '.groups-capabilities-container .selectize-input input[type="text"] { font-size: inherit; vertical-align: middle; }';
87
  echo '.groups-capabilities-container input.button { margin-top: 1px; vertical-align: top; }';
88
+ echo '.inline-edit-row fieldset .capabilities-bulk-container label span.title { min-width: 5em; padding: 2px 1em; width: auto; }';
89
  echo '.tablenav .actions { overflow: visible; }'; // this is important so that the selectize options aren't hidden
90
  echo '.wp-list-table td { overflow: visible; }'; // idem for bulk actions
91
  echo '</style>';
lib/admin/groups-admin-options.php CHANGED
@@ -75,8 +75,9 @@ function groups_admin_options() {
75
 
76
  $post_types_option = Groups_Options::get_option( Groups_Post_Access::POST_TYPES, array() );
77
  $post_types = get_post_types( array( 'public' => true ) );
 
78
  foreach( $post_types as $post_type ) {
79
- $post_types_option[$post_type]['add_meta_box'] = in_array( $post_type, $_POST['add_meta_boxes'] );
80
  }
81
  Groups_Options::update_option( Groups_Post_Access::POST_TYPES, $post_types_option );
82
 
75
 
76
  $post_types_option = Groups_Options::get_option( Groups_Post_Access::POST_TYPES, array() );
77
  $post_types = get_post_types( array( 'public' => true ) );
78
+ $selected_post_types = is_array( $_POST['add_meta_boxes'] ) ? $_POST['add_meta_boxes'] : array();
79
  foreach( $post_types as $post_type ) {
80
+ $post_types_option[$post_type]['add_meta_box'] = in_array( $post_type, $selected_post_types );
81
  }
82
  Groups_Options::update_option( Groups_Post_Access::POST_TYPES, $post_types_option );
83
 
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: 3.7.1
7
- Stable tag: 1.4.3
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,10 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
177
 
178
  == Changelog ==
179
 
 
 
 
 
180
  = 1.4.3 =
181
  * Added: Bulk editing (add/remove) of post access restriction capabilities.
182
  * Fixed: A typo in the Access Restriction column's tooltip text.
@@ -355,6 +359,9 @@ Some installations wouldn't work correctly, showing no capabilities and making i
355
 
356
  == Upgrade Notice ==
357
 
 
 
 
358
  = 1.4.3 =
359
  * Added bulk editing (add/remove) of post access restriction capabilities, restricted use of access restriction box on posts, fixed some bugs.
360
 
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: 3.8
7
+ Stable tag: 1.4.4
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.4 =
181
+ * WordPress 3.8 compatibility checked.
182
+ * Fixed: Access restriction options per post type when none is checked.
183
+
184
  = 1.4.3 =
185
  * Added: Bulk editing (add/remove) of post access restriction capabilities.
186
  * Fixed: A typo in the Access Restriction column's tooltip text.
359
 
360
  == Upgrade Notice ==
361
 
362
+ = 1.4.4 =
363
+ * WordPress 3.8 compatibility checked and fixed a minor bug.
364
+
365
  = 1.4.3 =
366
  * Added bulk editing (add/remove) of post access restriction capabilities, restricted use of access restriction box on posts, fixed some bugs.
367