User Role Editor - Version 4.16

Version Description

  • 11.09.2014
  • "create_sites" user capability was added to the list of built-in WordPress user capabilities for WordPress multisite. It does not exist by default. But it is used to control "Add New" button at the "Sites" page under WordPress multisite network admin.
  • bug fix: WordPress database prefix value was not used in 2 SQL queries related to the "count users without role" module - updated.
Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 4.16
Comparing to
See all releases

Code changes from version 4.15 to 4.16

includes/class-ure-lib.php CHANGED
@@ -898,6 +898,7 @@ class Ure_Lib extends Garvs_WP_Lib {
898
  if ($this->multisite) {
899
  $caps['manage_network'] = 1;
900
  $caps['manage_sites'] = 1;
 
901
  $caps['manage_network_users'] = 1;
902
  $caps['manage_network_themes'] = 1;
903
  $caps['manage_network_plugins'] = 1;
@@ -2478,7 +2479,7 @@ class Ure_Lib extends Garvs_WP_Lib {
2478
  $query = "select ID from {$wpdb->users} users
2479
  where not exists (select user_id from {$wpdb->usermeta}
2480
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities') or
2481
- exists (select user_id from wp_usermeta
2482
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities' and meta_value='a:0:{}') ;";
2483
  $users = $wpdb->get_col($query);
2484
 
898
  if ($this->multisite) {
899
  $caps['manage_network'] = 1;
900
  $caps['manage_sites'] = 1;
901
+ $caps['create_sites'] = 1;
902
  $caps['manage_network_users'] = 1;
903
  $caps['manage_network_themes'] = 1;
904
  $caps['manage_network_plugins'] = 1;
2479
  $query = "select ID from {$wpdb->users} users
2480
  where not exists (select user_id from {$wpdb->usermeta}
2481
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities') or
2482
+ exists (select user_id from {$wpdb->usermeta}
2483
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities' and meta_value='a:0:{}') ;";
2484
  $users = $wpdb->get_col($query);
2485
 
includes/class-user-role-editor.php CHANGED
@@ -149,7 +149,7 @@ class User_Role_Editor {
149
  $query = "select count(ID) from {$wpdb->users} users
150
  where not exists (select user_id from {$wpdb->usermeta}
151
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities') or
152
- exists (select user_id from wp_usermeta
153
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities' and meta_value='a:0:{}') ;";
154
  $users_count = $wpdb->get_var($query);
155
  if ($users_count>0) {
149
  $query = "select count(ID) from {$wpdb->users} users
150
  where not exists (select user_id from {$wpdb->usermeta}
151
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities') or
152
+ exists (select user_id from {$wpdb->usermeta}
153
  where user_id=users.ID and meta_key='{$blog_prefix}capabilities' and meta_value='a:0:{}') ;";
154
  $users_count = $wpdb->get_var($query);
155
  if ($users_count>0) {
readme.txt CHANGED
@@ -29,6 +29,7 @@ Buy [Pro version](htpp://role-editor.com).
29
  Pro version includes extra modules:
30
  <ul>
31
  <li>Block selected admin menu items for role.</li>
 
32
  <li>"Export/Import" module. You can export user roles to the local file and import them then to any WordPress site or other sites of the multi-site WordPress network.</li>
33
  <li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
34
  <li>Per posts/pages users access management to post/page editing functionality.</li>
@@ -83,6 +84,11 @@ Share with me new ideas about plugin further development and link to your site w
83
 
84
 
85
  == Changelog ==
 
 
 
 
 
86
  = 4.15 =
87
  * 08.09.2014
88
  * Rename role button was added to the URE toolbar. It allows to change user role display name (role ID is always the same). Be careful and double think before rename some built-in WordPress role.
29
  Pro version includes extra modules:
30
  <ul>
31
  <li>Block selected admin menu items for role.</li>
32
+ <li>Block selected widgets under "Appearance" menu for role.</li>
33
  <li>"Export/Import" module. You can export user roles to the local file and import them then to any WordPress site or other sites of the multi-site WordPress network.</li>
34
  <li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
35
  <li>Per posts/pages users access management to post/page editing functionality.</li>
84
 
85
 
86
  == Changelog ==
87
+ = 4.16 =
88
+ * 11.09.2014
89
+ * "create_sites" user capability was added to the list of built-in WordPress user capabilities for WordPress multisite. It does not exist by default. But it is used to control "Add New" button at the "Sites" page under WordPress multisite network admin.
90
+ * bug fix: WordPress database prefix value was not used in 2 SQL queries related to the "count users without role" module - updated.
91
+
92
  = 4.15 =
93
  * 08.09.2014
94
  * Rename role button was added to the URE toolbar. It allows to change user role display name (role ID is always the same). Be careful and double think before rename some built-in WordPress role.
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
- Version: 4.15
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.15');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_FILE', basename(__FILE__));
3
  Plugin Name: User Role Editor
4
  Plugin URI: http://role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
+ Version: 4.16
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
+ define('URE_VERSION', '4.16');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_FILE', basename(__FILE__));