WPFront User Role Editor - Version 0.3.1

Version Description

  • Bug fixes
Download this release

Release Info

Developer syammohanm
Plugin Icon 128x128 WPFront User Role Editor
Version 0.3.1
Comparing to
See all releases

Code changes from version 0.3 to 0.3.1

classes/class-wpfront-user-role-editor.php CHANGED
@@ -36,7 +36,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
36
  class WPFront_User_Role_Editor extends WPFront_Base {
37
 
38
  //Constants
39
- const VERSION = '0.3';
40
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
41
  const OPTION_NAME = 'wpfront-user-role-editor-options';
42
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
36
  class WPFront_User_Role_Editor extends WPFront_Base {
37
 
38
  //Constants
39
+ const VERSION = '0.3.1';
40
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
41
  const OPTION_NAME = 'wpfront-user-role-editor-options';
42
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WPFront User Role Editor ===
2
  Contributors: syammohanm
3
  Donate link: http://wpfront.com/donate/
4
- Tags: user role editor, role editor, user role, role, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user
5
  Requires at least: 3.5
6
- Tested up to: 3.8.1
7
- Stable tag: 0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -52,11 +52,17 @@ Visit [WPFront User Role Editor Settings](http://wpfront.com/user-role-editor-pl
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = 0.3 =
56
  * Initial release
57
 
58
  == Upgrade Notice ==
59
 
 
 
 
60
  = 0.3 =
61
  * Initial release
62
 
1
  === WPFront User Role Editor ===
2
  Contributors: syammohanm
3
  Donate link: http://wpfront.com/donate/
4
+ Tags: user role editor, role editor, user role, role, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user, capability editor, capability manager
5
  Requires at least: 3.5
6
+ Tested up to: 3.9
7
+ Stable tag: 0.3.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
52
 
53
  == Changelog ==
54
 
55
+ = 0.3.1 =
56
+ * Bug fixes
57
+
58
  = 0.3 =
59
  * Initial release
60
 
61
  == Upgrade Notice ==
62
 
63
+ = 0.3.1 =
64
+ * Fixed an issue with deleting roles
65
+
66
  = 0.3 =
67
  * Initial release
68
 
templates/delete-role.php CHANGED
@@ -46,7 +46,8 @@ $status_messages = array();
46
 
47
  $editable_roles = get_editable_roles();
48
  global $user_ID;
49
- $current_roles = (new WP_User($user_ID))->roles;
 
50
 
51
  foreach ($delete_roles as $role) {
52
  if (!array_key_exists($role, $editable_roles)) {
46
 
47
  $editable_roles = get_editable_roles();
48
  global $user_ID;
49
+ $user = new WP_User($user_ID);
50
+ $current_roles = $user->roles;
51
 
52
  foreach ($delete_roles as $role) {
53
  if (!array_key_exists($role, $editable_roles)) {
wpfront-user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WPFront User Role Editor
4
  * Plugin URI: http://wpfront.com/user-role-editor-plugin/
5
  * Description: Allows you to manage user roles.
6
- * Version: 0.3
7
  * Author: Syam Mohan
8
  * Author URI: http://wpfront.com
9
  * License: GPL v3
3
  * Plugin Name: WPFront User Role Editor
4
  * Plugin URI: http://wpfront.com/user-role-editor-plugin/
5
  * Description: Allows you to manage user roles.
6
+ * Version: 0.3.1
7
  * Author: Syam Mohan
8
  * Author URI: http://wpfront.com
9
  * License: GPL v3