Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.26.2 |
Comparing to | |
See all releases |
Code changes from version 4.26.1 to 4.26.2
- includes/classes/base-lib.php +1 -1
- includes/classes/capabilities-groups-manager.php +22 -10
- readme.txt +6 -2
- user-role-editor.php +2 -2
includes/classes/base-lib.php
CHANGED
@@ -54,7 +54,7 @@ class URE_Base_Lib {
|
|
54 |
public function get($property_name) {
|
55 |
|
56 |
if (!property_exists($this, $property_name)) {
|
57 |
-
syslog(LOG_ERR, '
|
58 |
}
|
59 |
|
60 |
return $this->$property_name;
|
54 |
public function get($property_name) {
|
55 |
|
56 |
if (!property_exists($this, $property_name)) {
|
57 |
+
syslog(LOG_ERR, 'Lib class does not have such property '. $property_name);
|
58 |
}
|
59 |
|
60 |
return $this->$property_name;
|
includes/classes/capabilities-groups-manager.php
CHANGED
@@ -243,15 +243,7 @@ class URE_Capabilities_Groups_Manager {
|
|
243 |
// end of get_woocommerce_capabilities()
|
244 |
|
245 |
|
246 |
-
|
247 |
-
|
248 |
-
if (empty($built_in_wp_caps)) {
|
249 |
-
$built_in_wp_caps = $this->get_built_in_wp_caps();
|
250 |
-
}
|
251 |
-
|
252 |
-
if (isset($built_in_wp_caps[$cap_id])) {
|
253 |
-
return $built_in_wp_caps[$cap_id];
|
254 |
-
}
|
255 |
|
256 |
$wc_caps = $this->get_woocommerce_capabilities();
|
257 |
$groups = array();
|
@@ -266,11 +258,31 @@ class URE_Capabilities_Groups_Manager {
|
|
266 |
|
267 |
if (empty($groups)) {
|
268 |
$groups = array('custom');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
$groups = apply_filters('ure_custom_capability_groups', $groups, $cap_id);
|
271 |
|
|
|
|
|
272 |
return $groups;
|
273 |
}
|
274 |
// end of get_cap_groups()
|
275 |
}
|
276 |
-
// end of class
|
243 |
// end of get_woocommerce_capabilities()
|
244 |
|
245 |
|
246 |
+
private function get_groups_for_custom_cap($cap_id) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
|
248 |
$wc_caps = $this->get_woocommerce_capabilities();
|
249 |
$groups = array();
|
258 |
|
259 |
if (empty($groups)) {
|
260 |
$groups = array('custom');
|
261 |
+
}
|
262 |
+
|
263 |
+
return $groups;
|
264 |
+
}
|
265 |
+
// end of get_groups_for_custom_cap()
|
266 |
+
|
267 |
+
|
268 |
+
public function get_cap_groups($cap_id, $built_in_wp_caps=null) {
|
269 |
+
|
270 |
+
if (empty($built_in_wp_caps)) {
|
271 |
+
$built_in_wp_caps = $this->get_built_in_wp_caps();
|
272 |
}
|
273 |
+
|
274 |
+
if (isset($built_in_wp_caps[$cap_id])) {
|
275 |
+
$groups = $built_in_wp_caps[$cap_id];
|
276 |
+
} else {
|
277 |
+
$groups = $this->get_groups_for_custom_cap($cap_id);
|
278 |
+
}
|
279 |
+
|
280 |
$groups = apply_filters('ure_custom_capability_groups', $groups, $cap_id);
|
281 |
|
282 |
+
$groups[] = 'all'; // Every capability belongs to the 'all' group
|
283 |
+
|
284 |
return $groups;
|
285 |
}
|
286 |
// end of get_cap_groups()
|
287 |
}
|
288 |
+
// end of class URE_Capabilities_Groups_Manager
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: shinephp
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.26.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -32,6 +32,7 @@ Do you need more functionality with quality support in the real time? Do you wis
|
|
32 |
<ul>
|
33 |
<li>Block selected admin menu items for role.</li>
|
34 |
<li>Block selected widgets under "Appearance" menu for role.</li>
|
|
|
35 |
<li>Block selected meta boxes (dashboard, posts, pages, custom post types) for role.</li>
|
36 |
<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>
|
37 |
<li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
|
@@ -77,6 +78,9 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= [4.26.1] 14.07.2016 =
|
81 |
* Fix: some bugs, like 'undefined property' notices, etc.
|
82 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.6
|
7 |
+
Stable tag: 4.26.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
32 |
<ul>
|
33 |
<li>Block selected admin menu items for role.</li>
|
34 |
<li>Block selected widgets under "Appearance" menu for role.</li>
|
35 |
+
<li>Show widgets at front-end for selected roles.</li>
|
36 |
<li>Block selected meta boxes (dashboard, posts, pages, custom post types) for role.</li>
|
37 |
<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>
|
38 |
<li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= [4.26.2] 25.07.2016 =
|
82 |
+
* Fix: Selecting a sub-group/list of caps does make the ure_select_all_caps checkbox select all within that group, but checking that box when at the "All" top-level group did not work.
|
83 |
+
|
84 |
= [4.26.1] 14.07.2016 =
|
85 |
* Fix: some bugs, like 'undefined property' notices, etc.
|
86 |
|
user-role-editor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: https://www.role-editor.com
|
5 |
Description: Change/add/delete WordPress user roles and capabilities.
|
6 |
-
Version: 4.26.
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.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.26.
|
27 |
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
28 |
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
29 |
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: https://www.role-editor.com
|
5 |
Description: Change/add/delete WordPress user roles and capabilities.
|
6 |
+
Version: 4.26.2
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.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.26.2');
|
27 |
define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
|
28 |
define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
29 |
define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
|