Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.26.1 |
Comparing to | |
See all releases |
Code changes from version 4.26 to 4.26.1
includes/classes/capabilities-groups-manager.php
CHANGED
@@ -12,7 +12,7 @@ class URE_Capabilities_Groups_Manager {
|
|
12 |
|
13 |
private static $instance = null;
|
14 |
private $lib = null;
|
15 |
-
private $
|
16 |
|
17 |
|
18 |
public static function get_instance() {
|
12 |
|
13 |
private static $instance = null;
|
14 |
private $lib = null;
|
15 |
+
private $groups = null;
|
16 |
|
17 |
|
18 |
public static function get_instance() {
|
includes/classes/role-view.php
CHANGED
@@ -151,6 +151,7 @@ class URE_Role_View extends URE_View {
|
|
151 |
|
152 |
|
153 |
public function display_edit_dialogs() {
|
|
|
154 |
$current_role = $this->lib->get('current_role');
|
155 |
$current_role_name = $this->lib->get('current_role_name');
|
156 |
?>
|
@@ -190,7 +191,7 @@ class URE_Role_View extends URE_View {
|
|
190 |
</div>
|
191 |
|
192 |
<?php
|
193 |
-
if ($
|
194 |
?>
|
195 |
<div id="ure_default_role_dialog" class="ure-modal-dialog">
|
196 |
<div style="padding:10px;">
|
@@ -236,7 +237,7 @@ if ($this->multisite && !is_network_admin()) {
|
|
236 |
$add_del_role_for_simple_admin = 1;
|
237 |
}
|
238 |
$super_admin = is_super_admin();
|
239 |
-
$multisite = $this->lib->get('
|
240 |
|
241 |
?>
|
242 |
<div id="ure_toolbar" >
|
@@ -293,9 +294,7 @@ if ($this->multisite && !is_network_admin()) {
|
|
293 |
<div id="ure_service_tools">
|
294 |
<?php
|
295 |
do_action('ure_role_edit_toolbar_service');
|
296 |
-
if (!$
|
297 |
-
(is_main_site( get_current_blog_id()) || (is_network_admin() && is_super_admin()))
|
298 |
-
) {
|
299 |
if (current_user_can('ure_reset_roles')) {
|
300 |
?>
|
301 |
<button id="ure_reset_roles_button" class="ure_toolbar_button" style="color: red;" title="Reset Roles to its original state">Reset</button>
|
@@ -377,7 +376,8 @@ if ($this->multisite && !is_network_admin()) {
|
|
377 |
|
378 |
<?php
|
379 |
$ao = $this->lib->get('role_additional_options');
|
380 |
-
$
|
|
|
381 |
?>
|
382 |
<input type="hidden" name="object" value="role" />
|
383 |
<?php
|
151 |
|
152 |
|
153 |
public function display_edit_dialogs() {
|
154 |
+
$multisite = $this->lib->get('multisite');
|
155 |
$current_role = $this->lib->get('current_role');
|
156 |
$current_role_name = $this->lib->get('current_role_name');
|
157 |
?>
|
191 |
</div>
|
192 |
|
193 |
<?php
|
194 |
+
if ($multisite && !is_network_admin()) {
|
195 |
?>
|
196 |
<div id="ure_default_role_dialog" class="ure-modal-dialog">
|
197 |
<div style="padding:10px;">
|
237 |
$add_del_role_for_simple_admin = 1;
|
238 |
}
|
239 |
$super_admin = is_super_admin();
|
240 |
+
$multisite = $this->lib->get('multisite');
|
241 |
|
242 |
?>
|
243 |
<div id="ure_toolbar" >
|
294 |
<div id="ure_service_tools">
|
295 |
<?php
|
296 |
do_action('ure_role_edit_toolbar_service');
|
297 |
+
if (!$multisite || (is_main_site( get_current_blog_id()) || (is_network_admin() && is_super_admin()))) {
|
|
|
|
|
298 |
if (current_user_can('ure_reset_roles')) {
|
299 |
?>
|
300 |
<button id="ure_reset_roles_button" class="ure_toolbar_button" style="color: red;" title="Reset Roles to its original state">Reset</button>
|
376 |
|
377 |
<?php
|
378 |
$ao = $this->lib->get('role_additional_options');
|
379 |
+
$current_role = $this->lib->get('current_role');
|
380 |
+
$ao->show($current_role);
|
381 |
?>
|
382 |
<input type="hidden" name="object" value="role" />
|
383 |
<?php
|
includes/classes/user-view.php
CHANGED
@@ -125,6 +125,8 @@ class URE_User_View extends URE_View {
|
|
125 |
|
126 |
|
127 |
public function display() {
|
|
|
|
|
128 |
$edit_user_caps_mode = $this->lib->get_edit_user_caps_mode();
|
129 |
$caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
|
130 |
$user_info = $this->get_user_info();
|
@@ -141,7 +143,7 @@ class URE_User_View extends URE_View {
|
|
141 |
<td style="padding-left: 10px; padding-bottom: 5px;">
|
142 |
<?php
|
143 |
if (is_super_admin() || !$this->multisite || !class_exists('User_Role_Editor_Pro') || !$caps_access_restrict_for_simple_admin) {
|
144 |
-
if ($
|
145 |
$checked = 'checked="checked"';
|
146 |
} else {
|
147 |
$checked = '';
|
@@ -151,7 +153,7 @@ class URE_User_View extends URE_View {
|
|
151 |
<?php echo $checked; ?> onclick="ure_turn_caps_readable(<?php echo $this->user_to_edit->ID; ?>);" />
|
152 |
<label for="ure_caps_readable"><?php esc_html_e('Show capabilities in human readable form', 'user-role-editor'); ?></label>
|
153 |
<?php
|
154 |
-
if ($
|
155 |
$checked = 'checked="checked"';
|
156 |
} else {
|
157 |
$checked = '';
|
125 |
|
126 |
|
127 |
public function display() {
|
128 |
+
$caps_readable = $this->lib->get('caps_readable');
|
129 |
+
$show_deprecated_caps = $this->lib->get('show_deprecated_caps');
|
130 |
$edit_user_caps_mode = $this->lib->get_edit_user_caps_mode();
|
131 |
$caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
|
132 |
$user_info = $this->get_user_info();
|
143 |
<td style="padding-left: 10px; padding-bottom: 5px;">
|
144 |
<?php
|
145 |
if (is_super_admin() || !$this->multisite || !class_exists('User_Role_Editor_Pro') || !$caps_access_restrict_for_simple_admin) {
|
146 |
+
if ($caps_readable) {
|
147 |
$checked = 'checked="checked"';
|
148 |
} else {
|
149 |
$checked = '';
|
153 |
<?php echo $checked; ?> onclick="ure_turn_caps_readable(<?php echo $this->user_to_edit->ID; ?>);" />
|
154 |
<label for="ure_caps_readable"><?php esc_html_e('Show capabilities in human readable form', 'user-role-editor'); ?></label>
|
155 |
<?php
|
156 |
+
if ($show_deprecated_caps) {
|
157 |
$checked = 'checked="checked"';
|
158 |
} else {
|
159 |
$checked = '';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladi
|
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5.3
|
7 |
-
Stable tag: 4.26
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -77,6 +77,9 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= [4.26] 14.07.2016 =
|
81 |
* New: User capabilities were groupd by functionality for more convenience.
|
82 |
* Update: URE_KEY_CAPABILITY constant was changed from 'ure_edit_roles' to 'ure_manage_options'. To make possible for non-admin users access to the User Role Editor without access to the 'administrator' role and users with 'administrator' role.
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.5.3
|
7 |
+
Stable tag: 4.26.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= [4.26.1] 14.07.2016 =
|
81 |
+
* Fix: some bugs, like 'undefined property' notices, etc.
|
82 |
+
|
83 |
= [4.26] 14.07.2016 =
|
84 |
* New: User capabilities were groupd by functionality for more convenience.
|
85 |
* Update: URE_KEY_CAPABILITY constant was changed from 'ure_edit_roles' to 'ure_manage_options'. To make possible for non-admin users access to the User Role Editor without access to the 'administrator' role and users with 'administrator' role.
|
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.1
|
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.1');
|
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__));
|