User Role Editor - Version 3.3.1

Version Description

  • 12.12.2011
  • Compatibility with Internet Explorer fix: It automatically replaced '&copy' in '&copy_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 Icon 128x128 User Role Editor
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3 to 3.3.1

Files changed (4) hide show
  1. readme.txt +5 -1
  2. ure-lib.php +3 -3
  3. ure-role-edit.php +3 -3
  4. 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 '&copy' in '&copy_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
- $copy_from_user_role = isset($_GET['copy_from_user_role']) ? $_GET['copy_from_user_role'] : false;
312
- if (!empty($copy_from_user_role) && $copy_from_user_role!='none' && $wp_roles->is_role($copy_from_user_role)) {
313
- $role = $wp_roles->get_role($copy_from_user_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="copy_from_user_role" name="copy_from_user_role" 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,8 +129,8 @@ if (is_multisite()) {
129
  } else {
130
  url = url +'&user_role='+ escape(value);
131
  if (action=='addnewrole') {
132
- el = document.getElementById('copy_from_user_role');
133
- url = url +'&copy_from_user_role='+ el.value;
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