Version Description
- 12.12.2011
- Compatibility with Internet Explorer fix: It automatically replaced '©' in '©_from_user_role' URL parameter inside JavaScript code to copyright sign.So I should use other name for this parameter. Thanks to Michael Wiekenberg for the help with isolating this issue.
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3 to 3.3.1
- readme.txt +5 -1
- ure-lib.php +3 -3
- ure-role-edit.php +3 -3
- user-role-editor.php +1 -1
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: 3.0
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 3.3
|
8 |
|
9 |
User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator).
|
10 |
|
@@ -80,6 +80,10 @@ Share with me new ideas about plugin further development and link to your site w
|
|
80 |
|
81 |
|
82 |
== Changelog ==
|
|
|
|
|
|
|
|
|
83 |
= 3.3 =
|
84 |
* 10.12.2011
|
85 |
* New role can be created as a copy of other existing one.
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 3.3.1
|
8 |
|
9 |
User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator).
|
10 |
|
80 |
|
81 |
|
82 |
== Changelog ==
|
83 |
+
= 3.3.1 =
|
84 |
+
* 12.12.2011
|
85 |
+
* Compatibility with Internet Explorer fix: It automatically replaced '©' in '©_from_user_role' URL parameter inside JavaScript code to copyright sign.So I should use other name for this parameter. Thanks to Michael Wiekenberg for the help with isolating this issue.
|
86 |
+
|
87 |
= 3.3 =
|
88 |
* 10.12.2011
|
89 |
* New role can be created as a copy of other existing one.
|
ure-lib.php
CHANGED
@@ -308,9 +308,9 @@ function ure_newRoleCreate(&$ure_currentRole) {
|
|
308 |
}
|
309 |
// add new role to the roles array
|
310 |
$ure_currentRole = strtolower($user_role);
|
311 |
-
$
|
312 |
-
if (!empty($
|
313 |
-
$role = $wp_roles->get_role($
|
314 |
$capabilities = $role->capabilities;
|
315 |
} else {
|
316 |
$capabilities = array('read'=>1, 'level_0'=>1);
|
308 |
}
|
309 |
// add new role to the roles array
|
310 |
$ure_currentRole = strtolower($user_role);
|
311 |
+
$user_role_copy_from = isset($_GET['user_role_copy_from']) ? $_GET['user_role_copy_from'] : false;
|
312 |
+
if (!empty($user_role_copy_from) && $user_role_copy_from!='none' && $wp_roles->is_role($user_role_copy_from)) {
|
313 |
+
$role = $wp_roles->get_role($user_role_copy_from);
|
314 |
$capabilities = $role->capabilities;
|
315 |
} else {
|
316 |
$capabilities = array('read'=>1, 'level_0'=>1);
|
ure-role-edit.php
CHANGED
@@ -23,7 +23,7 @@ if (!isset($ure_currentRole) || !$ure_currentRole) {
|
|
23 |
}
|
24 |
|
25 |
$roleDefaultHTML = '<select id="default_user_role" name="default_user_role" width="200" style="width: 200px">';
|
26 |
-
$roleToCopyHTML = '<select id="
|
27 |
<option value="none" selected="selected">'.__('None', 'ure').'</option>';
|
28 |
$roleSelectHTML = '<select id="user_role" name="user_role" onchange="ure_Actions(\'role-change\', this.value);">';
|
29 |
foreach ($ure_roles as $key=>$value) {
|
@@ -129,8 +129,8 @@ if (is_multisite()) {
|
|
129 |
} else {
|
130 |
url = url +'&user_role='+ escape(value);
|
131 |
if (action=='addnewrole') {
|
132 |
-
el = document.getElementById('
|
133 |
-
url = url +'&
|
134 |
}
|
135 |
}
|
136 |
}
|
23 |
}
|
24 |
|
25 |
$roleDefaultHTML = '<select id="default_user_role" name="default_user_role" width="200" style="width: 200px">';
|
26 |
+
$roleToCopyHTML = '<select id="user_role_copy_from" name="user_role_copy_from" width="200" style="width: 200px">
|
27 |
<option value="none" selected="selected">'.__('None', 'ure').'</option>';
|
28 |
$roleSelectHTML = '<select id="user_role" name="user_role" onchange="ure_Actions(\'role-change\', this.value);">';
|
29 |
foreach ($ure_roles as $key=>$value) {
|
129 |
} else {
|
130 |
url = url +'&user_role='+ escape(value);
|
131 |
if (action=='addnewrole') {
|
132 |
+
el = document.getElementById('user_role_copy_from');
|
133 |
+
url = url +'&user_role_copy_from='+ el.value;
|
134 |
}
|
135 |
}
|
136 |
}
|
user-role-editor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
|
5 |
Description: It allows you to change/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
|
6 |
-
Version: 3.3
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: http://www.shinephp.com
|
9 |
Text Domain: ure
|
3 |
Plugin Name: User Role Editor
|
4 |
Plugin URI: http://www.shinephp.com/user-role-editor-wordpress-plugin/
|
5 |
Description: It allows you to change/add/delete any WordPress user role (except administrator) capabilities list with a few clicks.
|
6 |
+
Version: 3.3.1
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: http://www.shinephp.com
|
9 |
Text Domain: ure
|