Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.42 |
Comparing to | |
See all releases |
Code changes from version 4.41 to 4.42
- includes/classes/ure-lib.php +4 -1
- readme.txt +7 -4
- user-role-editor.php +2 -2
includes/classes/ure-lib.php
CHANGED
@@ -311,7 +311,10 @@ class URE_Lib extends URE_Base_Lib {
|
|
311 |
// Add existing WPBakery Visial Composer () plugin capabilities from this role to the list of capabiliteis for save with this role update -
|
312 |
// Visual Composer capabilities are excluded from a role update as they may store not boolean values.
|
313 |
protected function restore_visual_composer_caps() {
|
314 |
-
|
|
|
|
|
|
|
315 |
foreach($this->roles[$this->current_role]['capabilities'] as $cap=>$value) {
|
316 |
if (strpos($cap, 'vc_access_rules_')!==false) {
|
317 |
$this->capabilities_to_save[$cap] = $value;
|
311 |
// Add existing WPBakery Visial Composer () plugin capabilities from this role to the list of capabiliteis for save with this role update -
|
312 |
// Visual Composer capabilities are excluded from a role update as they may store not boolean values.
|
313 |
protected function restore_visual_composer_caps() {
|
314 |
+
if (!isset($this->roles[$this->current_role]) || !is_array($this->roles[$this->current_role]['capabilities'])) {
|
315 |
+
return;
|
316 |
+
}
|
317 |
+
|
318 |
foreach($this->roles[$this->current_role]['capabilities'] as $cap=>$value) {
|
319 |
if (strpos($cap, 'vc_access_rules_')!==false) {
|
320 |
$this->capabilities_to_save[$cap] = $value;
|
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.9.5
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -79,6 +79,9 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
79 |
|
80 |
|
81 |
== Changelog =
|
|
|
|
|
|
|
82 |
= [4.41] 07.05.2018 =
|
83 |
* New: URE changes currently selected role via AJAX request, without full "Users->User Role Editor" page refresh.
|
84 |
* Update: All [WPBakery Visual Composer](http://vc.wpbakery.com) plugin custom user capabilities (started from 'vc_access_rules_') were excluded from processing by User Role Editor. Visual Composer loses settings made via its own "Role Manager" after the role update by User Role Editor in other case. The reason - Visual Composer stores not boolean values with user capabilities granted to the roles via own "Role Manager". User Role Editor converted them to related boolean values during role(s) update.
|
@@ -108,8 +111,8 @@ You can find more information about "User Role Editor" plugin at [this page](htt
|
|
108 |
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.
|
109 |
|
110 |
== Upgrade Notice ==
|
111 |
-
= [4.
|
112 |
-
*
|
113 |
-
|
114 |
|
115 |
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.5
|
7 |
+
Stable tag: 4.42
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
79 |
|
80 |
|
81 |
== Changelog =
|
82 |
+
= [4.42] 16.05.2018 =
|
83 |
+
* Fix: Type checking was added (URE_Lib::restore_visual_composer_caps()) to fix "Warning: Invalid argument supplied for foreach() in .../user-role-editor-pro/includes/classes/ure-lib.php on line 315".
|
84 |
+
|
85 |
= [4.41] 07.05.2018 =
|
86 |
* New: URE changes currently selected role via AJAX request, without full "Users->User Role Editor" page refresh.
|
87 |
* Update: All [WPBakery Visual Composer](http://vc.wpbakery.com) plugin custom user capabilities (started from 'vc_access_rules_') were excluded from processing by User Role Editor. Visual Composer loses settings made via its own "Role Manager" after the role update by User Role Editor in other case. The reason - Visual Composer stores not boolean values with user capabilities granted to the roles via own "Role Manager". User Role Editor converted them to related boolean values during role(s) update.
|
111 |
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.
|
112 |
|
113 |
== Upgrade Notice ==
|
114 |
+
= [4.42] 13.05.2018 =
|
115 |
+
* Fix: Type checking was added (URE_Lib::restore_visual_composer_caps()) to fix "Warning: Invalid argument supplied for foreach() in .../user-role-editor-pro/includes/classes/ure-lib.php on line 315".
|
116 |
+
|
117 |
|
118 |
|
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.
|
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.
|
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.42
|
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.42');
|
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__));
|