User Role Editor - Version 4.31

Version Description

Download this release

Release Info

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

Code changes from version 4.30 to 4.31

includes/classes/ajax-processor.php CHANGED
@@ -55,6 +55,16 @@ class URE_Ajax_Processor {
55
  }
56
  // end of ajax_check_permissions()
57
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  protected function get_users_without_role() {
60
  global $wp_roles;
@@ -89,6 +99,9 @@ class URE_Ajax_Processor {
89
 
90
  protected function _dispatch() {
91
  switch ($this->action) {
 
 
 
92
  case 'get_users_without_role':
93
  $answer = $this->get_users_without_role();
94
  break;
55
  }
56
  // end of ajax_check_permissions()
57
 
58
+
59
+ protected function get_caps_to_remove() {
60
+
61
+ $html = URE_Role_View::caps_to_remove_html();
62
+ $answer = array('result'=>'success', 'html'=>$html, 'message'=>'success');
63
+
64
+ return $answer;
65
+ }
66
+ // end of get_caps_to_remove()
67
+
68
 
69
  protected function get_users_without_role() {
70
  global $wp_roles;
99
 
100
  protected function _dispatch() {
101
  switch ($this->action) {
102
+ case 'get_caps_to_remove':
103
+ $answer = $this->get_caps_to_remove();
104
+ break;
105
  case 'get_users_without_role':
106
  $answer = $this->get_users_without_role();
107
  break;
includes/classes/base-lib.php CHANGED
@@ -236,6 +236,34 @@ class URE_Base_Lib {
236
  // end of get_current_url()
237
 
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  /**
240
  * Private clone method to prevent cloning of the instance of the
241
  * *Singleton* instance.
236
  // end of get_current_url()
237
 
238
 
239
+ /**
240
+ * Returns comma separated list from the first $items_count element of $full_list array
241
+ *
242
+ * @param array $full_list
243
+ * @param int $items_count
244
+ * @return string
245
+ */
246
+ public function get_short_list_str($full_list, $items_count=3) {
247
+
248
+ $short_list = array(); $i = 0;
249
+ foreach($full_list as $key=>$item) {
250
+ if ($i>=$items_count) {
251
+ break;
252
+ }
253
+ $short_list[] = $item;
254
+ $i++;
255
+ }
256
+
257
+ $str = implode(', ', $short_list);
258
+ if ($items_count<count($full_list)) {
259
+ $str .= '...';
260
+ }
261
+
262
+ return $str;
263
+ }
264
+ // end of get_short_list_str()
265
+
266
+
267
  /**
268
  * Private clone method to prevent cloning of the instance of the
269
  * *Singleton* instance.
includes/classes/capabilities-groups-manager.php CHANGED
@@ -356,6 +356,10 @@ class URE_Capabilities_Groups_Manager {
356
  $groups[] = 'all'; // Every capability belongs to the 'all' group
357
  $groups = array_unique($groups);
358
 
 
 
 
 
359
  return $groups;
360
  }
361
  // end of get_cap_groups()
356
  $groups[] = 'all'; // Every capability belongs to the 'all' group
357
  $groups = array_unique($groups);
358
 
359
+ foreach($groups as $key=>$value) {
360
+ $groups[$key] = 'ure-'. $value;
361
+ }
362
+
363
  return $groups;
364
  }
365
  // end of get_cap_groups()
includes/classes/capability.php CHANGED
@@ -85,6 +85,68 @@ class URE_Capability {
85
  // end of add()
86
 
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  /**
89
  * Delete capability
90
  *
@@ -92,44 +154,38 @@ class URE_Capability {
92
  * @global WP_Roles $wp_roles
93
  * @return string - information message
94
  */
95
- public static function delete() {
96
- global $wpdb, $wp_roles;
97
-
98
-
99
- if (!current_user_can('ure_delete_capabilities')) {
100
- return esc_html__('Insufficient permissions to work with User Role Editor','user-role-editor');
101
- }
102
 
103
- if (!isset($_POST['user_capability_id']) || empty($_POST['user_capability_id'])) {
104
  return 'Wrong Request';
105
  }
106
 
 
 
 
 
107
  $lib = URE_Lib::get_instance();
108
- $mess = '';
109
- $capability_id = $_POST['user_capability_id'];
110
- $caps_to_remove = $lib->get_caps_to_remove();
111
- if (!is_array($caps_to_remove) || count($caps_to_remove) == 0 || !isset($caps_to_remove[$capability_id])) {
112
- return sprintf(esc_html__('Error! You do not have permission to delete this capability: %s!', 'user-role-editor'), $capability_id);
113
  }
114
-
115
- // process users
116
- $usersId = $wpdb->get_col("SELECT $wpdb->users.ID FROM $wpdb->users");
117
- foreach ($usersId as $user_id) {
118
- $user = get_user_to_edit($user_id);
119
- if ($user->has_cap($capability_id)) {
120
- $user->remove_cap($capability_id);
121
- }
122
  }
123
 
124
- // process roles
125
- foreach ($wp_roles->role_objects as $wp_role) {
126
- if ($wp_role->has_cap($capability_id)) {
127
- $wp_role->remove_cap($capability_id);
128
- }
 
 
 
129
  }
130
 
131
- $mess = sprintf(esc_html__('Capability %s was removed successfully', 'user-role-editor'), $capability_id);
132
-
133
  return $mess;
134
  }
135
  // end of delete()
85
  // end of add()
86
 
87
 
88
+ /**
89
+ * Extract capabilities selected from deletion from the $_POST global
90
+ *
91
+ * @return array
92
+ */
93
+ private static function get_caps_for_deletion_from_post($caps_allowed_to_remove) {
94
+
95
+ $caps = array();
96
+ foreach($_POST as $key=>$value) {
97
+ if (substr($key, 0, 3)!=='rm_') {
98
+ continue;
99
+ }
100
+ if (!isset($caps_allowed_to_remove[$value])) {
101
+ continue;
102
+ }
103
+ $caps[] = $value;
104
+ }
105
+
106
+ return $caps;
107
+ }
108
+ // end of get_caps_for_deletion_from_post()
109
+
110
+
111
+
112
+ private static function revoke_caps_from_user($user_id, $caps) {
113
+ $user = get_user_to_edit($user_id);
114
+ foreach($caps as $cap_id) {
115
+ if (isset($user->caps[$cap_id])) {
116
+ $user->remove_cap($cap_id);
117
+ }
118
+ }
119
+ }
120
+ // end of revoke_caps_from_user()
121
+
122
+
123
+ private static function revoke_caps_from_role($wp_role, $caps) {
124
+ foreach($caps as $cap_id) {
125
+ if ($wp_role->has_cap($cap_id)) {
126
+ $wp_role->remove_cap($cap_id);
127
+ }
128
+ }
129
+ }
130
+ // end of revoke_caps_from_role()
131
+
132
+
133
+ private static function revoke_caps($caps) {
134
+ global $wpdb, $wp_roles;
135
+
136
+ // remove caps from users
137
+ $users_ids = $wpdb->get_col("SELECT $wpdb->users.ID FROM $wpdb->users");
138
+ foreach ($users_ids as $user_id) {
139
+ self::revoke_caps_from_user($user_id, $caps);
140
+ }
141
+
142
+ // remove caps from roles
143
+ foreach ($wp_roles->role_objects as $wp_role) {
144
+ self::revoke_caps_from_role($wp_role, $caps);
145
+ }
146
+ }
147
+ // end of revoke_caps()
148
+
149
+
150
  /**
151
  * Delete capability
152
  *
154
  * @global WP_Roles $wp_roles
155
  * @return string - information message
156
  */
157
+ public static function delete() {
 
 
 
 
 
 
158
 
159
+ if (!isset($_POST['action']) || $_POST['action']!='delete-user-capability') {
160
  return 'Wrong Request';
161
  }
162
 
163
+ if (!current_user_can('ure_delete_capabilities')) {
164
+ return esc_html__('Insufficient permissions to work with User Role Editor','user-role-editor');
165
+ }
166
+
167
  $lib = URE_Lib::get_instance();
168
+ $mess = '';
169
+ $caps_allowed_to_remove = $lib->get_caps_to_remove();
170
+ if (!is_array($caps_allowed_to_remove) || count($caps_allowed_to_remove) == 0) {
171
+ return esc_html__('There are no capabilities available for deletion!', 'user-role-editor');
 
172
  }
173
+
174
+ $capabilities = self::get_caps_for_deletion_from_post($caps_allowed_to_remove);
175
+ if (empty($capabilities)) {
176
+ return esc_html__('There are no capabilities available for deletion!', 'user-role-editor');
 
 
 
 
177
  }
178
 
179
+ self::revoke_caps($capabilities);
180
+
181
+ if (count($capabilities)==1) {
182
+ $mess = sprintf(esc_html__('Capability %s was removed successfully', 'user-role-editor'), $capabilities[0]);
183
+ } else {
184
+ $short_list_str = $lib->get_short_list_str($capabilities);
185
+ $mess = count($capabilities) .' '. esc_html__('capabilities were removed successfully', 'user-role-editor') .': '.
186
+ $short_list_str;
187
  }
188
 
 
 
189
  return $mess;
190
  }
191
  // end of delete()
includes/classes/role-view.php CHANGED
@@ -14,13 +14,13 @@ class URE_Role_View extends URE_View {
14
  private $role_to_copy_html = '';
15
  private $role_select_html = '';
16
  private $role_delete_html = '';
17
- private $capability_remove_html = '';
18
 
19
 
20
  public function __construct() {
21
 
22
  parent::__construct();
23
  $this->lib = URE_Lib::get_instance();
 
24
 
25
  }
26
  // end of __construct()
@@ -119,22 +119,62 @@ class URE_Role_View extends URE_View {
119
  *
120
  * @return string
121
  **/
122
- protected function caps_to_remove_prepare_html() {
 
 
 
 
 
 
 
 
123
 
124
- $caps_to_remove = $this->lib->get_caps_to_remove();
125
- if (!empty($caps_to_remove) && is_array($caps_to_remove) && count($caps_to_remove) > 0) {
126
- $html = '<select id="remove_user_capability" name="remove_user_capability" width="200" style="width: 200px">';
127
- foreach (array_keys($caps_to_remove) as $key) {
128
- $html .= '<option value="' . $key . '">' . $key . '</option>';
129
- }
130
- $html .= '</select>';
131
- } else {
132
- $html = '';
133
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
- $this->capability_remove_html = $html;
136
  }
137
- // end of caps_to_remove_prepare_html()
138
 
139
 
140
  public function role_edit_prepare_html($select_width=200) {
@@ -145,7 +185,7 @@ class URE_Role_View extends URE_View {
145
  $this->role_default_prepare_html($select_width);
146
  }
147
  $this->role_delete_prepare_html();
148
- $this->caps_to_remove_prepare_html();
149
  }
150
  // end of role_edit_prepare_html()
151
 
@@ -204,8 +244,7 @@ if ($multisite && !is_network_admin()) {
204
 
205
  <div id="ure_delete_capability_dialog" class="ure-modal-dialog">
206
  <div style="padding:10px;">
207
- <div class="ure-label"><?php esc_html_e('Delete:', 'user-role-editor');?></div>
208
- <div class="ure-input"><?php echo $this->capability_remove_html; ?></div>
209
  </div>
210
  </div>
211
 
@@ -278,7 +317,8 @@ if ($multisite && !is_network_admin()) {
278
  } // restrict single site admin
279
 
280
  if (!$multisite || $super_admin || !$caps_access_restrict_for_simple_admin) { // restrict single site admin
281
- if (!empty($this->capability_remove_html) && current_user_can('ure_delete_capabilities')) {
 
282
  ?>
283
  <button id="ure_delete_capability" class="ure_toolbar_button">Delete Capability</button>
284
  <?php
@@ -355,7 +395,7 @@ if ($multisite && !is_network_admin()) {
355
  ?>
356
  <div style="float: right; margin-left:10px; margin-right: 20px; <?php echo $fontColor; ?>" id="ure_apply_to_all_div">
357
  <input type="checkbox" name="ure_apply_to_all" id="ure_apply_to_all" value="1"
358
- <?php echo $checked; ?> title="<?php echo $hint; ?>" onclick="ure_applyToAllOnClick(this)"/>
359
  <label for="ure_apply_to_all" title="<?php echo $hint; ?>"><?php esc_html_e('Apply to All Sites', 'user-role-editor'); ?></label>
360
  </div>
361
  <?php
14
  private $role_to_copy_html = '';
15
  private $role_select_html = '';
16
  private $role_delete_html = '';
 
17
 
18
 
19
  public function __construct() {
20
 
21
  parent::__construct();
22
  $this->lib = URE_Lib::get_instance();
23
+ $this->caps_to_remove = $this->lib->get_caps_to_remove();
24
 
25
  }
26
  // end of __construct()
119
  *
120
  * @return string
121
  **/
122
+ public static function caps_to_remove_html() {
123
+ global $wp_roles;
124
+
125
+ $lib = URE_Lib::get_instance();
126
+ $caps_to_remove = $lib->get_caps_to_remove();
127
+
128
+ if (empty($caps_to_remove) || !is_array($caps_to_remove) && count($caps_to_remove)==0) {
129
+ return '';
130
+ }
131
 
132
+ $caps = array_keys($caps_to_remove);
133
+ asort($caps);
134
+ $network_admin = filter_input(INPUT_POST, 'network_admin', FILTER_SANITIZE_NUMBER_INT);
135
+ $current_role = filter_input(INPUT_POST, 'current_role', FILTER_SANITIZE_STRING);
136
+ if (!isset($wp_roles->roles[$current_role])) {
137
+ $current_role = '';
 
 
 
138
  }
139
+ ob_start();
140
+ ?>
141
+ <form name="ure_remove_caps_form" id="ure_remove_caps_form" method="POST"
142
+ action="<?php echo URE_WP_ADMIN_URL . ($network_admin ? 'network/':'') . URE_PARENT .'?page=users-'.URE_PLUGIN_FILE;?>" >
143
+ <table id="ure_remove_caps_table">
144
+ <tr>
145
+ <th>
146
+ <input type="checkbox" id="ure_remove_caps_select_all">
147
+ </th>
148
+ <th></th>
149
+ </tr>
150
+ <?php
151
+ foreach($caps as $cap_id) {
152
+ $cap_id_esc = 'rm_'.URE_Capability::escape($cap_id);
153
+ ?>
154
+ <tr>
155
+ <td>
156
+ <input type="checkbox" name="<?php echo $cap_id_esc;?>" id="<?php echo $cap_id_esc;?>" class="ure-cb-column"
157
+ value="<?php echo $cap_id;?>"/>
158
+ </td>
159
+ <td>
160
+ <label for="<?php echo $cap_id_esc;?>"><?php echo $cap_id; ?></label>
161
+ </td>
162
+ </tr>
163
+ <?php
164
+ } // foreach($caps...)
165
+ ?>
166
+ </table>
167
+ <input type="hidden" name="action" id="action" value="delete-user-capability" />
168
+ <input type="hidden" name="user_role" id="ure_role" value="<?php echo $current_role;?>" />
169
+ <?php wp_nonce_field('user-role-editor', 'ure_nonce'); ?>
170
+ </form>
171
+ <?php
172
+ $html = ob_get_contents();
173
+ ob_end_clean();
174
 
175
+ return $html;
176
  }
177
+ // end of caps_to_remove_html()
178
 
179
 
180
  public function role_edit_prepare_html($select_width=200) {
185
  $this->role_default_prepare_html($select_width);
186
  }
187
  $this->role_delete_prepare_html();
188
+
189
  }
190
  // end of role_edit_prepare_html()
191
 
244
 
245
  <div id="ure_delete_capability_dialog" class="ure-modal-dialog">
246
  <div style="padding:10px;">
247
+ <div class="ure-input"></div>
 
248
  </div>
249
  </div>
250
 
317
  } // restrict single site admin
318
 
319
  if (!$multisite || $super_admin || !$caps_access_restrict_for_simple_admin) { // restrict single site admin
320
+ if (!empty($this->caps_to_remove) && is_array($this->caps_to_remove) && count($this->caps_to_remove)>0 &&
321
+ current_user_can('ure_delete_capabilities')) {
322
  ?>
323
  <button id="ure_delete_capability" class="ure_toolbar_button">Delete Capability</button>
324
  <?php
395
  ?>
396
  <div style="float: right; margin-left:10px; margin-right: 20px; <?php echo $fontColor; ?>" id="ure_apply_to_all_div">
397
  <input type="checkbox" name="ure_apply_to_all" id="ure_apply_to_all" value="1"
398
+ <?php echo $checked; ?> title="<?php echo $hint; ?>" onclick="ure_apply_to_all_on_click(this)"/>
399
  <label for="ure_apply_to_all" title="<?php echo $hint; ?>"><?php esc_html_e('Apply to All Sites', 'user-role-editor'); ?></label>
400
  </div>
401
  <?php
includes/classes/ure-lib.php CHANGED
@@ -2185,5 +2185,26 @@ class Ure_Lib extends URE_Base_Lib {
2185
  return $page_url;
2186
  }
2187
  // end of get_ure_page_url()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2188
  }
2189
  // end of URE_Lib class
2185
  return $page_url;
2186
  }
2187
  // end of get_ure_page_url()
2188
+
2189
+
2190
+ /**
2191
+ * Compare if current URL path is equal to the required one
2192
+ * if $path is empty, then just check if URL leads to wp-admin
2193
+ * @param string $path
2194
+ * @return boolean
2195
+ */
2196
+ public function is_right_admin_path($path='') {
2197
+ $result = true;
2198
+ $admin_url = admin_url($path);
2199
+ $parsed = parse_url($admin_url);
2200
+ $full_path = $parsed['path'];
2201
+ if ( stripos($_SERVER['REQUEST_URI'], $full_path)===false ) {
2202
+ $result = false;
2203
+ }
2204
+
2205
+ return $result;
2206
+ }
2207
+ // end of is_right_admin_path()
2208
+
2209
  }
2210
  // end of URE_Lib class
includes/classes/user-role-editor.php CHANGED
@@ -201,8 +201,8 @@ class User_Role_Editor {
201
 
202
 
203
  public function move_users_from_no_role_button() {
204
-
205
- if ( stripos($_SERVER['REQUEST_URI'], 'wp-admin/users.php')===false ) {
206
  return;
207
  }
208
 
@@ -223,12 +223,13 @@ class User_Role_Editor {
223
 
224
 
225
  public function add_css_to_users_page() {
226
- if ( stripos($_SERVER['REQUEST_URI'], 'wp-admin/users.php')===false ) {
227
- return;
228
- }
229
  if (isset($_GET['page'])) {
230
  return;
231
  }
 
 
 
232
 
233
  wp_enqueue_style('wp-jquery-ui-dialog');
234
  wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
@@ -239,12 +240,12 @@ class User_Role_Editor {
239
 
240
  public function add_js_to_users_page() {
241
 
242
- if ( stripos($_SERVER['REQUEST_URI'], 'wp-admin/users.php')===false ) {
243
- return;
244
- }
245
  if (isset($_GET['page'])) {
246
  return;
247
  }
 
 
 
248
 
249
  wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core','jquery-ui-button', 'jquery') );
250
  wp_register_script( 'ure-users-js', plugins_url( '/js/ure-users.js', URE_PLUGIN_FULL_PATH ) );
@@ -796,6 +797,7 @@ class User_Role_Editor {
796
  wp_enqueue_script('ure-js');
797
  wp_localize_script('ure-js', 'ure_data', array(
798
  'wp_nonce' => wp_create_nonce('user-role-editor'),
 
799
  'page_url' => $page_url,
800
  'is_multisite' => is_multisite() ? 1 : 0,
801
  'confirm_role_update' => $confirm_role_update ? 1 : 0,
201
 
202
 
203
  public function move_users_from_no_role_button() {
204
+
205
+ if (!$this->lib->is_right_admin_path('users.php')) {
206
  return;
207
  }
208
 
223
 
224
 
225
  public function add_css_to_users_page() {
226
+
 
 
227
  if (isset($_GET['page'])) {
228
  return;
229
  }
230
+ if (!$this->lib->is_right_admin_path('users.php')) {
231
+ return;
232
+ }
233
 
234
  wp_enqueue_style('wp-jquery-ui-dialog');
235
  wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
240
 
241
  public function add_js_to_users_page() {
242
 
 
 
 
243
  if (isset($_GET['page'])) {
244
  return;
245
  }
246
+ if (!$this->lib->is_right_admin_path('users.php')) {
247
+ return;
248
+ }
249
 
250
  wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core','jquery-ui-button', 'jquery') );
251
  wp_register_script( 'ure-users-js', plugins_url( '/js/ure-users.js', URE_PLUGIN_FULL_PATH ) );
797
  wp_enqueue_script('ure-js');
798
  wp_localize_script('ure-js', 'ure_data', array(
799
  'wp_nonce' => wp_create_nonce('user-role-editor'),
800
+ 'network_admin' => is_network_admin() ? 1 : 0,
801
  'page_url' => $page_url,
802
  'is_multisite' => is_multisite() ? 1 : 0,
803
  'confirm_role_update' => $confirm_role_update ? 1 : 0,
includes/classes/view.php CHANGED
@@ -183,12 +183,12 @@ class URE_View {
183
  }
184
  }
185
  $class = 'class="' . implode(' ', $classes) .'"';
 
186
  $cap_id_esc = URE_Capability::escape($cap_id);
187
  $cap_html = '<div id="ure_cap_div_'. $cap_id_esc .'" '. $class .'><input type="checkbox" name="' . $cap_id_esc . '" id="' .
188
  $cap_id_esc . '" value="' . $cap_id .'" '. $checked . ' ' . $disabled . ' ' . $onclick_for_admin .
189
  'class="ure-cap-cb">';
190
 
191
-
192
  if ($caps_readable) {
193
  $cap_ind = 'human';
194
  $cap_ind_alt = 'inner';
183
  }
184
  }
185
  $class = 'class="' . implode(' ', $classes) .'"';
186
+
187
  $cap_id_esc = URE_Capability::escape($cap_id);
188
  $cap_html = '<div id="ure_cap_div_'. $cap_id_esc .'" '. $class .'><input type="checkbox" name="' . $cap_id_esc . '" id="' .
189
  $cap_id_esc . '" value="' . $cap_id .'" '. $checked . ' ' . $disabled . ' ' . $onclick_for_admin .
190
  'class="ure-cap-cb">';
191
 
 
192
  if ($caps_readable) {
193
  $cap_ind = 'human';
194
  $cap_ind_alt = 'inner';
includes/misc-support-stuff.php CHANGED
@@ -51,4 +51,4 @@ if (!function_exists('ure_hide_admin_bar')) {
51
 
52
  }
53
  // end of hide_admin_bar()
54
- }
51
 
52
  }
53
  // end of hide_admin_bar()
54
+ }
js/ure-js.js CHANGED
@@ -1,5 +1,3 @@
1
- var ure_obj = {selected_group: 'all', caps_counter: null};
2
-
3
  // get/post via jQuery
4
  (function ($) {
5
  $.extend({
@@ -22,6 +20,97 @@ var ure_obj = {selected_group: 'all', caps_counter: null};
22
  });
23
  })(jQuery);
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  function ure_ui_button_text(caption) {
27
  var wrapper = '<span class="ui-button-text">' + caption + '</span>';
@@ -169,7 +258,7 @@ jQuery(function ($) {
169
  ure_show_rename_role_dialog();
170
  });
171
 
172
-
173
  function ure_show_delete_role_dialog() {
174
  $('#ure_delete_role_dialog').dialog({
175
  dialogClass: 'wp-dialog',
@@ -207,7 +296,7 @@ jQuery(function ($) {
207
  label: ure_data.delete_role
208
  }).click(function (event) {
209
  event.preventDefault();
210
- ure_show_delete_role_dialog();
211
  });
212
 
213
 
@@ -256,50 +345,16 @@ jQuery(function ($) {
256
  event.preventDefault();
257
  ure_show_add_capability_dialog();
258
  });
259
-
260
-
261
- function ure_show_delete_capability_dialog() {
262
- $('#ure_delete_capability_dialog').dialog({
263
- dialogClass: 'wp-dialog',
264
- modal: true,
265
- autoOpen: true,
266
- closeOnEscape: true,
267
- width: 320,
268
- height: 190,
269
- resizable: false,
270
- title: ure_data.delete_capability,
271
- buttons: {
272
- 'Delete Capability': function () {
273
- if (!confirm(ure_data.delete_capability + ' - ' + ure_data.delete_capability_warning)) {
274
- return;
275
- }
276
- $(this).dialog('close');
277
- var user_capability_id = $('#remove_user_capability').val();
278
- $.ure_postGo(ure_data.page_url,
279
- {action: 'delete-user-capability', user_capability_id: user_capability_id, ure_nonce: ure_data.wp_nonce});
280
- },
281
- Cancel: function () {
282
- $(this).dialog('close');
283
- }
284
- }
285
- });
286
- // translate buttons caption
287
- $('.ui-dialog-buttonpane button:contains("Delete Capability")').attr('id', 'dialog-delete-capability-button');
288
- $('#dialog-delete-capability-button').html(ure_ui_button_text(ure_data.delete_capability));
289
- $('.ui-dialog-buttonpane button:contains("Cancel")').attr('id', 'delete-capability-dialog-cancel-button');
290
- $('#delete-capability-dialog-cancel-button').html(ure_ui_button_text(ure_data.cancel));
291
 
292
- }
293
-
294
 
295
  if ($('#ure_delete_capability').length > 0) {
296
  $('#ure_delete_capability').button({
297
  label: ure_data.delete_capability
298
  }).click(function (event) {
299
  event.preventDefault();
300
- ure_show_delete_capability_dialog()
301
  });
302
- }
303
 
304
 
305
  function ure_show_default_role_dialog() {
@@ -392,7 +447,7 @@ jQuery(function ($) {
392
 
393
 
394
  // change color of apply to all check box - for multi-site setup only
395
- function ure_applyToAllOnClick(cb) {
396
  el = document.getElementById('ure_apply_to_all_div');
397
  if (cb.checked) {
398
  el.style.color = '#FF0000';
@@ -400,7 +455,7 @@ function ure_applyToAllOnClick(cb) {
400
  el.style.color = '#000000';
401
  }
402
  }
403
- // end of ure_applyToAllOnClick()
404
 
405
 
406
  // turn on checkbox back if clicked to turn off
@@ -417,7 +472,7 @@ function ure_apply_selection(cb_id) {
417
  var parent_div = jQuery('#ure_cap_div_'+ cb_id);
418
  var disabled = jQuery('#'+ cb_id).attr('disabled');
419
  var result = false;
420
- if (parent_div.hasClass(ure_obj.selected_group) && // make selection inside currently selected group of capabilities only
421
  !parent_div.hasClass('hidden') && disabled!=='disabled') { // select not hidden and not disabled checkboxes (capabilities) only
422
  // if quick filter is not empty, then apply selection to the tagged element only
423
  if (qfilter==='' || parent_div.hasClass('ure_tag')) {
@@ -430,31 +485,31 @@ function ure_apply_selection(cb_id) {
430
 
431
 
432
  function ure_auto_select_caps(event) {
433
- jQuery(function($) {
434
- if (event.shiftKey) {
435
- $('.ure-cap-cb').each(function () { // reverse selection
436
- if (ure_apply_selection(this.id)) {
437
- $(this).prop('checked', !$(this).prop('checked'));
438
- }
439
- });
440
- } else {
441
- $('.ure-cap-cb').each(function () { // switch On/Off all checkboxes
442
- if (ure_apply_selection(this.id)) {
443
- $(this).prop('checked', $('#ure_select_all_caps').prop('checked'));
444
- }
445
- });
446
- }
447
- });
448
  }
449
 
450
 
451
  function ure_turn_caps_readable(user_id) {
452
- var ure_object = 'user';
453
  if (user_id === 0) {
454
- ure_object = 'role';
455
  }
456
 
457
- jQuery.ure_postGo(ure_data.page_url, {action: 'caps-readable', object: ure_object, user_id: user_id, ure_nonce: ure_data.wp_nonce});
458
 
459
  }
460
  // end of ure_turn_caps_readable()
@@ -462,13 +517,11 @@ function ure_turn_caps_readable(user_id) {
462
 
463
  function ure_turn_deprecated_caps(user_id) {
464
 
465
- var ure_object = '';
466
  if (user_id === 0) {
467
- ure_object = 'role';
468
- } else {
469
- ure_object = 'user';
470
  }
471
- jQuery.ure_postGo(ure_data.page_url, {action: 'show-deprecated-caps', object: ure_object, user_id: user_id, ure_nonce: ure_data.wp_nonce});
472
 
473
  }
474
  // ure_turn_deprecated_caps()
@@ -509,9 +562,11 @@ function ure_hide_pro_banner() {
509
 
510
  function ure_caps_refresh_all() {
511
  jQuery('.ure-cap-div').each(function () {
512
- if (jQuery(this).hasClass('hidden') && !jQuery(this).hasClass('deprecated')) {
513
- jQuery(this).removeClass('hidden');
514
- }
 
 
515
  });
516
  }
517
 
@@ -520,18 +575,24 @@ function ure_caps_refresh_for_group(group_id) {
520
  var show_deprecated = jQuery('#ure_show_deprecated_caps').attr('checked');
521
  jQuery('.ure-cap-div').each(function () {
522
  var el = jQuery(this);
523
- if (el.hasClass(group_id)) {
524
  if (el.hasClass('hidden')) {
525
  if (el.hasClass('blocked')) {
526
  return;
527
  }
528
- if (el.hasClass('deprecated')) {
529
  if (group_id==='deprecated' || show_deprecated) {
530
  el.removeClass('hidden');
531
  }
532
  } else {
533
  el.removeClass('hidden');
534
  }
 
 
 
 
 
 
535
  }
536
  } else {
537
  if (!el.hasClass('hidden')) {
@@ -545,7 +606,7 @@ function ure_caps_refresh_for_group(group_id) {
545
  function ure_caps_refresh(group) {
546
 
547
  var group_id = group.substr(15);
548
- ure_obj.selected_group = group_id;
549
  if (group_id === 'all') {
550
  ure_caps_refresh_all();
551
  } else {
@@ -557,14 +618,14 @@ function ure_caps_refresh(group) {
557
 
558
 
559
  function ure_validate_columns(columns) {
560
- if (columns==1 || ure_obj.selected_group=='all') {
561
  return columns;
562
  }
563
 
564
  // Do not split list on columns in case it contains less then < 25 capabilities
565
- for (i=0; i<ure_obj.caps_counter.length; i++) {
566
- if (ure_obj.caps_counter[i].id==ure_obj.selected_group) {
567
- if (ure_obj.caps_counter[i].total<=25) {
568
  columns = 1;
569
  }
570
  break;
@@ -587,11 +648,11 @@ function ure_change_caps_columns_quant() {
587
 
588
 
589
  function ure_init_caps_counter() {
590
- ure_obj.caps_counter = new Array();
591
  jQuery('#ure_caps_groups_list li').each(function() {
592
  var group_id = jQuery(this).attr('id').substr(15);
593
  group_counter = {'id': group_id, 'total': 0, 'granted':0};
594
- ure_obj.caps_counter.push(group_counter);
595
  });
596
 
597
  }
@@ -603,19 +664,19 @@ function ure_count_caps_in_groups() {
603
  jQuery('.ure-cap-div').each(function () {
604
  var cap_div = jQuery(this);
605
  var capability = cap_div.attr('id').substr(12);
606
- for (i=0; i<ure_obj.caps_counter.length; i++) {
607
- if (cap_div.hasClass(ure_obj.caps_counter[i].id)) {
608
- ure_obj.caps_counter[i].total++;
609
  if (jQuery('#'+ capability).is(':checked')) {
610
- ure_obj.caps_counter[i].granted++;
611
  }
612
  }
613
  }
614
  });
615
 
616
- for (i=0; i<ure_obj.caps_counter.length; i++) {
617
- var el = jQuery('#ure_caps_group_'+ ure_obj.caps_counter[i].id);
618
- var value = el.text() +' ('+ ure_obj.caps_counter[i].total +'/'+ ure_obj.caps_counter[i].granted +')';
619
 
620
  el.text(value);
621
  }
@@ -639,7 +700,7 @@ function ure_show_granted_caps_only() {
639
  var hide_flag = jQuery('#granted_only').attr('checked');
640
  jQuery('.ure-cap-div').each(function () {
641
  var cap_div = jQuery(this);
642
- if (!cap_div.hasClass(ure_obj.selected_group)) { // apply to the currently selected group only
643
  return;
644
  }
645
  var cap_id = cap_div.attr('id').substr(12);
 
 
1
  // get/post via jQuery
2
  (function ($) {
3
  $.extend({
20
  });
21
  })(jQuery);
22
 
23
+ var ure_ajax_get_caps_to_remove = null;
24
+
25
+ jQuery(document).ready(function() {
26
+
27
+ // Get from the server a list of capabilities we can delete and show dialog to select what to delete
28
+ ure_ajax_get_caps_to_remove = {
29
+ url: ajaxurl,
30
+ type: 'POST',
31
+ dataType: 'html',
32
+ data: {
33
+ action: 'ure_ajax',
34
+ sub_action: 'get_caps_to_remove',
35
+ current_role: jQuery('#user_role').val(),
36
+ network_admin: ure_data.network_admin,
37
+ wp_nonce: ure_data.wp_nonce
38
+ },
39
+ success: function (response) {
40
+ var data = jQuery.parseJSON(response);
41
+ if (typeof data.result !== 'undefined') {
42
+ if (data.result === 'success') {
43
+ jQuery('#ure_delete_capability_dialog .ure-input').html(data.html);
44
+ ure_main.show_delete_capability_dialog();
45
+ } else if (data.result === 'failure') {
46
+ alert(data.message);
47
+ } else {
48
+ alert('Wrong response: ' + response)
49
+ }
50
+ } else {
51
+ alert('Wrong response: ' + response)
52
+ }
53
+ },
54
+ error: function (XMLHttpRequest, textStatus, exception) {
55
+ alert("Ajax failure\n" + XMLHttpRequest.statusText);
56
+ },
57
+ async: true
58
+ };
59
+
60
+ });
61
+
62
+ // Main User Role Editor object
63
+ var ure_main = {
64
+ selected_group: 'all',
65
+ caps_counter: null,
66
+ class_prefix: 'ure-',
67
+
68
+ show_delete_capability_dialog: function () {
69
+ jQuery('#ure_delete_capability_dialog').dialog({
70
+ dialogClass: 'wp-dialog',
71
+ modal: true,
72
+ autoOpen: true,
73
+ closeOnEscape: true,
74
+ width: 350,
75
+ height: 400,
76
+ resizable: false,
77
+ title: ure_data.delete_capability,
78
+ buttons: {
79
+ 'Delete Capability': function () {
80
+ if (!confirm(ure_data.delete_capability + ' - ' + ure_data.delete_capability_warning)) {
81
+ return;
82
+ }
83
+ jQuery('#ure_remove_caps_form').submit();
84
+ jQuery(this).dialog('close');
85
+ },
86
+ Cancel: function () {
87
+ jQuery(this).dialog('close');
88
+ }
89
+ }
90
+ });
91
+ // translate buttons caption
92
+ jQuery('.ui-dialog-buttonpane button:contains("Delete Capability")').attr('id', 'dialog-delete-capability-button');
93
+ jQuery('#dialog-delete-capability-button').html(ure_ui_button_text(ure_data.delete_capability));
94
+ jQuery('.ui-dialog-buttonpane button:contains("Cancel")').attr('id', 'delete-capability-dialog-cancel-button');
95
+ jQuery('#delete-capability-dialog-cancel-button').html(ure_ui_button_text(ure_data.cancel));
96
+ jQuery('#ure_remove_caps_select_all').click(this.remove_caps_auto_select);
97
+ },
98
+
99
+ remove_caps_auto_select: function (event) {
100
+ if (event.shiftKey) {
101
+ jQuery('.ure-cb-column').each(function () { // reverse selection
102
+ jQuery(this).prop('checked', !jQuery(this).prop('checked'));
103
+ });
104
+ } else { // switch On/Off all checkboxes
105
+ jQuery('.ure-cb-column').prop('checked', jQuery('#ure_remove_caps_select_all').prop('checked'));
106
+
107
+ }
108
+ }
109
+
110
+ }; // end of ure_main declaration
111
+ //-------------------------------
112
+
113
+
114
 
115
  function ure_ui_button_text(caption) {
116
  var wrapper = '<span class="ui-button-text">' + caption + '</span>';
258
  ure_show_rename_role_dialog();
259
  });
260
 
261
+
262
  function ure_show_delete_role_dialog() {
263
  $('#ure_delete_role_dialog').dialog({
264
  dialogClass: 'wp-dialog',
296
  label: ure_data.delete_role
297
  }).click(function (event) {
298
  event.preventDefault();
299
+ ure_show_delete_role_dialog();
300
  });
301
 
302
 
345
  event.preventDefault();
346
  ure_show_add_capability_dialog();
347
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
 
 
 
349
 
350
  if ($('#ure_delete_capability').length > 0) {
351
  $('#ure_delete_capability').button({
352
  label: ure_data.delete_capability
353
  }).click(function (event) {
354
  event.preventDefault();
355
+ $.ajax(ure_ajax_get_caps_to_remove);
356
  });
357
+ }
358
 
359
 
360
  function ure_show_default_role_dialog() {
447
 
448
 
449
  // change color of apply to all check box - for multi-site setup only
450
+ function ure_apply_to_all_on_click(cb) {
451
  el = document.getElementById('ure_apply_to_all_div');
452
  if (cb.checked) {
453
  el.style.color = '#FF0000';
455
  el.style.color = '#000000';
456
  }
457
  }
458
+ // end of ure_apply_to_all_on_click()
459
 
460
 
461
  // turn on checkbox back if clicked to turn off
472
  var parent_div = jQuery('#ure_cap_div_'+ cb_id);
473
  var disabled = jQuery('#'+ cb_id).attr('disabled');
474
  var result = false;
475
+ if (parent_div.hasClass(ure_main.class_prefix + ure_main.selected_group) && // make selection inside currently selected group of capabilities only
476
  !parent_div.hasClass('hidden') && disabled!=='disabled') { // select not hidden and not disabled checkboxes (capabilities) only
477
  // if quick filter is not empty, then apply selection to the tagged element only
478
  if (qfilter==='' || parent_div.hasClass('ure_tag')) {
485
 
486
 
487
  function ure_auto_select_caps(event) {
488
+
489
+ if (event.shiftKey) {
490
+ jQuery('.ure-cap-cb').each(function () { // reverse selection
491
+ if (ure_apply_selection(this.id)) {
492
+ jQuery(this).prop('checked', !jQuery(this).prop('checked'));
493
+ }
494
+ });
495
+ } else {
496
+ jQuery('.ure-cap-cb').each(function () { // switch On/Off all checkboxes
497
+ if (ure_apply_selection(this.id)) {
498
+ jQuery(this).prop('checked', jQuery('#ure_select_all_caps').prop('checked'));
499
+ }
500
+ });
501
+ }
502
+
503
  }
504
 
505
 
506
  function ure_turn_caps_readable(user_id) {
507
+ var ure_obj = 'user';
508
  if (user_id === 0) {
509
+ ure_obj = 'role';
510
  }
511
 
512
+ jQuery.ure_postGo(ure_data.page_url, {action: 'caps-readable', object: ure_obj, user_id: user_id, ure_nonce: ure_data.wp_nonce});
513
 
514
  }
515
  // end of ure_turn_caps_readable()
517
 
518
  function ure_turn_deprecated_caps(user_id) {
519
 
520
+ var ure_obj = 'user';
521
  if (user_id === 0) {
522
+ ure_obj = 'role';
 
 
523
  }
524
+ jQuery.ure_postGo(ure_data.page_url, {action: 'show-deprecated-caps', object: ure_obj, user_id: user_id, ure_nonce: ure_data.wp_nonce});
525
 
526
  }
527
  // ure_turn_deprecated_caps()
562
 
563
  function ure_caps_refresh_all() {
564
  jQuery('.ure-cap-div').each(function () {
565
+ if (jQuery(this).hasClass('hidden')) {
566
+ if (!jQuery(this).hasClass(ure_main.class_prefix + 'deprecated')) {
567
+ jQuery(this).removeClass('hidden');
568
+ }
569
+ }
570
  });
571
  }
572
 
575
  var show_deprecated = jQuery('#ure_show_deprecated_caps').attr('checked');
576
  jQuery('.ure-cap-div').each(function () {
577
  var el = jQuery(this);
578
+ if (el.hasClass(ure_main.class_prefix + group_id)) {
579
  if (el.hasClass('hidden')) {
580
  if (el.hasClass('blocked')) {
581
  return;
582
  }
583
+ if (el.hasClass(ure_main.class_prefix + 'deprecated')) {
584
  if (group_id==='deprecated' || show_deprecated) {
585
  el.removeClass('hidden');
586
  }
587
  } else {
588
  el.removeClass('hidden');
589
  }
590
+ } else {
591
+ if (el.hasClass(ure_main.class_prefix + 'deprecated')) {
592
+ if (!show_deprecated) {
593
+ el.addClass('hidden');
594
+ }
595
+ }
596
  }
597
  } else {
598
  if (!el.hasClass('hidden')) {
606
  function ure_caps_refresh(group) {
607
 
608
  var group_id = group.substr(15);
609
+ ure_main.selected_group = group_id;
610
  if (group_id === 'all') {
611
  ure_caps_refresh_all();
612
  } else {
618
 
619
 
620
  function ure_validate_columns(columns) {
621
+ if (columns==1 || ure_main.selected_group=='all') {
622
  return columns;
623
  }
624
 
625
  // Do not split list on columns in case it contains less then < 25 capabilities
626
+ for (i=0; i<ure_main.caps_counter.length; i++) {
627
+ if (ure_main.caps_counter[i].id==ure_main.selected_group) {
628
+ if (ure_main.caps_counter[i].total<=25) {
629
  columns = 1;
630
  }
631
  break;
648
 
649
 
650
  function ure_init_caps_counter() {
651
+ ure_main.caps_counter = new Array();
652
  jQuery('#ure_caps_groups_list li').each(function() {
653
  var group_id = jQuery(this).attr('id').substr(15);
654
  group_counter = {'id': group_id, 'total': 0, 'granted':0};
655
+ ure_main.caps_counter.push(group_counter);
656
  });
657
 
658
  }
664
  jQuery('.ure-cap-div').each(function () {
665
  var cap_div = jQuery(this);
666
  var capability = cap_div.attr('id').substr(12);
667
+ for (i=0; i<ure_main.caps_counter.length; i++) {
668
+ if (cap_div.hasClass(ure_main.class_prefix + ure_main.caps_counter[i].id)) {
669
+ ure_main.caps_counter[i].total++;
670
  if (jQuery('#'+ capability).is(':checked')) {
671
+ ure_main.caps_counter[i].granted++;
672
  }
673
  }
674
  }
675
  });
676
 
677
+ for (i=0; i<ure_main.caps_counter.length; i++) {
678
+ var el = jQuery('#ure_caps_group_'+ ure_main.caps_counter[i].id);
679
+ var value = el.text() +' ('+ ure_main.caps_counter[i].total +'/'+ ure_main.caps_counter[i].granted +')';
680
 
681
  el.text(value);
682
  }
700
  var hide_flag = jQuery('#granted_only').attr('checked');
701
  jQuery('.ure-cap-div').each(function () {
702
  var cap_div = jQuery(this);
703
+ if (!cap_div.hasClass(ure_main.class_prefix + ure_main.selected_group)) { // apply to the currently selected group only
704
  return;
705
  }
706
  var cap_id = cap_div.attr('id').substr(12);
js/ure-users.js CHANGED
@@ -77,7 +77,7 @@ function ure_move_users_from_no_role() {
77
  }
78
  },
79
  error: function(XMLHttpRequest, textStatus, exception) {
80
- alert("Ajax failure\n" + errortext);
81
  },
82
  async: true
83
  });
77
  }
78
  },
79
  error: function(XMLHttpRequest, textStatus, exception) {
80
+ alert("Ajax failure\n" + XMLHttpRequest.statusText);
81
  },
82
  async: true
83
  });
lang/user-role-editor.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2016-08-17 11:21+0700\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
9
  "Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
@@ -21,54 +21,101 @@ msgstr ""
21
  msgid "Custom Post Types"
22
  msgstr ""
23
 
24
- #: ../includes/classes/capabilities-groups-manager.php:73
25
- msgid "All"
 
 
 
26
  msgstr ""
27
 
28
- #: ../includes/classes/capabilities-groups-manager.php:74
 
 
 
 
 
29
  msgid "Core"
30
  msgstr ""
31
 
32
- #: ../includes/classes/capabilities-groups-manager.php:75
33
- #: ../includes/classes/user-role-editor.php:482
 
 
 
 
34
  #: ../includes/settings-template.php:21
35
  msgid "General"
36
  msgstr ""
37
 
38
- #: ../includes/classes/capabilities-groups-manager.php:76
39
  msgid "Themes"
40
  msgstr ""
41
 
42
- #: ../includes/classes/capabilities-groups-manager.php:77
43
  msgid "Posts"
44
  msgstr ""
45
 
46
- #: ../includes/classes/capabilities-groups-manager.php:78
47
  msgid "Pages"
48
  msgstr ""
49
 
50
- #: ../includes/classes/capabilities-groups-manager.php:79
51
  msgid "Plugins"
52
  msgstr ""
53
 
54
- #: ../includes/classes/capabilities-groups-manager.php:80
55
  msgid "Users"
56
  msgstr ""
57
 
58
- #: ../includes/classes/capabilities-groups-manager.php:84
59
- #: ../includes/classes/user-role-editor.php:500
60
  #: ../includes/settings-template.php:34
61
  msgid "Multisite"
62
  msgstr ""
63
 
64
- #: ../includes/classes/capabilities-groups-manager.php:86
65
  msgid "Deprecated"
66
  msgstr ""
67
 
68
- #: ../includes/classes/capabilities-groups-manager.php:91
69
  msgid "Custom capabilities"
70
  msgstr ""
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  #: ../includes/classes/role-additional-options.php:69
73
  msgid "Hide admin bar"
74
  msgstr ""
@@ -85,48 +132,44 @@ msgstr ""
85
  msgid "Delete All Unused Roles"
86
  msgstr ""
87
 
88
- #: ../includes/classes/role-view.php:168 ../includes/classes/role-view.php:179
89
  msgid "Role name (ID): "
90
  msgstr ""
91
 
92
- #: ../includes/classes/role-view.php:170 ../includes/classes/role-view.php:181
93
  msgid "Display Role Name: "
94
  msgstr ""
95
 
96
- #: ../includes/classes/role-view.php:172
97
  msgid "Make copy of: "
98
  msgstr ""
99
 
100
- #: ../includes/classes/role-view.php:188
101
  msgid "Select Role:"
102
  msgstr ""
103
 
104
- #: ../includes/classes/role-view.php:207
105
- msgid "Delete:"
106
- msgstr ""
107
-
108
- #: ../includes/classes/role-view.php:214
109
  msgid "Capability name (ID): "
110
  msgstr ""
111
 
112
- #: ../includes/classes/role-view.php:332 ../includes/classes/user-view.php:154
113
  msgid "Show capabilities in human readable form"
114
  msgstr ""
115
 
116
- #: ../includes/classes/role-view.php:342 ../includes/classes/screen-help.php:21
117
  #: ../includes/classes/user-view.php:164 ../includes/settings-template.php:69
118
  msgid "Show deprecated capabilities"
119
  msgstr ""
120
 
121
- #: ../includes/classes/role-view.php:346
122
  msgid "If checked, then apply action to ALL sites of this Network"
123
  msgstr ""
124
 
125
- #: ../includes/classes/role-view.php:359
126
  msgid "Apply to All Sites"
127
  msgstr ""
128
 
129
- #: ../includes/classes/role-view.php:376
130
  msgid "Select Role and change its capabilities:"
131
  msgstr ""
132
 
@@ -212,463 +255,414 @@ msgid ""
212
  "limitation."
213
  msgstr ""
214
 
215
- #: ../includes/classes/ure-lib.php:292
216
  msgid "Error: wrong request"
217
  msgstr ""
218
 
219
- #: ../includes/classes/ure-lib.php:327
220
- #: ../includes/classes/user-role-editor.php:510
221
- #: ../includes/classes/user-role-editor.php:541
222
- msgid "User Role Editor"
223
- msgstr ""
224
-
225
- #: ../includes/classes/ure-lib.php:388
226
  msgid "Error: "
227
  msgstr ""
228
 
229
- #: ../includes/classes/ure-lib.php:388
230
  msgid "Role"
231
  msgstr ""
232
 
233
- #: ../includes/classes/ure-lib.php:389
234
  msgid "does not exist"
235
  msgstr ""
236
 
237
- #: ../includes/classes/ure-lib.php:432
238
  msgid "Role is updated successfully"
239
  msgstr ""
240
 
241
- #: ../includes/classes/ure-lib.php:434
242
  msgid "Roles are updated for all network"
243
  msgstr ""
244
 
245
- #: ../includes/classes/ure-lib.php:440
246
  msgid "Error occured during role(s) update"
247
  msgstr ""
248
 
249
- #: ../includes/classes/ure-lib.php:447
250
  msgid "User capabilities are updated successfully"
251
  msgstr ""
252
 
253
- #: ../includes/classes/ure-lib.php:452
254
  msgid "Error occured during user update"
255
  msgstr ""
256
 
257
- #: ../includes/classes/ure-lib.php:510
258
  msgid "User Roles are restored to WordPress default values. "
259
  msgstr ""
260
 
261
- #: ../includes/classes/ure-lib.php:1047
262
- msgid "read about"
263
- msgstr ""
264
-
265
- #: ../includes/classes/ure-lib.php:1048
266
- msgid "user capability"
267
- msgstr ""
268
-
269
- #: ../includes/classes/ure-lib.php:1049
270
- msgid "Help"
271
- msgstr ""
272
-
273
- #: ../includes/classes/ure-lib.php:1381 ../includes/classes/ure-lib.php:1657
274
- #: ../includes/classes/ure-lib.php:1773 ../includes/classes/ure-lib.php:1821
275
- #: ../includes/classes/ure-lib.php:2100 ../includes/classes/ure-lib.php:2143
276
- #: ../includes/classes/user-role-editor.php:751
277
- msgid "Insufficient permissions to work with User Role Editor"
278
- msgstr ""
279
-
280
- #: ../includes/classes/ure-lib.php:1620
281
  msgid "Error is occur. Please check the log file."
282
  msgstr ""
283
 
284
- #: ../includes/classes/ure-lib.php:1666 ../includes/classes/ure-lib.php:1733
285
  msgid ""
286
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
287
  "only!"
288
  msgstr ""
289
 
290
- #: ../includes/classes/ure-lib.php:1670 ../includes/classes/ure-lib.php:1737
291
  msgid ""
292
  "Error: WordPress does not support numeric Role name (ID). Add latin "
293
  "characters to it."
294
  msgstr ""
295
 
296
- #: ../includes/classes/ure-lib.php:1685
297
  #, php-format
298
  msgid "Role %s exists already"
299
  msgstr ""
300
 
301
- #: ../includes/classes/ure-lib.php:1700
302
  msgid "Error is encountered during new role create operation"
303
  msgstr ""
304
 
305
- #: ../includes/classes/ure-lib.php:1702
306
  #, php-format
307
  msgid "Role %s is created successfully"
308
  msgstr ""
309
 
310
- #: ../includes/classes/ure-lib.php:1726
311
  msgid "Error: Role ID is empty!"
312
  msgstr ""
313
 
314
- #: ../includes/classes/ure-lib.php:1744
315
  msgid "Error: Empty role display name is not allowed."
316
  msgstr ""
317
 
318
- #: ../includes/classes/ure-lib.php:1751
319
  #, php-format
320
  msgid "Role %s does not exists"
321
  msgstr ""
322
 
323
- #: ../includes/classes/ure-lib.php:1759
324
  #, php-format
325
  msgid "Role %s is renamed to %s successfully"
326
  msgstr ""
327
 
328
- #: ../includes/classes/ure-lib.php:1832
329
  msgid "Error encountered during role delete operation"
330
  msgstr ""
331
 
332
- #: ../includes/classes/ure-lib.php:1834
333
  msgid "Unused roles are deleted successfully"
334
  msgstr ""
335
 
336
- #: ../includes/classes/ure-lib.php:1836
337
  #, php-format
338
  msgid "Role %s is deleted successfully"
339
  msgstr ""
340
 
341
- #: ../includes/classes/ure-lib.php:1867
342
  msgid "Error encountered during default role change operation"
343
  msgstr ""
344
 
345
- #: ../includes/classes/ure-lib.php:1870
346
  #, php-format
347
  msgid "Default role for new users is set to %s successfully"
348
  msgstr ""
349
 
350
- #: ../includes/classes/ure-lib.php:1873
351
  msgid "Can not set Administrator role as a default one"
352
  msgstr ""
353
 
354
- #: ../includes/classes/ure-lib.php:1875
355
  msgid "This role does not exist - "
356
  msgstr ""
357
 
358
- #: ../includes/classes/ure-lib.php:1891
359
  msgid "Editor"
360
  msgstr ""
361
 
362
- #: ../includes/classes/ure-lib.php:1892
363
  msgid "Author"
364
  msgstr ""
365
 
366
- #: ../includes/classes/ure-lib.php:1893
367
  msgid "Contributor"
368
  msgstr ""
369
 
370
- #: ../includes/classes/ure-lib.php:1894
371
  msgid "Subscriber"
372
  msgstr ""
373
 
374
- #: ../includes/classes/ure-lib.php:1896
375
  msgid "Switch themes"
376
  msgstr ""
377
 
378
- #: ../includes/classes/ure-lib.php:1897
379
  msgid "Edit themes"
380
  msgstr ""
381
 
382
- #: ../includes/classes/ure-lib.php:1898
383
  msgid "Activate plugins"
384
  msgstr ""
385
 
386
- #: ../includes/classes/ure-lib.php:1899
387
  msgid "Edit plugins"
388
  msgstr ""
389
 
390
- #: ../includes/classes/ure-lib.php:1900
391
  msgid "Edit users"
392
  msgstr ""
393
 
394
- #: ../includes/classes/ure-lib.php:1901
395
  msgid "Edit files"
396
  msgstr ""
397
 
398
- #: ../includes/classes/ure-lib.php:1902
399
  msgid "Manage options"
400
  msgstr ""
401
 
402
- #: ../includes/classes/ure-lib.php:1903
403
  msgid "Moderate comments"
404
  msgstr ""
405
 
406
- #: ../includes/classes/ure-lib.php:1904
407
  msgid "Manage categories"
408
  msgstr ""
409
 
410
- #: ../includes/classes/ure-lib.php:1905
411
  msgid "Manage links"
412
  msgstr ""
413
 
414
- #: ../includes/classes/ure-lib.php:1906
415
  msgid "Upload files"
416
  msgstr ""
417
 
418
- #: ../includes/classes/ure-lib.php:1907
419
  msgid "Import"
420
  msgstr ""
421
 
422
- #: ../includes/classes/ure-lib.php:1908
423
  msgid "Unfiltered html"
424
  msgstr ""
425
 
426
- #: ../includes/classes/ure-lib.php:1909
427
  msgid "Edit posts"
428
  msgstr ""
429
 
430
- #: ../includes/classes/ure-lib.php:1910
431
  msgid "Edit others posts"
432
  msgstr ""
433
 
434
- #: ../includes/classes/ure-lib.php:1911
435
  msgid "Edit published posts"
436
  msgstr ""
437
 
438
- #: ../includes/classes/ure-lib.php:1912
439
  msgid "Publish posts"
440
  msgstr ""
441
 
442
- #: ../includes/classes/ure-lib.php:1913
443
  msgid "Edit pages"
444
  msgstr ""
445
 
446
- #: ../includes/classes/ure-lib.php:1914
447
  msgid "Read"
448
  msgstr ""
449
 
450
- #: ../includes/classes/ure-lib.php:1915
451
  msgid "Level 10"
452
  msgstr ""
453
 
454
- #: ../includes/classes/ure-lib.php:1916
455
  msgid "Level 9"
456
  msgstr ""
457
 
458
- #: ../includes/classes/ure-lib.php:1917
459
  msgid "Level 8"
460
  msgstr ""
461
 
462
- #: ../includes/classes/ure-lib.php:1918
463
  msgid "Level 7"
464
  msgstr ""
465
 
466
- #: ../includes/classes/ure-lib.php:1919
467
  msgid "Level 6"
468
  msgstr ""
469
 
470
- #: ../includes/classes/ure-lib.php:1920
471
  msgid "Level 5"
472
  msgstr ""
473
 
474
- #: ../includes/classes/ure-lib.php:1921
475
  msgid "Level 4"
476
  msgstr ""
477
 
478
- #: ../includes/classes/ure-lib.php:1922
479
  msgid "Level 3"
480
  msgstr ""
481
 
482
- #: ../includes/classes/ure-lib.php:1923
483
  msgid "Level 2"
484
  msgstr ""
485
 
486
- #: ../includes/classes/ure-lib.php:1924
487
  msgid "Level 1"
488
  msgstr ""
489
 
490
- #: ../includes/classes/ure-lib.php:1925
491
  msgid "Level 0"
492
  msgstr ""
493
 
494
- #: ../includes/classes/ure-lib.php:1926
495
  msgid "Edit others pages"
496
  msgstr ""
497
 
498
- #: ../includes/classes/ure-lib.php:1927
499
  msgid "Edit published pages"
500
  msgstr ""
501
 
502
- #: ../includes/classes/ure-lib.php:1928
503
  msgid "Publish pages"
504
  msgstr ""
505
 
506
- #: ../includes/classes/ure-lib.php:1929
507
  msgid "Delete pages"
508
  msgstr ""
509
 
510
- #: ../includes/classes/ure-lib.php:1930
511
  msgid "Delete others pages"
512
  msgstr ""
513
 
514
- #: ../includes/classes/ure-lib.php:1931
515
  msgid "Delete published pages"
516
  msgstr ""
517
 
518
- #: ../includes/classes/ure-lib.php:1932
519
  msgid "Delete posts"
520
  msgstr ""
521
 
522
- #: ../includes/classes/ure-lib.php:1933
523
  msgid "Delete others posts"
524
  msgstr ""
525
 
526
- #: ../includes/classes/ure-lib.php:1934
527
  msgid "Delete published posts"
528
  msgstr ""
529
 
530
- #: ../includes/classes/ure-lib.php:1935
531
  msgid "Delete private posts"
532
  msgstr ""
533
 
534
- #: ../includes/classes/ure-lib.php:1936
535
  msgid "Edit private posts"
536
  msgstr ""
537
 
538
- #: ../includes/classes/ure-lib.php:1937
539
  msgid "Read private posts"
540
  msgstr ""
541
 
542
- #: ../includes/classes/ure-lib.php:1938
543
  msgid "Delete private pages"
544
  msgstr ""
545
 
546
- #: ../includes/classes/ure-lib.php:1939
547
  msgid "Edit private pages"
548
  msgstr ""
549
 
550
- #: ../includes/classes/ure-lib.php:1940
551
  msgid "Read private pages"
552
  msgstr ""
553
 
554
- #: ../includes/classes/ure-lib.php:1941
555
  msgid "Delete users"
556
  msgstr ""
557
 
558
- #: ../includes/classes/ure-lib.php:1942
559
  msgid "Create users"
560
  msgstr ""
561
 
562
- #: ../includes/classes/ure-lib.php:1943
563
  msgid "Unfiltered upload"
564
  msgstr ""
565
 
566
- #: ../includes/classes/ure-lib.php:1944
567
  msgid "Edit dashboard"
568
  msgstr ""
569
 
570
- #: ../includes/classes/ure-lib.php:1945
571
  msgid "Update plugins"
572
  msgstr ""
573
 
574
- #: ../includes/classes/ure-lib.php:1946
575
  msgid "Delete plugins"
576
  msgstr ""
577
 
578
- #: ../includes/classes/ure-lib.php:1947
579
  msgid "Install plugins"
580
  msgstr ""
581
 
582
- #: ../includes/classes/ure-lib.php:1948
583
  msgid "Update themes"
584
  msgstr ""
585
 
586
- #: ../includes/classes/ure-lib.php:1949
587
  msgid "Install themes"
588
  msgstr ""
589
 
590
- #: ../includes/classes/ure-lib.php:1950
591
  msgid "Update core"
592
  msgstr ""
593
 
594
- #: ../includes/classes/ure-lib.php:1951
595
  msgid "List users"
596
  msgstr ""
597
 
598
- #: ../includes/classes/ure-lib.php:1952
599
  msgid "Remove users"
600
  msgstr ""
601
 
602
- #: ../includes/classes/ure-lib.php:1953
603
  msgid "Add users"
604
  msgstr ""
605
 
606
- #: ../includes/classes/ure-lib.php:1954
607
  msgid "Promote users"
608
  msgstr ""
609
 
610
- #: ../includes/classes/ure-lib.php:1955
611
  msgid "Edit theme options"
612
  msgstr ""
613
 
614
- #: ../includes/classes/ure-lib.php:1956
615
  msgid "Delete themes"
616
  msgstr ""
617
 
618
- #: ../includes/classes/ure-lib.php:1957
619
  msgid "Export"
620
  msgstr ""
621
 
622
- #: ../includes/classes/ure-lib.php:2111
623
- msgid "Error: Capability name must contain latin characters and digits only!"
624
- msgstr ""
625
-
626
- #: ../includes/classes/ure-lib.php:2121
627
- #, php-format
628
- msgid "Capability %s is added successfully"
629
- msgstr ""
630
-
631
- #: ../includes/classes/ure-lib.php:2123
632
- #, php-format
633
- msgid "Capability %s exists already"
634
- msgstr ""
635
-
636
- #: ../includes/classes/ure-lib.php:2150
637
- #, php-format
638
- msgid "Error! You do not have permission to delete this capability: %s!"
639
- msgstr ""
640
-
641
- #: ../includes/classes/ure-lib.php:2169
642
- #, php-format
643
- msgid "Capability %s was removed successfully"
644
- msgstr ""
645
-
646
- #: ../includes/classes/ure-lib.php:2209
647
  msgid "Version:"
648
  msgstr ""
649
 
650
- #: ../includes/classes/ure-lib.php:2210
651
  msgid "Author's website"
652
  msgstr ""
653
 
654
- #: ../includes/classes/ure-lib.php:2211
655
  msgid "Plugin webpage"
656
  msgstr ""
657
 
658
- #: ../includes/classes/ure-lib.php:2212
659
  msgid "Plugin download"
660
  msgstr ""
661
 
662
- #: ../includes/classes/ure-lib.php:2213
663
- #: ../includes/classes/user-role-editor.php:459
664
  msgid "Changelog"
665
  msgstr ""
666
 
667
- #: ../includes/classes/ure-lib.php:2214
668
  msgid "FAQ"
669
  msgstr ""
670
 
671
- #: ../includes/classes/ure-lib.php:2359
672
  #, php-format
673
  msgid "Denied: %s"
674
  msgstr ""
@@ -683,7 +677,7 @@ msgid "Select additional roles for this user"
683
  msgstr ""
684
 
685
  #: ../includes/classes/user-other-roles.php:161
686
- #: ../includes/classes/user-role-editor.php:355
687
  msgid "Capabilities"
688
  msgstr ""
689
 
@@ -695,178 +689,179 @@ msgstr ""
695
  msgid "Additional Capabilities"
696
  msgstr ""
697
 
698
- #: ../includes/classes/user-role-editor.php:254
699
  msgid "Change role for users without role"
700
  msgstr ""
701
 
702
- #: ../includes/classes/user-role-editor.php:255
703
  msgid "To:"
704
  msgstr ""
705
 
706
- #: ../includes/classes/user-role-editor.php:256
707
  msgid "No rights"
708
  msgstr ""
709
 
710
- #: ../includes/classes/user-role-editor.php:257
711
  msgid "Provide new role"
712
  msgstr ""
713
 
714
- #: ../includes/classes/user-role-editor.php:329
715
- #: ../includes/classes/user-role-editor.php:331
716
  msgid "You do not have permission to edit this user."
717
  msgstr ""
718
 
719
  #: ../includes/classes/user-role-editor.php:448
 
720
  msgid "Settings"
721
  msgstr ""
722
 
723
- #: ../includes/classes/user-role-editor.php:488
724
  #: ../includes/settings-template.php:26
725
  msgid "Additional Modules"
726
  msgstr ""
727
 
728
- #: ../includes/classes/user-role-editor.php:494
729
  #: ../includes/settings-template.php:30
730
  msgid "Default Roles"
731
  msgstr ""
732
 
733
- #: ../includes/classes/user-role-editor.php:604
734
- #: ../includes/classes/user-role-editor.php:622
735
- #: ../includes/classes/user-role-editor.php:667
736
  msgid "User Role Editor options are updated"
737
  msgstr ""
738
 
739
- #: ../includes/classes/user-role-editor.php:650
740
  msgid "Default Roles are updated"
741
  msgstr ""
742
 
743
- #: ../includes/classes/user-role-editor.php:676
744
  msgid ""
745
  "You do not have sufficient permissions to manage options for User Role "
746
  "Editor."
747
  msgstr ""
748
 
749
- #: ../includes/classes/user-role-editor.php:788
750
  msgid "Confirm"
751
  msgstr ""
752
 
753
- #: ../includes/classes/user-role-editor.php:789
754
  msgid "Yes"
755
  msgstr ""
756
 
757
- #: ../includes/classes/user-role-editor.php:790
758
  msgid "No"
759
  msgstr ""
760
 
761
- #: ../includes/classes/user-role-editor.php:791
762
  msgid "Select All"
763
  msgstr ""
764
 
765
- #: ../includes/classes/user-role-editor.php:792
766
  msgid "Unselect All"
767
  msgstr ""
768
 
769
- #: ../includes/classes/user-role-editor.php:793
770
  msgid "Reverse"
771
  msgstr ""
772
 
773
- #: ../includes/classes/user-role-editor.php:794
774
  msgid "Update"
775
  msgstr ""
776
 
777
- #: ../includes/classes/user-role-editor.php:795
778
  msgid "Please confirm permissions update"
779
  msgstr ""
780
 
781
- #: ../includes/classes/user-role-editor.php:796
782
  msgid "Add New Role"
783
  msgstr ""
784
 
785
- #: ../includes/classes/user-role-editor.php:797
786
- #: ../includes/classes/user-role-editor.php:802
787
  msgid "Rename Role"
788
  msgstr ""
789
 
790
- #: ../includes/classes/user-role-editor.php:798
791
  msgid " Role name (ID) can not be empty!"
792
  msgstr ""
793
 
794
- #: ../includes/classes/user-role-editor.php:799
795
  msgid ""
796
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
797
  "only!"
798
  msgstr ""
799
 
800
- #: ../includes/classes/user-role-editor.php:800
801
  msgid ""
802
  " WordPress does not support numeric Role name (ID). Add latin characters to "
803
  "it."
804
  msgstr ""
805
 
806
- #: ../includes/classes/user-role-editor.php:801
807
  msgid "Add Role"
808
  msgstr ""
809
 
810
- #: ../includes/classes/user-role-editor.php:803
811
  msgid "Delete Role"
812
  msgstr ""
813
 
814
- #: ../includes/classes/user-role-editor.php:804
815
  msgid "Cancel"
816
  msgstr ""
817
 
818
- #: ../includes/classes/user-role-editor.php:805
819
  msgid "Add Capability"
820
  msgstr ""
821
 
822
- #: ../includes/classes/user-role-editor.php:806
823
- #: ../includes/classes/user-role-editor.php:815
824
  msgid "Delete Capability"
825
  msgstr ""
826
 
827
- #: ../includes/classes/user-role-editor.php:807
828
  msgid "Reset"
829
  msgstr ""
830
 
831
- #: ../includes/classes/user-role-editor.php:808
832
  msgid "DANGER! Resetting will restore default settings from WordPress Core."
833
  msgstr ""
834
 
835
- #: ../includes/classes/user-role-editor.php:809
836
  msgid ""
837
  "If any plugins have changed capabilities in any way upon installation (such "
838
  "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
839
  msgstr ""
840
 
841
- #: ../includes/classes/user-role-editor.php:810
842
  msgid ""
843
  "For more information on how to undo changes and restore plugin capabilities "
844
  "go to"
845
  msgstr ""
846
 
847
- #: ../includes/classes/user-role-editor.php:812
848
  msgid "Continue?"
849
  msgstr ""
850
 
851
- #: ../includes/classes/user-role-editor.php:813
852
  msgid "Default Role"
853
  msgstr ""
854
 
855
- #: ../includes/classes/user-role-editor.php:814
856
  msgid "Set New Default Role"
857
  msgstr ""
858
 
859
- #: ../includes/classes/user-role-editor.php:816
860
  msgid ""
861
  "Warning! Be careful - removing critical capability could crash some plugin "
862
  "or other custom code"
863
  msgstr ""
864
 
865
- #: ../includes/classes/user-role-editor.php:817
866
  msgid " Capability name (ID) can not be empty!"
867
  msgstr ""
868
 
869
- #: ../includes/classes/user-role-editor.php:818
870
  msgid ""
871
  " Capability name (ID) must contain latin characters, digits, hyphens or "
872
  "underscore only!"
@@ -916,7 +911,11 @@ msgstr ""
916
  msgid "Quick filter:"
917
  msgstr ""
918
 
919
- #: ../includes/classes/view.php:271
 
 
 
 
920
  msgid "Columns:"
921
  msgstr ""
922
 
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2016-12-13 11:10+0700\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
9
  "Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
21
  msgid "Custom Post Types"
22
  msgstr ""
23
 
24
+ #: ../includes/classes/capabilities-groups-manager.php:75
25
+ #: ../includes/classes/ure-lib.php:230
26
+ #: ../includes/classes/user-role-editor.php:525
27
+ #: ../includes/classes/user-role-editor.php:556
28
+ msgid "User Role Editor"
29
  msgstr ""
30
 
31
+ #: ../includes/classes/capabilities-groups-manager.php:90
32
+ msgid "WooCommerce"
33
+ msgstr ""
34
+
35
+ #: ../includes/classes/capabilities-groups-manager.php:91
36
+ #: ../includes/classes/capabilities-groups-manager.php:111
37
  msgid "Core"
38
  msgstr ""
39
 
40
+ #: ../includes/classes/capabilities-groups-manager.php:110
41
+ msgid "All"
42
+ msgstr ""
43
+
44
+ #: ../includes/classes/capabilities-groups-manager.php:112
45
+ #: ../includes/classes/user-role-editor.php:497
46
  #: ../includes/settings-template.php:21
47
  msgid "General"
48
  msgstr ""
49
 
50
+ #: ../includes/classes/capabilities-groups-manager.php:113
51
  msgid "Themes"
52
  msgstr ""
53
 
54
+ #: ../includes/classes/capabilities-groups-manager.php:114
55
  msgid "Posts"
56
  msgstr ""
57
 
58
+ #: ../includes/classes/capabilities-groups-manager.php:115
59
  msgid "Pages"
60
  msgstr ""
61
 
62
+ #: ../includes/classes/capabilities-groups-manager.php:116
63
  msgid "Plugins"
64
  msgstr ""
65
 
66
+ #: ../includes/classes/capabilities-groups-manager.php:117
67
  msgid "Users"
68
  msgstr ""
69
 
70
+ #: ../includes/classes/capabilities-groups-manager.php:121
71
+ #: ../includes/classes/user-role-editor.php:515
72
  #: ../includes/settings-template.php:34
73
  msgid "Multisite"
74
  msgstr ""
75
 
76
+ #: ../includes/classes/capabilities-groups-manager.php:123
77
  msgid "Deprecated"
78
  msgstr ""
79
 
80
+ #: ../includes/classes/capabilities-groups-manager.php:126
81
  msgid "Custom capabilities"
82
  msgstr ""
83
 
84
+ #: ../includes/classes/capability.php:56 ../includes/classes/capability.php:164
85
+ #: ../includes/classes/ure-lib.php:1223 ../includes/classes/ure-lib.php:1498
86
+ #: ../includes/classes/ure-lib.php:1614 ../includes/classes/ure-lib.php:1662
87
+ #: ../includes/classes/user-role-editor.php:766
88
+ msgid "Insufficient permissions to work with User Role Editor"
89
+ msgstr ""
90
+
91
+ #: ../includes/classes/capability.php:66
92
+ msgid "Error: Capability name must contain latin characters and digits only!"
93
+ msgstr ""
94
+
95
+ #: ../includes/classes/capability.php:78
96
+ #, php-format
97
+ msgid "Capability %s is added successfully"
98
+ msgstr ""
99
+
100
+ #: ../includes/classes/capability.php:80
101
+ #, php-format
102
+ msgid "Capability %s exists already"
103
+ msgstr ""
104
+
105
+ #: ../includes/classes/capability.php:171
106
+ #: ../includes/classes/capability.php:176
107
+ msgid "There are no capabilities available for deletion!"
108
+ msgstr ""
109
+
110
+ #: ../includes/classes/capability.php:182
111
+ #, php-format
112
+ msgid "Capability %s was removed successfully"
113
+ msgstr ""
114
+
115
+ #: ../includes/classes/capability.php:185
116
+ msgid "capabilities were removed successfully"
117
+ msgstr ""
118
+
119
  #: ../includes/classes/role-additional-options.php:69
120
  msgid "Hide admin bar"
121
  msgstr ""
132
  msgid "Delete All Unused Roles"
133
  msgstr ""
134
 
135
+ #: ../includes/classes/role-view.php:208 ../includes/classes/role-view.php:219
136
  msgid "Role name (ID): "
137
  msgstr ""
138
 
139
+ #: ../includes/classes/role-view.php:210 ../includes/classes/role-view.php:221
140
  msgid "Display Role Name: "
141
  msgstr ""
142
 
143
+ #: ../includes/classes/role-view.php:212
144
  msgid "Make copy of: "
145
  msgstr ""
146
 
147
+ #: ../includes/classes/role-view.php:228
148
  msgid "Select Role:"
149
  msgstr ""
150
 
151
+ #: ../includes/classes/role-view.php:253
 
 
 
 
152
  msgid "Capability name (ID): "
153
  msgstr ""
154
 
155
+ #: ../includes/classes/role-view.php:372 ../includes/classes/user-view.php:154
156
  msgid "Show capabilities in human readable form"
157
  msgstr ""
158
 
159
+ #: ../includes/classes/role-view.php:382 ../includes/classes/screen-help.php:21
160
  #: ../includes/classes/user-view.php:164 ../includes/settings-template.php:69
161
  msgid "Show deprecated capabilities"
162
  msgstr ""
163
 
164
+ #: ../includes/classes/role-view.php:386
165
  msgid "If checked, then apply action to ALL sites of this Network"
166
  msgstr ""
167
 
168
+ #: ../includes/classes/role-view.php:399
169
  msgid "Apply to All Sites"
170
  msgstr ""
171
 
172
+ #: ../includes/classes/role-view.php:416
173
  msgid "Select Role and change its capabilities:"
174
  msgstr ""
175
 
255
  "limitation."
256
  msgstr ""
257
 
258
+ #: ../includes/classes/ure-lib.php:207
259
  msgid "Error: wrong request"
260
  msgstr ""
261
 
262
+ #: ../includes/classes/ure-lib.php:291
 
 
 
 
 
 
263
  msgid "Error: "
264
  msgstr ""
265
 
266
+ #: ../includes/classes/ure-lib.php:291
267
  msgid "Role"
268
  msgstr ""
269
 
270
+ #: ../includes/classes/ure-lib.php:292
271
  msgid "does not exist"
272
  msgstr ""
273
 
274
+ #: ../includes/classes/ure-lib.php:335
275
  msgid "Role is updated successfully"
276
  msgstr ""
277
 
278
+ #: ../includes/classes/ure-lib.php:337
279
  msgid "Roles are updated for all network"
280
  msgstr ""
281
 
282
+ #: ../includes/classes/ure-lib.php:343
283
  msgid "Error occured during role(s) update"
284
  msgstr ""
285
 
286
+ #: ../includes/classes/ure-lib.php:350
287
  msgid "User capabilities are updated successfully"
288
  msgstr ""
289
 
290
+ #: ../includes/classes/ure-lib.php:355
291
  msgid "Error occured during user update"
292
  msgstr ""
293
 
294
+ #: ../includes/classes/ure-lib.php:413
295
  msgid "User Roles are restored to WordPress default values. "
296
  msgstr ""
297
 
298
+ #: ../includes/classes/ure-lib.php:1461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  msgid "Error is occur. Please check the log file."
300
  msgstr ""
301
 
302
+ #: ../includes/classes/ure-lib.php:1507 ../includes/classes/ure-lib.php:1574
303
  msgid ""
304
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
305
  "only!"
306
  msgstr ""
307
 
308
+ #: ../includes/classes/ure-lib.php:1511 ../includes/classes/ure-lib.php:1578
309
  msgid ""
310
  "Error: WordPress does not support numeric Role name (ID). Add latin "
311
  "characters to it."
312
  msgstr ""
313
 
314
+ #: ../includes/classes/ure-lib.php:1526
315
  #, php-format
316
  msgid "Role %s exists already"
317
  msgstr ""
318
 
319
+ #: ../includes/classes/ure-lib.php:1541
320
  msgid "Error is encountered during new role create operation"
321
  msgstr ""
322
 
323
+ #: ../includes/classes/ure-lib.php:1543
324
  #, php-format
325
  msgid "Role %s is created successfully"
326
  msgstr ""
327
 
328
+ #: ../includes/classes/ure-lib.php:1567
329
  msgid "Error: Role ID is empty!"
330
  msgstr ""
331
 
332
+ #: ../includes/classes/ure-lib.php:1585
333
  msgid "Error: Empty role display name is not allowed."
334
  msgstr ""
335
 
336
+ #: ../includes/classes/ure-lib.php:1592
337
  #, php-format
338
  msgid "Role %s does not exists"
339
  msgstr ""
340
 
341
+ #: ../includes/classes/ure-lib.php:1600
342
  #, php-format
343
  msgid "Role %s is renamed to %s successfully"
344
  msgstr ""
345
 
346
+ #: ../includes/classes/ure-lib.php:1673
347
  msgid "Error encountered during role delete operation"
348
  msgstr ""
349
 
350
+ #: ../includes/classes/ure-lib.php:1675
351
  msgid "Unused roles are deleted successfully"
352
  msgstr ""
353
 
354
+ #: ../includes/classes/ure-lib.php:1677
355
  #, php-format
356
  msgid "Role %s is deleted successfully"
357
  msgstr ""
358
 
359
+ #: ../includes/classes/ure-lib.php:1708
360
  msgid "Error encountered during default role change operation"
361
  msgstr ""
362
 
363
+ #: ../includes/classes/ure-lib.php:1711
364
  #, php-format
365
  msgid "Default role for new users is set to %s successfully"
366
  msgstr ""
367
 
368
+ #: ../includes/classes/ure-lib.php:1714
369
  msgid "Can not set Administrator role as a default one"
370
  msgstr ""
371
 
372
+ #: ../includes/classes/ure-lib.php:1716
373
  msgid "This role does not exist - "
374
  msgstr ""
375
 
376
+ #: ../includes/classes/ure-lib.php:1732
377
  msgid "Editor"
378
  msgstr ""
379
 
380
+ #: ../includes/classes/ure-lib.php:1733
381
  msgid "Author"
382
  msgstr ""
383
 
384
+ #: ../includes/classes/ure-lib.php:1734
385
  msgid "Contributor"
386
  msgstr ""
387
 
388
+ #: ../includes/classes/ure-lib.php:1735
389
  msgid "Subscriber"
390
  msgstr ""
391
 
392
+ #: ../includes/classes/ure-lib.php:1737
393
  msgid "Switch themes"
394
  msgstr ""
395
 
396
+ #: ../includes/classes/ure-lib.php:1738
397
  msgid "Edit themes"
398
  msgstr ""
399
 
400
+ #: ../includes/classes/ure-lib.php:1739
401
  msgid "Activate plugins"
402
  msgstr ""
403
 
404
+ #: ../includes/classes/ure-lib.php:1740
405
  msgid "Edit plugins"
406
  msgstr ""
407
 
408
+ #: ../includes/classes/ure-lib.php:1741
409
  msgid "Edit users"
410
  msgstr ""
411
 
412
+ #: ../includes/classes/ure-lib.php:1742
413
  msgid "Edit files"
414
  msgstr ""
415
 
416
+ #: ../includes/classes/ure-lib.php:1743
417
  msgid "Manage options"
418
  msgstr ""
419
 
420
+ #: ../includes/classes/ure-lib.php:1744
421
  msgid "Moderate comments"
422
  msgstr ""
423
 
424
+ #: ../includes/classes/ure-lib.php:1745
425
  msgid "Manage categories"
426
  msgstr ""
427
 
428
+ #: ../includes/classes/ure-lib.php:1746
429
  msgid "Manage links"
430
  msgstr ""
431
 
432
+ #: ../includes/classes/ure-lib.php:1747
433
  msgid "Upload files"
434
  msgstr ""
435
 
436
+ #: ../includes/classes/ure-lib.php:1748
437
  msgid "Import"
438
  msgstr ""
439
 
440
+ #: ../includes/classes/ure-lib.php:1749
441
  msgid "Unfiltered html"
442
  msgstr ""
443
 
444
+ #: ../includes/classes/ure-lib.php:1750
445
  msgid "Edit posts"
446
  msgstr ""
447
 
448
+ #: ../includes/classes/ure-lib.php:1751
449
  msgid "Edit others posts"
450
  msgstr ""
451
 
452
+ #: ../includes/classes/ure-lib.php:1752
453
  msgid "Edit published posts"
454
  msgstr ""
455
 
456
+ #: ../includes/classes/ure-lib.php:1753
457
  msgid "Publish posts"
458
  msgstr ""
459
 
460
+ #: ../includes/classes/ure-lib.php:1754
461
  msgid "Edit pages"
462
  msgstr ""
463
 
464
+ #: ../includes/classes/ure-lib.php:1755
465
  msgid "Read"
466
  msgstr ""
467
 
468
+ #: ../includes/classes/ure-lib.php:1756
469
  msgid "Level 10"
470
  msgstr ""
471
 
472
+ #: ../includes/classes/ure-lib.php:1757
473
  msgid "Level 9"
474
  msgstr ""
475
 
476
+ #: ../includes/classes/ure-lib.php:1758
477
  msgid "Level 8"
478
  msgstr ""
479
 
480
+ #: ../includes/classes/ure-lib.php:1759
481
  msgid "Level 7"
482
  msgstr ""
483
 
484
+ #: ../includes/classes/ure-lib.php:1760
485
  msgid "Level 6"
486
  msgstr ""
487
 
488
+ #: ../includes/classes/ure-lib.php:1761
489
  msgid "Level 5"
490
  msgstr ""
491
 
492
+ #: ../includes/classes/ure-lib.php:1762
493
  msgid "Level 4"
494
  msgstr ""
495
 
496
+ #: ../includes/classes/ure-lib.php:1763
497
  msgid "Level 3"
498
  msgstr ""
499
 
500
+ #: ../includes/classes/ure-lib.php:1764
501
  msgid "Level 2"
502
  msgstr ""
503
 
504
+ #: ../includes/classes/ure-lib.php:1765
505
  msgid "Level 1"
506
  msgstr ""
507
 
508
+ #: ../includes/classes/ure-lib.php:1766
509
  msgid "Level 0"
510
  msgstr ""
511
 
512
+ #: ../includes/classes/ure-lib.php:1767
513
  msgid "Edit others pages"
514
  msgstr ""
515
 
516
+ #: ../includes/classes/ure-lib.php:1768
517
  msgid "Edit published pages"
518
  msgstr ""
519
 
520
+ #: ../includes/classes/ure-lib.php:1769
521
  msgid "Publish pages"
522
  msgstr ""
523
 
524
+ #: ../includes/classes/ure-lib.php:1770
525
  msgid "Delete pages"
526
  msgstr ""
527
 
528
+ #: ../includes/classes/ure-lib.php:1771
529
  msgid "Delete others pages"
530
  msgstr ""
531
 
532
+ #: ../includes/classes/ure-lib.php:1772
533
  msgid "Delete published pages"
534
  msgstr ""
535
 
536
+ #: ../includes/classes/ure-lib.php:1773
537
  msgid "Delete posts"
538
  msgstr ""
539
 
540
+ #: ../includes/classes/ure-lib.php:1774
541
  msgid "Delete others posts"
542
  msgstr ""
543
 
544
+ #: ../includes/classes/ure-lib.php:1775
545
  msgid "Delete published posts"
546
  msgstr ""
547
 
548
+ #: ../includes/classes/ure-lib.php:1776
549
  msgid "Delete private posts"
550
  msgstr ""
551
 
552
+ #: ../includes/classes/ure-lib.php:1777
553
  msgid "Edit private posts"
554
  msgstr ""
555
 
556
+ #: ../includes/classes/ure-lib.php:1778
557
  msgid "Read private posts"
558
  msgstr ""
559
 
560
+ #: ../includes/classes/ure-lib.php:1779
561
  msgid "Delete private pages"
562
  msgstr ""
563
 
564
+ #: ../includes/classes/ure-lib.php:1780
565
  msgid "Edit private pages"
566
  msgstr ""
567
 
568
+ #: ../includes/classes/ure-lib.php:1781
569
  msgid "Read private pages"
570
  msgstr ""
571
 
572
+ #: ../includes/classes/ure-lib.php:1782
573
  msgid "Delete users"
574
  msgstr ""
575
 
576
+ #: ../includes/classes/ure-lib.php:1783
577
  msgid "Create users"
578
  msgstr ""
579
 
580
+ #: ../includes/classes/ure-lib.php:1784
581
  msgid "Unfiltered upload"
582
  msgstr ""
583
 
584
+ #: ../includes/classes/ure-lib.php:1785
585
  msgid "Edit dashboard"
586
  msgstr ""
587
 
588
+ #: ../includes/classes/ure-lib.php:1786
589
  msgid "Update plugins"
590
  msgstr ""
591
 
592
+ #: ../includes/classes/ure-lib.php:1787
593
  msgid "Delete plugins"
594
  msgstr ""
595
 
596
+ #: ../includes/classes/ure-lib.php:1788
597
  msgid "Install plugins"
598
  msgstr ""
599
 
600
+ #: ../includes/classes/ure-lib.php:1789
601
  msgid "Update themes"
602
  msgstr ""
603
 
604
+ #: ../includes/classes/ure-lib.php:1790
605
  msgid "Install themes"
606
  msgstr ""
607
 
608
+ #: ../includes/classes/ure-lib.php:1791
609
  msgid "Update core"
610
  msgstr ""
611
 
612
+ #: ../includes/classes/ure-lib.php:1792
613
  msgid "List users"
614
  msgstr ""
615
 
616
+ #: ../includes/classes/ure-lib.php:1793
617
  msgid "Remove users"
618
  msgstr ""
619
 
620
+ #: ../includes/classes/ure-lib.php:1794
621
  msgid "Add users"
622
  msgstr ""
623
 
624
+ #: ../includes/classes/ure-lib.php:1795
625
  msgid "Promote users"
626
  msgstr ""
627
 
628
+ #: ../includes/classes/ure-lib.php:1796
629
  msgid "Edit theme options"
630
  msgstr ""
631
 
632
+ #: ../includes/classes/ure-lib.php:1797
633
  msgid "Delete themes"
634
  msgstr ""
635
 
636
+ #: ../includes/classes/ure-lib.php:1798
637
  msgid "Export"
638
  msgstr ""
639
 
640
+ #: ../includes/classes/ure-lib.php:1963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
641
  msgid "Version:"
642
  msgstr ""
643
 
644
+ #: ../includes/classes/ure-lib.php:1964
645
  msgid "Author's website"
646
  msgstr ""
647
 
648
+ #: ../includes/classes/ure-lib.php:1965
649
  msgid "Plugin webpage"
650
  msgstr ""
651
 
652
+ #: ../includes/classes/ure-lib.php:1966
653
  msgid "Plugin download"
654
  msgstr ""
655
 
656
+ #: ../includes/classes/ure-lib.php:1967
657
+ #: ../includes/classes/user-role-editor.php:474
658
  msgid "Changelog"
659
  msgstr ""
660
 
661
+ #: ../includes/classes/ure-lib.php:1968
662
  msgid "FAQ"
663
  msgstr ""
664
 
665
+ #: ../includes/classes/ure-lib.php:2150
666
  #, php-format
667
  msgid "Denied: %s"
668
  msgstr ""
677
  msgstr ""
678
 
679
  #: ../includes/classes/user-other-roles.php:161
680
+ #: ../includes/classes/user-role-editor.php:356
681
  msgid "Capabilities"
682
  msgstr ""
683
 
689
  msgid "Additional Capabilities"
690
  msgstr ""
691
 
692
+ #: ../includes/classes/user-role-editor.php:255
693
  msgid "Change role for users without role"
694
  msgstr ""
695
 
696
+ #: ../includes/classes/user-role-editor.php:256
697
  msgid "To:"
698
  msgstr ""
699
 
700
+ #: ../includes/classes/user-role-editor.php:257
701
  msgid "No rights"
702
  msgstr ""
703
 
704
+ #: ../includes/classes/user-role-editor.php:258
705
  msgid "Provide new role"
706
  msgstr ""
707
 
708
+ #: ../includes/classes/user-role-editor.php:330
709
+ #: ../includes/classes/user-role-editor.php:332
710
  msgid "You do not have permission to edit this user."
711
  msgstr ""
712
 
713
  #: ../includes/classes/user-role-editor.php:448
714
+ #: ../includes/classes/user-role-editor.php:461
715
  msgid "Settings"
716
  msgstr ""
717
 
718
+ #: ../includes/classes/user-role-editor.php:503
719
  #: ../includes/settings-template.php:26
720
  msgid "Additional Modules"
721
  msgstr ""
722
 
723
+ #: ../includes/classes/user-role-editor.php:509
724
  #: ../includes/settings-template.php:30
725
  msgid "Default Roles"
726
  msgstr ""
727
 
728
+ #: ../includes/classes/user-role-editor.php:619
729
+ #: ../includes/classes/user-role-editor.php:637
730
+ #: ../includes/classes/user-role-editor.php:682
731
  msgid "User Role Editor options are updated"
732
  msgstr ""
733
 
734
+ #: ../includes/classes/user-role-editor.php:665
735
  msgid "Default Roles are updated"
736
  msgstr ""
737
 
738
+ #: ../includes/classes/user-role-editor.php:691
739
  msgid ""
740
  "You do not have sufficient permissions to manage options for User Role "
741
  "Editor."
742
  msgstr ""
743
 
744
+ #: ../includes/classes/user-role-editor.php:804
745
  msgid "Confirm"
746
  msgstr ""
747
 
748
+ #: ../includes/classes/user-role-editor.php:805
749
  msgid "Yes"
750
  msgstr ""
751
 
752
+ #: ../includes/classes/user-role-editor.php:806
753
  msgid "No"
754
  msgstr ""
755
 
756
+ #: ../includes/classes/user-role-editor.php:807
757
  msgid "Select All"
758
  msgstr ""
759
 
760
+ #: ../includes/classes/user-role-editor.php:808
761
  msgid "Unselect All"
762
  msgstr ""
763
 
764
+ #: ../includes/classes/user-role-editor.php:809
765
  msgid "Reverse"
766
  msgstr ""
767
 
768
+ #: ../includes/classes/user-role-editor.php:810
769
  msgid "Update"
770
  msgstr ""
771
 
772
+ #: ../includes/classes/user-role-editor.php:811
773
  msgid "Please confirm permissions update"
774
  msgstr ""
775
 
776
+ #: ../includes/classes/user-role-editor.php:812
777
  msgid "Add New Role"
778
  msgstr ""
779
 
780
+ #: ../includes/classes/user-role-editor.php:813
781
+ #: ../includes/classes/user-role-editor.php:818
782
  msgid "Rename Role"
783
  msgstr ""
784
 
785
+ #: ../includes/classes/user-role-editor.php:814
786
  msgid " Role name (ID) can not be empty!"
787
  msgstr ""
788
 
789
+ #: ../includes/classes/user-role-editor.php:815
790
  msgid ""
791
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
792
  "only!"
793
  msgstr ""
794
 
795
+ #: ../includes/classes/user-role-editor.php:816
796
  msgid ""
797
  " WordPress does not support numeric Role name (ID). Add latin characters to "
798
  "it."
799
  msgstr ""
800
 
801
+ #: ../includes/classes/user-role-editor.php:817
802
  msgid "Add Role"
803
  msgstr ""
804
 
805
+ #: ../includes/classes/user-role-editor.php:819
806
  msgid "Delete Role"
807
  msgstr ""
808
 
809
+ #: ../includes/classes/user-role-editor.php:820
810
  msgid "Cancel"
811
  msgstr ""
812
 
813
+ #: ../includes/classes/user-role-editor.php:821
814
  msgid "Add Capability"
815
  msgstr ""
816
 
817
+ #: ../includes/classes/user-role-editor.php:822
818
+ #: ../includes/classes/user-role-editor.php:831
819
  msgid "Delete Capability"
820
  msgstr ""
821
 
822
+ #: ../includes/classes/user-role-editor.php:823
823
  msgid "Reset"
824
  msgstr ""
825
 
826
+ #: ../includes/classes/user-role-editor.php:824
827
  msgid "DANGER! Resetting will restore default settings from WordPress Core."
828
  msgstr ""
829
 
830
+ #: ../includes/classes/user-role-editor.php:825
831
  msgid ""
832
  "If any plugins have changed capabilities in any way upon installation (such "
833
  "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
834
  msgstr ""
835
 
836
+ #: ../includes/classes/user-role-editor.php:826
837
  msgid ""
838
  "For more information on how to undo changes and restore plugin capabilities "
839
  "go to"
840
  msgstr ""
841
 
842
+ #: ../includes/classes/user-role-editor.php:828
843
  msgid "Continue?"
844
  msgstr ""
845
 
846
+ #: ../includes/classes/user-role-editor.php:829
847
  msgid "Default Role"
848
  msgstr ""
849
 
850
+ #: ../includes/classes/user-role-editor.php:830
851
  msgid "Set New Default Role"
852
  msgstr ""
853
 
854
+ #: ../includes/classes/user-role-editor.php:832
855
  msgid ""
856
  "Warning! Be careful - removing critical capability could crash some plugin "
857
  "or other custom code"
858
  msgstr ""
859
 
860
+ #: ../includes/classes/user-role-editor.php:833
861
  msgid " Capability name (ID) can not be empty!"
862
  msgstr ""
863
 
864
+ #: ../includes/classes/user-role-editor.php:834
865
  msgid ""
866
  " Capability name (ID) must contain latin characters, digits, hyphens or "
867
  "underscore only!"
911
  msgid "Quick filter:"
912
  msgstr ""
913
 
914
+ #: ../includes/classes/view.php:270
915
+ msgid "Granted Only"
916
+ msgstr ""
917
+
918
+ #: ../includes/classes/view.php:273
919
  msgid "Columns:"
920
  msgstr ""
921
 
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: 4.0
6
  Tested up to: 4.7
7
- Stable tag: 4.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -76,6 +76,12 @@ If you wish to check available translations or help with plugin translation to y
76
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
77
 
78
  == Changelog ==
 
 
 
 
 
 
79
  = [4.30] 01.12.2016 =
80
  * Update: compatible with WordPress 4.7
81
  * New: "Granted Only" checkbox to the right from the "Quick Filter" input control allows to show only granted capabilities for the selected role or user.
@@ -142,33 +148,6 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
142
  * Fix: PHP fatal error (line 34) was raised at uninstall.php for WordPress multisite.
143
  * Update: action priority 99 was added for role additional options hook action setup.
144
 
145
- = [4.24] 17.03.2016 =
146
- * Fix: PHP notice was generated by class-role-additional-options.php in case when some option does not exist anymore
147
- * Enhance: 'Add Capability' button have added capability to the WordPress built-in administrator role by default. It did not work, if 'administrator' role did not exist.
148
- Now script selects automatically as an admin role a role with the largest quant of capabilities and adds new capability to the selected role.
149
- * New: User capabilities page was integrated with "[User Switching](https://wordpress.org/plugins/user-switching/)" plugin - "Switch To" the editing user link iss added if "User Switching" plugin is available.
150
- * Marked as compatible with WordPress 4.5.
151
-
152
- = [4.23.2] 03.02.2016 =
153
- * Fix: PHP warning "Strict Standards: Static function URE_Base_Lib::get_instance() should not be abstract" was generated
154
-
155
- = [4.23.1] 01.02.2016 =
156
- * Fix: 'get_called_class()' function call was excluded for the compatibility with PHP 5.2.*
157
- * Fix: ure-users.js was loaded not only to the 'Users' page.
158
-
159
- = [4.23] 31.01.2016 =
160
- * Fix: "Users - Without Role" button showed empty roles drop down list on the 1st call.
161
- * Update: Own task queue was added, so code which should executed once after plugin activation is executed by the next request to WP and may use a selected WordPress action to fire with a needed priority.
162
- * Update: Call of deprecated mysql_server_info() is replaced with $wpdb->db_version().
163
- * Update: Singleton patern is applied to the URE_Lib class.
164
- * Minor code enhancements
165
-
166
- = [4.22] 15.01.2016 =
167
- * Unused 'add_users' capability was removed from the list of core capabilities as it was removed from WordPress starting from version 4.4
168
- * bbPress user capabilities are supported for use in the non-bbPress roles. You can not edit roles created by bbPress, as bbPress re-creates them dynamically for every request to the server. Full support for bbPress roles editing will be included into User Role Editor Pro version 4.22.
169
- * Self-added "Other Roles" column removed from "Users" list, as WordPress started to show all roles assigned to the user in its own "Role" column.
170
- * 'ure_show_additional_capabilities_section' filter allows to hide 'Other Roles' section at the 'Add new user', 'Edit user' pages.
171
-
172
 
173
  Click [here](https://www.role-editor.com/changelog)</a> to look at [the full list of changes](https://www.role-editor.com/changelog) of User Role Editor plugin.
174
 
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.7
7
+ Stable tag: 4.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
76
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
77
 
78
  == Changelog ==
79
+ = [4.31] 14.12.2016 =
80
+ * New: It's possible to remove unused user capabilities by list.
81
+ * Fix: There was no support for installations with the hidden/changed URL to wp-admin. URE uses 'admin_url()' now to get and check admin URL, instead of direct comparing URL with 'wp-admin' string.
82
+ * Fix: Deprecated capabilities were shown in some cases at the 'Core' group even with "Show deprecated capabilities" mode switched off.
83
+ * Update: Capability groups CSS classes are prefixed with 'ure-' in order to the minimize possible CSS conflicts with other plugins/themes which may load styles with the same classes globally and break URE's markup.
84
+
85
  = [4.30] 01.12.2016 =
86
  * Update: compatible with WordPress 4.7
87
  * New: "Granted Only" checkbox to the right from the "Quick Filter" input control allows to show only granted capabilities for the selected role or user.
148
  * Fix: PHP fatal error (line 34) was raised at uninstall.php for WordPress multisite.
149
  * Update: action priority 99 was added for role additional options hook action setup.
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
  Click [here](https://www.role-editor.com/changelog)</a> to look at [the full list of changes](https://www.role-editor.com/changelog) of User Role Editor plugin.
153
 
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: https://www.role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
- Version: 4.30
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.30');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
3
  Plugin Name: User Role Editor
4
  Plugin URI: https://www.role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
+ Version: 4.31
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
+ define('URE_VERSION', '4.31');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));