User Role Editor - Version 3.0.4

Version Description

  • 18.04.2011
  • minor update: PHP4 compatibility issue in code was discovered and fixed. PHP5 users could skip it. PHP4 users should think about update to PHP5, as WordPress 3.2 (planned to July 2011) will not provide PHP4 compatibility more.
Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 3.0.4
Comparing to
See all releases

Code changes from version 3.0.3 to 3.0.4

Files changed (3) hide show
  1. readme.txt +6 -2
  2. ure-lib.php +9 -8
  3. user-role-editor.php +1 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.shinephp.com/donate/
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: 3.0.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
 
@@ -67,8 +67,12 @@ Share with me new ideas about plugin further development and link to your site w
67
 
68
 
69
  == Changelog ==
 
 
 
 
70
  = 3.0.3 =
71
- * 16.04.2011
72
  * Capabilities in human readable form are sorted by alphabet (usefull for translated form) now, not by inner capability name.
73
  * Finnish translation is added.
74
 
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
+ Stable tag: 3.0.4
8
 
9
  User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator).
10
 
67
 
68
 
69
  == Changelog ==
70
+ = 3.0.4 =
71
+ * 18.04.2011
72
+ * minor update: PHP4 compatibility issue in code was discovered and fixed. PHP5 users could skip it. PHP4 users should think about update to PHP5, as WordPress 3.2 (planned to July 2011) will not provide PHP4 compatibility more.
73
+
74
  = 3.0.3 =
75
+ * 17.04.2011
76
  * Capabilities in human readable form are sorted by alphabet (usefull for translated form) now, not by inner capability name.
77
  * Finnish translation is added.
78
 
ure-lib.php CHANGED
@@ -537,17 +537,18 @@ function ure_TranslationData() {
537
 
538
 
539
  function ure_ArrayUnique($myArray) {
540
- if(!is_array($myArray))
541
- return $myArray;
542
-
543
- foreach ($myArray as &$myvalue){
544
- $myvalue=serialize($myvalue);
 
545
  }
546
 
547
- $myArray=array_unique($myArray);
548
 
549
- foreach ($myArray as &$myvalue){
550
- $myvalue=unserialize($myvalue);
551
  }
552
 
553
  return $myArray;
537
 
538
 
539
  function ure_ArrayUnique($myArray) {
540
+ if (!is_array($myArray)) {
541
+ return $myArray;
542
+ }
543
+
544
+ foreach ($myArray as $key=>$value) {
545
+ $myArray[$key] = serialize($value);
546
  }
547
 
548
+ $myArray = array_unique($myArray);
549
 
550
+ foreach ($myArray as $key=>$value) {
551
+ $myArray[$key] = unserialize($value);
552
  }
553
 
554
  return $myArray;
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 any standard WordPress user roles (except administrator) capabilities list with a few clicks.
6
- Version: 3.0.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 any standard WordPress user roles (except administrator) capabilities list with a few clicks.
6
+ Version: 3.0.4
7
  Author: Vladimir Garagulya
8
  Author URI: http://www.shinephp.com
9
  Text Domain: ure