WPFront User Role Editor - Version 1.1

Version Description

  • Edit deprecated capabilities
Download this release

Release Info

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

Code changes from version 1.0 to 1.1

classes/base/class-wpfront-base.php CHANGED
@@ -175,7 +175,9 @@ if (!class_exists('WPFront_Base')) {
175
  |
176
  <a href="http://wordpress.org/support/view/plugin-reviews/' . $this->plugin_slug . '" target="_blank">' . $this->__('Write Review') . '</a>
177
  |
178
- <a href="mailto:syam@wpfront.com">' . $this->__('Contact Me (syam@wpfront.com)') . '</a>
 
 
179
  ';
180
  echo '</form>';
181
  echo '</div>';
@@ -196,13 +198,14 @@ if (!class_exists('WPFront_Base')) {
196
  }
197
  }
198
 
199
- public function pluginURL(){
200
  return $this->pluginURLRoot;
201
  }
202
-
203
- public function pluginDIR(){
204
  return $this->pluginDIRRoot;
205
  }
 
206
  }
207
 
208
  }
175
  |
176
  <a href="http://wordpress.org/support/view/plugin-reviews/' . $this->plugin_slug . '" target="_blank">' . $this->__('Write Review') . '</a>
177
  |
178
+ <a href="http://wpfront.com/contact/" target="_blank">' . $this->__('Contact Me') . '</a>
179
+ |
180
+ <a href="http://wpfront.com/donate/" target="_blank">' . $this->__('Buy me a Beer or Coffee') . '</a>
181
  ';
182
  echo '</form>';
183
  echo '</div>';
198
  }
199
  }
200
 
201
+ public function pluginURL() {
202
  return $this->pluginURLRoot;
203
  }
204
+
205
+ public function pluginDIR() {
206
  return $this->pluginDIRRoot;
207
  }
208
+
209
  }
210
 
211
  }
classes/class-wpfront-user-role-editor-add-edit.php CHANGED
@@ -220,7 +220,7 @@ if (!class_exists('WPFront_User_Role_Editor_Add_Edit')) {
220
  'caps' => $value,
221
  'display_name' => $this->__($key),
222
  'deprecated' => $deprecated,
223
- 'disabled' => !$this->is_editable || $deprecated,
224
  'hidden' => $deprecated && !$this->main->display_deprecated(),
225
  'key' => str_replace(' ', '-', $key),
226
  'has_help' => !$other
220
  'caps' => $value,
221
  'display_name' => $this->__($key),
222
  'deprecated' => $deprecated,
223
+ 'disabled' => !$this->is_editable, //!$this->is_editable || $deprecated, - to enable levels; for author drop down
224
  'hidden' => $deprecated && !$this->main->display_deprecated(),
225
  'key' => str_replace(' ', '-', $key),
226
  'has_help' => !$other
classes/class-wpfront-user-role-editor.php CHANGED
@@ -38,7 +38,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
38
  class WPFront_User_Role_Editor extends WPFront_Base {
39
 
40
  //Constants
41
- const VERSION = '1.0';
42
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
43
  const OPTION_NAME = 'wpfront-user-role-editor-options';
44
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
38
  class WPFront_User_Role_Editor extends WPFront_Base {
39
 
40
  //Constants
41
+ const VERSION = '1.1';
42
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
43
  const OPTION_NAME = 'wpfront-user-role-editor-options';
44
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.1
7
- Stable tag: 1.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -53,6 +53,9 @@ Visit [WPFront User Role Editor Settings](http://wpfront.com/user-role-editor-pl
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 1.0 =
57
  * Set new user default role
58
  * Stability improvements
@@ -65,6 +68,9 @@ Visit [WPFront User Role Editor Settings](http://wpfront.com/user-role-editor-pl
65
 
66
  == Upgrade Notice ==
67
 
 
 
 
68
  = 1.0 =
69
  * Easily set new user default role
70
 
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.1
7
+ Stable tag: 1.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
53
 
54
  == Changelog ==
55
 
56
+ = 1.1 =
57
+ * Edit deprecated capabilities
58
+
59
  = 1.0 =
60
  * Set new user default role
61
  * Stability improvements
68
 
69
  == Upgrade Notice ==
70
 
71
+ = 1.1 =
72
+ * Can edit deprecated capabilities now
73
+
74
  = 1.0 =
75
  * Easily set new user default role
76
 
templates/add-edit-role.php CHANGED
@@ -179,10 +179,10 @@
179
 
180
  $("div.role-add-new table.sub-head td.sub-head-controls input.chk-helpers").click(function() {
181
  if ($(this).hasClass('select-all')) {
182
- $("div.role-add-new div.postbox.active").find("input").prop("checked", true);
183
  }
184
  else if ($(this).hasClass('select-none')) {
185
- $("div.role-add-new div.postbox.active").find("input").prop("checked", false);
186
  }
187
  });
188
 
179
 
180
  $("div.role-add-new table.sub-head td.sub-head-controls input.chk-helpers").click(function() {
181
  if ($(this).hasClass('select-all')) {
182
+ $("div.role-add-new div.postbox").find("input:not(:disabled)").prop("checked", true);
183
  }
184
  else if ($(this).hasClass('select-none')) {
185
+ $("div.role-add-new div.postbox").find("input:not(:disabled)").prop("checked", false);
186
  }
187
  });
188
 
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: 1.0
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: 1.1
7
  * Author: Syam Mohan
8
  * Author URI: http://wpfront.com
9
  * License: GPL v3