Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.60.2 |
Comparing to | |
See all releases |
Code changes from version 4.60.1 to 4.60.2
- changelog.txt +9 -0
- includes/classes/editor.php +5 -1
- includes/classes/own-capabilities.php +1 -0
- readme.txt +9 -19
- user-role-editor.php +2 -2
changelog.txt
CHANGED
@@ -1,5 +1,14 @@
|
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= [4.60] 24.06.2021 =
|
4 |
* New: Notification box was replaced with one based on the [jpillora/nofifyjs](https://notifyjs.jpillora.com/) jQuery plugin. It does not move down page content. It disappears automatically after 5 seconds. Click on it to remove it manually.
|
5 |
* Fix: "Add capability" shows warning styled notification when needed (invalid characters, etc.) instead of a successful one.
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
3 |
+
|
4 |
+
= [4.60.2] 20.09.2021 =
|
5 |
+
* Update: Marked as compatible with WordPress 5.8.1
|
6 |
+
* Fix: Multisite: URE_Editor::is_full_network_sync() returned FALSE, instead TRUE for the AJAX call, while call was made from the Network Admin (wp-admin/network/).
|
7 |
+
|
8 |
+
= [4.60.1] 21.07.2021 =
|
9 |
+
* Update: Marked as compatible with WordPress 5.8.
|
10 |
+
* Fix: PHP Notice: Undefined property: URE_User_View::$multisite in /wp-content/plugins/user-role-editor/includes/classes/user-view.php on line 145
|
11 |
+
|
12 |
= [4.60] 24.06.2021 =
|
13 |
* New: Notification box was replaced with one based on the [jpillora/nofifyjs](https://notifyjs.jpillora.com/) jQuery plugin. It does not move down page content. It disappears automatically after 5 seconds. Click on it to remove it manually.
|
14 |
* Fix: "Add capability" shows warning styled notification when needed (invalid characters, etc.) instead of a successful one.
|
includes/classes/editor.php
CHANGED
@@ -295,7 +295,11 @@ class URE_Editor {
|
|
295 |
*/
|
296 |
protected function is_full_network_synch() {
|
297 |
|
298 |
-
|
|
|
|
|
|
|
|
|
299 |
$result = true;
|
300 |
} else {
|
301 |
$result = defined('URE_MULTISITE_DIRECT_UPDATE') && URE_MULTISITE_DIRECT_UPDATE == 1;
|
295 |
*/
|
296 |
protected function is_full_network_synch() {
|
297 |
|
298 |
+
/* is_network_admin() returns wrong result for the AJAX calls from the network admin
|
299 |
+
* so have to use this way
|
300 |
+
*/
|
301 |
+
$network_admin = $this->lib->get_request_var('network_admin', 'post', 'int');
|
302 |
+
if ( $network_admin==1 ) { // for Pro version only
|
303 |
$result = true;
|
304 |
} else {
|
305 |
$result = defined('URE_MULTISITE_DIRECT_UPDATE') && URE_MULTISITE_DIRECT_UPDATE == 1;
|
includes/classes/own-capabilities.php
CHANGED
@@ -34,6 +34,7 @@ class URE_Own_Capabilities {
|
|
34 |
$ure_caps['ure_meta_boxes_access'] = 1;
|
35 |
$ure_caps['ure_other_roles_access'] = 1;
|
36 |
$ure_caps['ure_edit_posts_access'] = 1;
|
|
|
37 |
$ure_caps['ure_plugins_activation_access'] = 1;
|
38 |
$ure_caps['ure_view_posts_access'] = 1;
|
39 |
$ure_caps['ure_front_end_menu_access'] = 1;
|
34 |
$ure_caps['ure_meta_boxes_access'] = 1;
|
35 |
$ure_caps['ure_other_roles_access'] = 1;
|
36 |
$ure_caps['ure_edit_posts_access'] = 1;
|
37 |
+
$ure_caps['ure_edit_gravityforms_access'] = 1;
|
38 |
$ure_caps['ure_plugins_activation_access'] = 1;
|
39 |
$ure_caps['ure_view_posts_access'] = 1;
|
40 |
$ure_caps['ure_front_end_menu_access'] = 1;
|
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.8
|
7 |
-
Stable tag: 4.60.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -81,6 +81,10 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
81 |
|
82 |
== Changelog =
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= [4.60.1] 21.07.2021 =
|
85 |
* Update: Marked as compatible with WordPress 5.8.
|
86 |
* Fix: PHP Notice: Undefined property: URE_User_View::$multisite in /wp-content/plugins/user-role-editor/includes/classes/user-view.php on line 145
|
@@ -90,19 +94,6 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
90 |
* Fix: "Add capability" shows warning styled notification when needed (invalid characters, etc.) instead of a successful one.
|
91 |
* Fix: Capabilities group uncheck and revert selection is blocked for the administrator role to exclude accident deletion of permissions from it.
|
92 |
|
93 |
-
= [4.59.1] 11.05.2021 =
|
94 |
-
* New: Multisite: When update role at the main site with "Apply to all sites" option and PHP constant URE_MULTISITE_DIRECT_UPDATE === 1 (update roles directly in database, not via WordPress API),
|
95 |
-
* URE overwrites all subsite roles with roles from the main site. It's possible now to leave selected role(s) for selected subsite(s) unchanged: add filter 'ure_network_update_leave_roles' and
|
96 |
-
* return from it the array like this one - array( (int) blog_id => array('role_id1', 'role_id2', ... );
|
97 |
-
* Update: "Other roles" section at user profile is available now only for users with 'promote_users' capability.
|
98 |
-
* Update: Notice at the top of URE page about action result is not removed automatically after 7 seconds as earlier.
|
99 |
-
* Update: 'ure_sort_wp_roles_list' filter accepts these values for the single input parameter: false - leave roles list as it is; true, 'id' - sort roles list by role ID; 'name' - sort roles by role name.
|
100 |
-
|
101 |
-
= [4.59] 05.04.2021 =
|
102 |
-
* Update: PHP constant URE_WP_ADMIN_URL was replaced with direct 'admin_url()' call to respect the 'admin_url' filter applied by the get_admin_url() WordPress API function.
|
103 |
-
* Update: Editing roles and capabilities granted to selected user ("Capabilities" link under user row at the "Users" list) executes 'add_user_role' or 'remove_user_role' actions only in case it really grants or revokes roles and/or capabilities.
|
104 |
-
Previous versions fully revoked and granted again all roles during user permissions update even in case roles list was not changed. It was leaded to the false execution of the mentioned add/remove role actions.
|
105 |
-
|
106 |
File changelog.txt contains the full list of changes.
|
107 |
|
108 |
== Additional Documentation ==
|
@@ -113,8 +104,7 @@ I am ready to answer on your questions about plugin usage. Use [plugin page comm
|
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
|
116 |
-
= [4.60]
|
117 |
-
*
|
118 |
-
* Fix:
|
119 |
-
* Fix: Capabilities group uncheck and revert selection is blocked for the administrator role to exclude accident deletion of permissions from it.
|
120 |
|
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.8.1
|
7 |
+
Stable tag: 4.60.2
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
81 |
|
82 |
== Changelog =
|
83 |
|
84 |
+
= [4.60.2] 20.09.2021 =
|
85 |
+
* Update: Marked as compatible with WordPress 5.8.1
|
86 |
+
* Fix: Multisite: URE_Editor::is_full_network_sync() returned FALSE, instead TRUE for the AJAX call, while call was made from the Network Admin (wp-admin/network/).
|
87 |
+
|
88 |
= [4.60.1] 21.07.2021 =
|
89 |
* Update: Marked as compatible with WordPress 5.8.
|
90 |
* Fix: PHP Notice: Undefined property: URE_User_View::$multisite in /wp-content/plugins/user-role-editor/includes/classes/user-view.php on line 145
|
94 |
* Fix: "Add capability" shows warning styled notification when needed (invalid characters, etc.) instead of a successful one.
|
95 |
* Fix: Capabilities group uncheck and revert selection is blocked for the administrator role to exclude accident deletion of permissions from it.
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
File changelog.txt contains the full list of changes.
|
98 |
|
99 |
== Additional Documentation ==
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
107 |
+
= [4.60.2] 20.09.2021 =
|
108 |
+
* Update: Marked as compatible with WordPress 5.8.1
|
109 |
+
* Fix: Multisite: URE_Editor::is_full_network_sync() returned FALSE, instead TRUE for the AJAX call, while call was made from the Network Admin (wp-admin/network/).
|
|
|
110 |
|
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.60.
|
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.60.
|
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.60.2
|
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.60.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__ ) );
|