Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.56.1 |
Comparing to | |
See all releases |
Code changes from version 4.56 to 4.56.1
- changelog.txt +5 -0
- includes/classes/editor.php +3 -0
- js/ure.js +5 -5
- readme.txt +11 -8
- user-role-editor.php +2 -2
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
|
|
|
|
|
|
|
|
|
|
3 |
= [4.56] 09.08.2020 =
|
4 |
* New: User capabilities 'install_languages', 'resume_plugins', 'resume_themes', 'view_site_health_checks' were added to the list of supported WordPress built-in user capabilities.
|
5 |
* Update: Single site WordPress installation: URE automatically grants all existing user capabilities to WordPress built-in 'administrator' role before opening its page "Users->User Role Editor".
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
3 |
+
= [4.56.1] 05.09.2020 =
|
4 |
+
* New: WordPress multisite: Main site: Users->User Role Editor->Apply to All->Update: 'ure_after_network_roles_update' action hook was added. It is executed after all roles were replicated from the main site to the all other subsites of the network.
|
5 |
+
* Fix: "Granted Only" filter did not work.
|
6 |
+
* Fix: Warning was fixed: wp-content/plugins/user-role-editor/js/ure.js: jQuery.fn.attr('checked') might use property instead of attribute.
|
7 |
+
|
8 |
= [4.56] 09.08.2020 =
|
9 |
* New: User capabilities 'install_languages', 'resume_plugins', 'resume_themes', 'view_site_health_checks' were added to the list of supported WordPress built-in user capabilities.
|
10 |
* Update: Single site WordPress installation: URE automatically grants all existing user capabilities to WordPress built-in 'administrator' role before opening its page "Users->User Role Editor".
|
includes/classes/editor.php
CHANGED
@@ -508,6 +508,9 @@ class URE_Editor {
|
|
508 |
} else {
|
509 |
$result = $this->wp_api_network_roles_update();
|
510 |
}
|
|
|
|
|
|
|
511 |
|
512 |
if ($debug) {
|
513 |
echo '<div class="updated fade below-h2">Roles updated for ' . ( microtime() - $time_shot ) . ' milliseconds</div>';
|
508 |
} else {
|
509 |
$result = $this->wp_api_network_roles_update();
|
510 |
}
|
511 |
+
|
512 |
+
// Use this action to hook a code to execute after roles were updated at all subsites of the multisite network
|
513 |
+
do_action('ure_after_network_roles_update');
|
514 |
|
515 |
if ($debug) {
|
516 |
echo '<div class="updated fade below-h2">Roles updated for ' . ( microtime() - $time_shot ) . ' milliseconds</div>';
|
js/ure.js
CHANGED
@@ -157,7 +157,7 @@ var ure_main = {
|
|
157 |
|
158 |
|
159 |
caps_refresh_for_group: function (group_id) {
|
160 |
-
var show_deprecated = jQuery('#ure_show_deprecated_caps').
|
161 |
jQuery('.ure-cap-div').each(function () {
|
162 |
var el = jQuery(this);
|
163 |
if (el.hasClass(ure_main.class_prefix + group_id)) {
|
@@ -209,7 +209,7 @@ var ure_main = {
|
|
209 |
ure_main.caps_refresh_for_group( group_id );
|
210 |
}
|
211 |
ure_main.change_caps_columns_quant();
|
212 |
-
jQuery('#granted_only').
|
213 |
},
|
214 |
|
215 |
|
@@ -267,15 +267,15 @@ var ure_main = {
|
|
267 |
|
268 |
|
269 |
show_granted_caps_only: function () {
|
270 |
-
var show_deprecated = jQuery('#ure_show_deprecated_caps').
|
271 |
-
var hide_flag = jQuery('#granted_only').
|
272 |
jQuery('.ure-cap-div').each(function () {
|
273 |
var cap_div = jQuery(this);
|
274 |
if ( !cap_div.hasClass(ure_main.class_prefix + ure_main.selected_group ) ) { // apply to the currently selected group only
|
275 |
return;
|
276 |
}
|
277 |
var cap_id = cap_div.attr('id').substr( 12 );
|
278 |
-
var granted = jQuery('#'+ cap_id).
|
279 |
if ( granted ) {
|
280 |
return;
|
281 |
}
|
157 |
|
158 |
|
159 |
caps_refresh_for_group: function (group_id) {
|
160 |
+
var show_deprecated = jQuery('#ure_show_deprecated_caps').prop('checked');
|
161 |
jQuery('.ure-cap-div').each(function () {
|
162 |
var el = jQuery(this);
|
163 |
if (el.hasClass(ure_main.class_prefix + group_id)) {
|
209 |
ure_main.caps_refresh_for_group( group_id );
|
210 |
}
|
211 |
ure_main.change_caps_columns_quant();
|
212 |
+
jQuery('#granted_only').prop('checked', false);
|
213 |
},
|
214 |
|
215 |
|
267 |
|
268 |
|
269 |
show_granted_caps_only: function () {
|
270 |
+
var show_deprecated = jQuery('#ure_show_deprecated_caps').prop('checked');
|
271 |
+
var hide_flag = jQuery('#granted_only').prop('checked');
|
272 |
jQuery('.ure-cap-div').each(function () {
|
273 |
var cap_div = jQuery(this);
|
274 |
if ( !cap_div.hasClass(ure_main.class_prefix + ure_main.selected_group ) ) { // apply to the currently selected group only
|
275 |
return;
|
276 |
}
|
277 |
var cap_id = cap_div.attr('id').substr( 12 );
|
278 |
+
var granted = jQuery('#'+ cap_id).prop('checked');
|
279 |
if ( granted ) {
|
280 |
return;
|
281 |
}
|
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: 5.5
|
7 |
-
Stable tag: 4.56
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -80,6 +80,11 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
80 |
|
81 |
|
82 |
== Changelog =
|
|
|
|
|
|
|
|
|
|
|
83 |
= [4.56] 09.08.2020 =
|
84 |
* New: User capabilities 'install_languages', 'resume_plugins', 'resume_themes', 'view_site_health_checks' were added to the list of supported WordPress built-in user capabilities.
|
85 |
* Update: Single site WordPress installation: URE automatically grants all existing user capabilities to WordPress built-in 'administrator' role before opening its page "Users->User Role Editor".
|
@@ -90,9 +95,6 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
90 |
* Security fix: User with 'edit_users' capability could assign to another user a role not included into the editable roles list. This fix is required to install ASAP for all sites which have user(s) with 'edit_users' capability granted not via 'administrator' role.
|
91 |
* Update: URE_Uninstall class properties were made 'protected' to be accessible in URE_Uninstall_Pro class included into the Pro version.
|
92 |
|
93 |
-
= [4.55] 03.06.2020 =
|
94 |
-
* Update: User Role Editor uninstallation was refactored. It fully removes the ('ure_%') user capabilities from the user roles data.
|
95 |
-
|
96 |
File changelog.txt contains the full list of changes.
|
97 |
|
98 |
== Additional Documentation ==
|
@@ -102,6 +104,7 @@ You can find more information about "User Role Editor" plugin at [this page](htt
|
|
102 |
I am ready to answer on your questions about plugin usage. Use [plugin page comments](http://www.shinephp.com/user-role-editor-wordpress-plugin/) for that.
|
103 |
|
104 |
== Upgrade Notice ==
|
105 |
-
= [4.
|
106 |
-
New:
|
107 |
-
|
|
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: 5.5.1
|
7 |
+
Stable tag: 4.56.1
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
80 |
|
81 |
|
82 |
== Changelog =
|
83 |
+
= [4.56.1] 05.09.2020 =
|
84 |
+
* New: WordPress multisite: Main site: Users->User Role Editor->Apply to All->Update: 'ure_after_network_roles_update' action hook was added. It is executed after all roles were replicated from the main site to the all other subsites of the network.
|
85 |
+
* Fix: "Granted Only" filter did not work.
|
86 |
+
* Fix: Warning was fixed: wp-content/plugins/user-role-editor/js/ure.js: jQuery.fn.attr('checked') might use property instead of attribute.
|
87 |
+
|
88 |
= [4.56] 09.08.2020 =
|
89 |
* New: User capabilities 'install_languages', 'resume_plugins', 'resume_themes', 'view_site_health_checks' were added to the list of supported WordPress built-in user capabilities.
|
90 |
* Update: Single site WordPress installation: URE automatically grants all existing user capabilities to WordPress built-in 'administrator' role before opening its page "Users->User Role Editor".
|
95 |
* Security fix: User with 'edit_users' capability could assign to another user a role not included into the editable roles list. This fix is required to install ASAP for all sites which have user(s) with 'edit_users' capability granted not via 'administrator' role.
|
96 |
* Update: URE_Uninstall class properties were made 'protected' to be accessible in URE_Uninstall_Pro class included into the Pro version.
|
97 |
|
|
|
|
|
|
|
98 |
File changelog.txt contains the full list of changes.
|
99 |
|
100 |
== Additional Documentation ==
|
104 |
I am ready to answer on your questions about plugin usage. Use [plugin page comments](http://www.shinephp.com/user-role-editor-wordpress-plugin/) for that.
|
105 |
|
106 |
== Upgrade Notice ==
|
107 |
+
= [4.56.1] 05.09.2020 =
|
108 |
+
* New: WordPress multisite: Main site: Users->User Role Editor->Apply to All->Update: 'ure_after_network_roles_update' action hook was added. It is executed after all roles were replicated from the main site to the all other subsites of the network.
|
109 |
+
* Fix: "Granted Only" filter did not work.
|
110 |
+
* Fix: Warning was fixed: wp-content/plugins/user-role-editor/js/ure.js: jQuery.fn.attr('checked') might use property instead of attribute.
|
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.56
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: user-role-editor
|
@@ -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.56' );
|
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.56.1
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: user-role-editor
|
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.56.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__ ) );
|