User Role Editor - Version 4.51

Version Description

Download this release

Release Info

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

Code changes from version 4.50.2 to 4.51

changelog.txt CHANGED
@@ -1,6 +1,12 @@
1
  CHANGES LOG (full version).
2
  ===========================
3
 
 
 
 
 
 
 
4
  = [4.50.2] 01.04.2019 =
5
  * Fix: WordPress multisite: PHP Notice "wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead." was removed. URE uses 'wp_initialize_site' action now instead of deprecated 'wpmu_new_blog'. This fix provides correct roles replication from the main blog/site to a new created blog/site.
6
 
1
  CHANGES LOG (full version).
2
  ===========================
3
 
4
+ = [4.51] 21.05.2019 =
5
+ * New: Bulk actions were added to the Users page: "Add Role", "Revoke Role". Select role from the related drop-down menu and add/revoke it to/from the list of pre-selected users.
6
+ * Update: Bulk grant roles feature ("Grant roles" button at the "Users" page) and Bulk grant role to users without role ("Without role" button at the "Users" page) are protected by 'promote_users' capability instead of 'edit_users', exactly the same way as WordPress itself does for its "Change role to".
7
+ * Update: 'load-users.php' action is used instead of 'admin_init' to load support code for "Without role" and "Grant roles" button at the "Users" page.
8
+ * Update: URE ignores now a capability without ID in case it was added to the database somehow (other plugin bug, etc.). Such incorrect empty capability is removed from the capabilities list as a result after any role update.
9
+
10
  = [4.50.2] 01.04.2019 =
11
  * Fix: WordPress multisite: PHP Notice "wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead." was removed. URE uses 'wp_initialize_site' action now instead of deprecated 'wpmu_new_blog'. This fix provides correct roles replication from the main blog/site to a new created blog/site.
12
 
includes/classes/ajax-processor.php CHANGED
@@ -43,7 +43,7 @@ class URE_Ajax_Processor {
43
  protected function get_required_cap() {
44
 
45
  if ($this->action=='grant_roles' || $this->action=='get_user_roles') {
46
- $cap = 'edit_users';
47
  } else {
48
  $cap = URE_Own_Capabilities::get_key_capability();
49
  }
43
  protected function get_required_cap() {
44
 
45
  if ($this->action=='grant_roles' || $this->action=='get_user_roles') {
46
+ $cap = 'promote_users';
47
  } else {
48
  $cap = URE_Own_Capabilities::get_key_capability();
49
  }
includes/classes/grant-roles.php CHANGED
@@ -7,6 +7,7 @@
7
  * License: GPL v2+
8
  *
9
  * Assign multiple roles to the list of selected users directly from the "Users" page
 
10
  */
11
 
12
  class URE_Grant_Roles {
@@ -21,15 +22,26 @@ class URE_Grant_Roles {
21
 
22
  $this->lib = URE_Lib::get_instance();
23
 
24
- add_action('restrict_manage_users', array($this, 'show_grant_roles_html'));
25
- add_action('admin_head', array(User_Role_Editor::get_instance(), 'add_css_to_users_page'));
26
- add_action('admin_enqueue_scripts', array($this, 'load_js'));
27
 
28
  }
29
  // end of __construct()
30
 
31
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  private static function validate_users($users) {
 
33
  if (!is_array($users)) {
34
  return false;
35
  }
@@ -38,9 +50,14 @@ class URE_Grant_Roles {
38
  if (!is_numeric($user_id)) {
39
  return false;
40
  }
41
- if (!current_user_can('edit_user', $user_id)) {
42
  return false;
43
  }
 
 
 
 
 
44
  }
45
 
46
  return true;
@@ -48,6 +65,131 @@ class URE_Grant_Roles {
48
  // end of validate_users()
49
 
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  private static function validate_roles($roles) {
52
 
53
  if (!is_array($roles)) {
@@ -150,7 +292,7 @@ class URE_Grant_Roles {
150
 
151
  public static function grant_roles() {
152
 
153
- if (!current_user_can('edit_users')) {
154
  $answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
155
  return $answer;
156
  }
@@ -196,7 +338,7 @@ class URE_Grant_Roles {
196
 
197
  public static function get_user_roles() {
198
 
199
- if (!current_user_can('edit_users')) {
200
  $answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
201
  return $answer;
202
  }
@@ -274,17 +416,44 @@ class URE_Grant_Roles {
274
  // end of select_other_roles_html()
275
 
276
 
277
- public function show_grant_roles_html() {
278
- if (!$this->lib->is_right_admin_path('users.php')) {
279
- return;
280
- }
281
- if (!current_user_can('edit_users')) {
 
 
 
 
 
 
 
 
 
282
  return;
283
  }
284
  $button_number = (self::$counter>0) ? '_2': '';
 
285
  ?>
286
- &nbsp;&nbsp;<input type="button" name="ure_grant_roles<?php echo $button_number;?>" id="ure_grant_roles<?php echo $button_number;?>" class="button"
287
- value="<?php esc_html_e('Grant Roles', 'user-role-editor');?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  <?php
289
  if (self::$counter==0) {
290
  ?>
@@ -306,12 +475,6 @@ class URE_Grant_Roles {
306
 
307
 
308
  public function load_js() {
309
- if (isset($_GET['page'])) {
310
- return;
311
- }
312
- if (!$this->lib->is_right_admin_path('users.php')) {
313
- return;
314
- }
315
 
316
  $show_wp_change_role = apply_filters('ure_users_show_wp_change_role', true);
317
 
7
  * License: GPL v2+
8
  *
9
  * Assign multiple roles to the list of selected users directly from the "Users" page
10
+ * Grant/Revoke single role to/from selected users
11
  */
12
 
13
  class URE_Grant_Roles {
22
 
23
  $this->lib = URE_Lib::get_instance();
24
 
25
+ add_action( 'load-users.php', array( $this, 'load' ) );
 
 
26
 
27
  }
28
  // end of __construct()
29
 
30
 
31
+ public function load() {
32
+
33
+ add_action('restrict_manage_users', array($this, 'show_roles_manage_html') );
34
+ add_action('admin_head', array(User_Role_Editor::get_instance(), 'add_css_to_users_page') );
35
+ add_action('admin_enqueue_scripts', array($this, 'load_js') );
36
+
37
+ $this->update_roles();
38
+
39
+ }
40
+ // end of load()
41
+
42
+
43
  private static function validate_users($users) {
44
+
45
  if (!is_array($users)) {
46
  return false;
47
  }
50
  if (!is_numeric($user_id)) {
51
  return false;
52
  }
53
+ if ( !current_user_can( 'promote_user', $user_id ) ) {
54
  return false;
55
  }
56
+
57
+ if ( is_multisite() && !is_user_member_of_blog( $user_id ) ) {
58
+ return false;
59
+ }
60
+
61
  }
62
 
63
  return true;
65
  // end of validate_users()
66
 
67
 
68
+ private function add_role( $users ) {
69
+
70
+ if ( !empty( $_REQUEST['ure_add_role'] ) ) {
71
+ $role = $_REQUEST['ure_add_role'];
72
+ } else {
73
+ $role = $_REQUEST['ure_add_role_2'];
74
+ }
75
+
76
+ if ( !self::validate_roles( array($role=>$role) ) ) {
77
+ return;
78
+ }
79
+
80
+ $done = false;
81
+ foreach( $users as $user_id ) {
82
+ $user = get_user_by( 'id', $user_id );
83
+ if (empty( $user ) ) {
84
+ continue;
85
+ }
86
+ if ( empty($user->roles) || !in_array( $role, $user->roles ) ) {
87
+ $user->add_role( $role );
88
+ $done = true;
89
+ }
90
+ }
91
+
92
+ if ( $done ) {
93
+ // Redirect to the users screen.
94
+ if ( wp_redirect( add_query_arg( 'update', 'promote', 'users.php' ) ) ) {
95
+ exit;
96
+ }
97
+ }
98
+ }
99
+ // end of add_role()
100
+
101
+
102
+ private function is_try_remove_admin_from_himself( $user_id, $role) {
103
+
104
+ $result = false;
105
+
106
+ $current_user = wp_get_current_user();
107
+ $wp_roles = wp_roles();
108
+ $role_caps = array_keys( $wp_roles->roles[$role]['capabilities'] );
109
+ $is_current_user = ( $user_id == $current_user->ID );
110
+ $role_can_promote = in_array('promote_users', $role_caps);
111
+ $can_manage_network = is_multisite() && current_user_can( 'manage_network_users' );
112
+
113
+ // If the removed role has the `promote_users` cap and user is removing it from himself
114
+ if ( $is_current_user && $role_can_promote && !$can_manage_network ) {
115
+ $result = true;
116
+
117
+ // Loop through the current user's roles.
118
+ foreach ($current_user->roles as $_role) {
119
+ $_role_caps = array_keys( $wp_roles->roles[$_role]['capabilities'] );
120
+ // If the current user has another role that can promote users, it's safe to remove the role. Else, the current user should to keep this role.
121
+ if ( ($role!==$_role) && in_array( 'promote_users', $_role_caps ) ) {
122
+ $result = false;
123
+ break;
124
+ }
125
+ }
126
+
127
+ }
128
+
129
+ return $result;
130
+ }
131
+
132
+
133
+ private function revoke_role( $users ) {
134
+
135
+ if ( !empty( $_REQUEST['ure_revoke_role'] ) ) {
136
+ $role = $_REQUEST['ure_revoke_role'];
137
+ } else {
138
+ $role = $_REQUEST['ure_revoke_role_2'];
139
+ }
140
+
141
+ if ( !self::validate_roles( array($role=>$role) ) ) {
142
+ return;
143
+ }
144
+
145
+ $done = false;
146
+ foreach( $users as $user_id ) {
147
+ $user = get_user_by( 'id', $user_id );
148
+ if (empty( $user ) ) {
149
+ continue;
150
+ }
151
+ if ($this->is_try_remove_admin_from_himself( $user_id, $role ) ) {
152
+ continue;
153
+ }
154
+ if ( is_array($user->roles) && in_array( $role, $user->roles ) ) {
155
+ $user->remove_role( $role );
156
+ $done = true;
157
+ }
158
+ }
159
+ if ( $done ) {
160
+ if ( wp_redirect( add_query_arg( 'update', 'promote', 'users.php' ) ) ) {
161
+ exit;
162
+ }
163
+ }
164
+ }
165
+ // end of revoke_role()
166
+
167
+
168
+ private function update_roles() {
169
+
170
+ if ( empty( $_REQUEST['users'] ) ) {
171
+ return;
172
+ }
173
+
174
+ if ( !current_user_can('promote_users') ) {
175
+ return;
176
+ }
177
+ $users = (array) $_REQUEST['users'];
178
+ if ( !self::validate_users( $users ) ) {
179
+ return;
180
+ }
181
+
182
+ if ( ( !empty( $_REQUEST['ure_add_role'] ) && !empty( $_REQUEST['ure_add_role_submit']) ) ||
183
+ ( !empty( $_REQUEST['ure_add_role_2'] ) && !empty( $_REQUEST['ure_add_role_submit_2'] ) ) ) {
184
+ $this->add_role( $users );
185
+ } else if ( ( !empty( $_REQUEST['ure_revoke_role'] ) && !empty( $_REQUEST['ure_revoke_role_submit'] ) ) ||
186
+ ( !empty( $_REQUEST['ure_revoke_role_2'] ) && !empty( $_REQUEST['ure_revoke_role_submit_2'] ) ) ) {
187
+ $this->revoke_role( $users );
188
+ }
189
+ }
190
+ // end of update_roles()
191
+
192
+
193
  private static function validate_roles($roles) {
194
 
195
  if (!is_array($roles)) {
292
 
293
  public static function grant_roles() {
294
 
295
+ if ( !current_user_can('promote_users') ) {
296
  $answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
297
  return $answer;
298
  }
338
 
339
  public static function get_user_roles() {
340
 
341
+ if ( !current_user_can( 'promote_users' ) ) {
342
  $answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
343
  return $answer;
344
  }
416
  // end of select_other_roles_html()
417
 
418
 
419
+ private function get_roles_options_list() {
420
+
421
+ ob_start();
422
+ wp_dropdown_roles();
423
+ $output = ob_get_clean();
424
+
425
+ return $output;
426
+ }
427
+ // end of get_roles_options_list()
428
+
429
+
430
+ public function show_roles_manage_html() {
431
+
432
+ if ( !current_user_can( 'promote_users' ) ) {
433
  return;
434
  }
435
  $button_number = (self::$counter>0) ? '_2': '';
436
+ $roles_options_list = self::get_roles_options_list();
437
  ?>
438
+ &nbsp;&nbsp;
439
+ <input type="button" name="ure_grant_roles<?php echo $button_number;?>" id="ure_grant_roles<?php echo $button_number;?>" class="button"
440
+ value="<?php esc_html_e('Grant Roles', 'user-role-editor');?>">
441
+ &nbsp;&nbsp;
442
+ <label class="screen-reader-text" for="ure_add_role<?php echo $button_number;?>"><?php esc_html_e( 'Add role&hellip;', 'user-role-editor' ); ?></label>
443
+ <select name="ure_add_role<?php echo $button_number;?>" id="ure_add_role<?php echo $button_number;?>" style="display: inline-block; float: none;">
444
+ <option value=""><?php esc_html_e( 'Add role&hellip;', 'user-role-editor' ); ?></option>
445
+ <?php echo $roles_options_list; ?>
446
+ </select>
447
+ <?php submit_button( esc_html__( 'Add', 'user-role-editor' ), 'secondary', 'ure_add_role_submit'.$button_number, false ); ?>
448
+ &nbsp;&nbsp;
449
+ <label class="screen-reader-text" for="ure_revoke_role<?php echo $button_number;?>"><?php esc_html_e( 'Revoke role&hellip;', 'user-role-editor' ); ?></label>
450
+ <select name="ure_revoke_role<?php echo $button_number;?>" id="ure_revoke_role<?php echo $button_number;?>" style="display: inline-block; float: none;">
451
+ <option value=""><?php esc_html_e( 'Revoke role&hellip;', 'user-role-editor' ); ?></option>
452
+ <?php echo $roles_options_list; ?>
453
+ </select>
454
+ <?php submit_button( esc_html__( 'Revoke', 'user-role-editor' ), 'secondary', 'ure_revoke_role_submit'.$button_number, false ); ?>
455
+
456
+
457
  <?php
458
  if (self::$counter==0) {
459
  ?>
475
 
476
 
477
  public function load_js() {
 
 
 
 
 
 
478
 
479
  $show_wp_change_role = apply_filters('ure_users_show_wp_change_role', true);
480
 
includes/classes/user-role-editor.php CHANGED
@@ -147,6 +147,16 @@ class User_Role_Editor {
147
  // end of is_pro()
148
 
149
 
 
 
 
 
 
 
 
 
 
 
150
  /**
151
  * Plugin initialization
152
  *
@@ -182,9 +192,7 @@ class User_Role_Editor {
182
  } else {
183
  $count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
184
  if ($count_users_without_role) {
185
- add_action('restrict_manage_users', array($this, 'move_users_from_no_role_button'));
186
- add_action('admin_head', array($this, 'add_css_to_users_page'));
187
- add_action('admin_footer', array($this, 'add_js_to_users_page'));
188
  }
189
  }
190
 
@@ -235,12 +243,9 @@ class User_Role_Editor {
235
  // end of allow_add_user_as_superadmin()
236
 
237
 
238
- public function move_users_from_no_role_button() {
239
 
240
- if (!$this->lib->is_right_admin_path('users.php')) {
241
- return;
242
- }
243
- if (!current_user_can('edit_users')) {
244
  return;
245
  }
246
 
@@ -249,33 +254,19 @@ class User_Role_Editor {
249
 
250
  }
251
  // end of move_users_from_no_role()
252
-
253
 
254
  public function add_css_to_users_page() {
255
 
256
- if (isset($_GET['page'])) {
257
- return;
258
- }
259
- if (!$this->lib->is_right_admin_path('users.php')) {
260
- return;
261
- }
262
-
263
- wp_enqueue_style('wp-jquery-ui-dialog');
264
- wp_enqueue_style('ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen');
265
 
266
  }
267
  // end of add_css_to_users_page()
268
 
269
 
270
  public function add_js_to_users_page() {
271
-
272
- if (isset($_GET['page'])) {
273
- return;
274
- }
275
- if (!$this->lib->is_right_admin_path('users.php')) {
276
- return;
277
- }
278
-
279
  wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core','jquery-ui-button', 'jquery') );
280
  wp_register_script( 'ure-users', plugins_url( '/js/users.js', URE_PLUGIN_FULL_PATH ) );
281
  wp_enqueue_script ( 'ure-users' );
147
  // end of is_pro()
148
 
149
 
150
+ public function load_users_page() {
151
+
152
+ add_action('restrict_manage_users', array($this, 'show_move_users_from_no_role_button'));
153
+ add_action('admin_head', array($this, 'add_css_to_users_page'));
154
+ add_action('admin_footer', array($this, 'add_js_to_users_page'));
155
+
156
+ }
157
+ // end of load_users_page()
158
+
159
+
160
  /**
161
  * Plugin initialization
162
  *
192
  } else {
193
  $count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
194
  if ($count_users_without_role) {
195
+ add_action( 'load-users.php', array($this, 'load_users_page') );
 
 
196
  }
197
  }
198
 
243
  // end of allow_add_user_as_superadmin()
244
 
245
 
246
+ public function show_move_users_from_no_role_button() {
247
 
248
+ if ( !current_user_can( 'promote_users' ) ) {
 
 
 
249
  return;
250
  }
251
 
254
 
255
  }
256
  // end of move_users_from_no_role()
257
+
258
 
259
  public function add_css_to_users_page() {
260
 
261
+ wp_enqueue_style( 'wp-jquery-ui-dialog' );
262
+ wp_enqueue_style( 'ure-admin-css', URE_PLUGIN_URL . 'css/ure-admin.css', array(), false, 'screen' );
 
 
 
 
 
 
 
263
 
264
  }
265
  // end of add_css_to_users_page()
266
 
267
 
268
  public function add_js_to_users_page() {
269
+
 
 
 
 
 
 
 
270
  wp_enqueue_script('jquery-ui-dialog', '', array('jquery-ui-core','jquery-ui-button', 'jquery') );
271
  wp_register_script( 'ure-users', plugins_url( '/js/users.js', URE_PLUGIN_FULL_PATH ) );
272
  wp_enqueue_script ( 'ure-users' );
js/ure.js CHANGED
@@ -545,6 +545,9 @@ function ure_refresh_role_view(response) {
545
  ure_current_role_name = response.role_name;
546
  // Select capabilities granted to a newly selected role and exclude others
547
  jQuery('.ure-cap-cb').each(function () { // go through all capabilities checkboxes
 
 
 
548
  jQuery(this).prop('checked', response.caps.hasOwnProperty(this.id) && response.caps[this.id]);
549
  if ( ure_data.do_not_revoke_from_admin ) {
550
  var el = document.getElementById(this.id);
545
  ure_current_role_name = response.role_name;
546
  // Select capabilities granted to a newly selected role and exclude others
547
  jQuery('.ure-cap-cb').each(function () { // go through all capabilities checkboxes
548
+ if (this.id.length===0) {
549
+ return;
550
+ }
551
  jQuery(this).prop('checked', response.caps.hasOwnProperty(this.id) && response.caps[this.id]);
552
  if ( ure_data.do_not_revoke_from_admin ) {
553
  var el = document.getElementById(this.id);
lang/user-role-editor.pot CHANGED
@@ -1,9 +1,9 @@
1
  #, fuzzy
2
  msgid ""
3
  msgstr ""
4
- "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-11-12 09:17+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"
@@ -22,8 +22,9 @@ msgid "Custom Post Types"
22
  msgstr ""
23
 
24
  #: ../includes/classes/capabilities-groups-manager.php:75
25
- #: ../includes/classes/lib.php:234 ../includes/classes/user-role-editor.php:557
26
- #: ../includes/classes/user-role-editor.php:588
 
27
  msgid "User Role Editor"
28
  msgstr ""
29
 
@@ -41,7 +42,7 @@ msgid "All"
41
  msgstr ""
42
 
43
  #: ../includes/classes/capabilities-groups-manager.php:112
44
- #: ../includes/classes/user-role-editor.php:529
45
  #: ../includes/settings-template.php:20
46
  msgid "General"
47
  msgstr ""
@@ -67,7 +68,7 @@ msgid "Users"
67
  msgstr ""
68
 
69
  #: ../includes/classes/capabilities-groups-manager.php:121
70
- #: ../includes/classes/user-role-editor.php:547
71
  #: ../includes/settings-template.php:36
72
  msgid "Multisite"
73
  msgstr ""
@@ -92,29 +93,30 @@ msgstr ""
92
  msgid "Error: this word is used by WordPress as a role ID"
93
  msgstr ""
94
 
95
- #: ../includes/classes/capability.php:79 ../includes/classes/capability.php:190
96
- #: ../includes/classes/lib.php:1161 ../includes/classes/lib.php:1405
97
- #: ../includes/classes/lib.php:1520 ../includes/classes/lib.php:1567
98
- #: ../includes/classes/user-role-editor.php:641
 
99
  msgid "Insufficient permissions to work with User Role Editor"
100
  msgstr ""
101
 
102
- #: ../includes/classes/capability.php:101
103
  #, php-format
104
  msgid "Capability %s was added successfully"
105
  msgstr ""
106
 
107
- #: ../includes/classes/capability.php:103
108
  #, php-format
109
  msgid "Capability %s exists already"
110
  msgstr ""
111
 
112
- #: ../includes/classes/capability.php:197
113
- #: ../includes/classes/capability.php:202
114
  msgid "There are no capabilities available for deletion!"
115
  msgstr ""
116
 
117
- #: ../includes/classes/capability.php:208
118
  #, php-format
119
  msgid "Capability %s was removed successfully"
120
  msgstr ""
@@ -123,471 +125,508 @@ msgstr ""
123
  msgid "capabilities were removed successfully"
124
  msgstr ""
125
 
126
- #: ../includes/classes/grant-roles.php:153
127
- #: ../includes/classes/grant-roles.php:199
128
- msgid "Not enough permissions"
129
- msgstr ""
130
-
131
- #: ../includes/classes/grant-roles.php:159
132
- msgid "Can not edit user or invalid data at the users list"
133
- msgstr ""
134
-
135
- #: ../includes/classes/grant-roles.php:167
136
- msgid "Invalid primary role"
137
- msgstr ""
138
-
139
- #: ../includes/classes/grant-roles.php:180
140
- msgid "Invalid data at the other roles list"
141
- msgstr ""
142
-
143
- #: ../includes/classes/grant-roles.php:189
144
- msgid "Roles were granted to users successfully"
145
- msgstr ""
146
-
147
- #: ../includes/classes/grant-roles.php:206
148
- msgid "Wrong request, valid user ID was missed"
149
- msgstr ""
150
-
151
- #: ../includes/classes/grant-roles.php:212
152
- msgid "Requested user does not exist"
153
- msgstr ""
154
-
155
- #: ../includes/classes/grant-roles.php:235
156
- msgid "Primary Role: "
157
- msgstr ""
158
-
159
- #: ../includes/classes/grant-roles.php:241 ../includes/classes/user-view.php:98
160
- msgid "&mdash; No role for this site &mdash;"
161
- msgstr ""
162
-
163
- #: ../includes/classes/grant-roles.php:255
164
- msgid "Other Roles: "
165
- msgstr ""
166
-
167
- #: ../includes/classes/grant-roles.php:286
168
- msgid "Grant Roles"
169
- msgstr ""
170
-
171
- #: ../includes/classes/grant-roles.php:322
172
- msgid "Grant roles to selected users"
173
- msgstr ""
174
-
175
- #: ../includes/classes/grant-roles.php:323
176
- msgid "Select users to which you wish to grant roles!"
177
- msgstr ""
178
-
179
- #: ../includes/classes/grant-roles.php:324
180
- msgid "Select role(s) which you wish to grant!"
181
- msgstr ""
182
-
183
- #: ../includes/classes/lib.php:211
184
- msgid "Error: wrong request"
185
  msgstr ""
186
 
187
- #: ../includes/classes/lib.php:295
188
- msgid "Error: "
189
  msgstr ""
190
 
191
- #: ../includes/classes/lib.php:295
192
  msgid "Role"
193
  msgstr ""
194
 
195
- #: ../includes/classes/lib.php:296
196
  msgid "does not exist"
197
  msgstr ""
198
 
199
- #: ../includes/classes/lib.php:358
200
  msgid "Role is updated successfully"
201
  msgstr ""
202
 
203
- #: ../includes/classes/lib.php:360
204
  msgid "Roles are updated for all network"
205
  msgstr ""
206
 
207
- #: ../includes/classes/lib.php:366
208
  msgid "Error occurred during role(s) update"
209
  msgstr ""
210
 
211
- #: ../includes/classes/lib.php:373
212
  msgid "User capabilities are updated successfully"
213
  msgstr ""
214
 
215
- #: ../includes/classes/lib.php:378
216
  msgid "Error occurred during user update"
217
  msgstr ""
218
 
219
- #: ../includes/classes/lib.php:436
220
- msgid "User Roles are restored to WordPress default values. "
221
  msgstr ""
222
 
223
- #: ../includes/classes/lib.php:1414 ../includes/classes/lib.php:1480
224
  msgid ""
225
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
226
  "only!"
227
  msgstr ""
228
 
229
- #: ../includes/classes/lib.php:1418 ../includes/classes/lib.php:1484
230
  msgid ""
231
  "Error: WordPress does not support numeric Role name (ID). Add latin "
232
  "characters to it."
233
  msgstr ""
234
 
235
- #: ../includes/classes/lib.php:1433
236
  #, php-format
237
  msgid "Role %s exists already"
238
  msgstr ""
239
 
240
- #: ../includes/classes/lib.php:1448
241
  msgid "Error is encountered during new role create operation"
242
  msgstr ""
243
 
244
- #: ../includes/classes/lib.php:1450
245
  #, php-format
246
  msgid "Role %s is created successfully"
247
  msgstr ""
248
 
249
- #: ../includes/classes/lib.php:1473
250
- msgid "Error: Role ID is empty!"
251
- msgstr ""
252
-
253
- #: ../includes/classes/lib.php:1491
254
  msgid "Error: Empty role display name is not allowed."
255
  msgstr ""
256
 
257
- #: ../includes/classes/lib.php:1498
258
  #, php-format
259
  msgid "Role %s does not exists"
260
  msgstr ""
261
 
262
- #: ../includes/classes/lib.php:1506
263
  #, php-format
264
  msgid "Role %s is renamed to %s successfully"
265
  msgstr ""
266
 
267
- #: ../includes/classes/lib.php:1578
268
- msgid "Error encountered during role delete operation"
 
 
 
 
 
 
 
 
269
  msgstr ""
270
 
271
- #: ../includes/classes/lib.php:1580
272
  msgid "Unused roles are deleted successfully"
273
  msgstr ""
274
 
275
- #: ../includes/classes/lib.php:1582
276
  #, php-format
277
  msgid "Role %s is deleted successfully"
278
  msgstr ""
279
 
280
- #: ../includes/classes/lib.php:1615
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  #, php-format
282
  msgid "Default role for new users is set to %s successfully"
283
  msgstr ""
284
 
285
- #: ../includes/classes/lib.php:1617
286
  msgid "Error encountered during default role change operation"
287
  msgstr ""
288
 
289
- #: ../includes/classes/lib.php:1620
290
  msgid "Can not set Administrator role as a default one"
291
  msgstr ""
292
 
293
- #: ../includes/classes/lib.php:1622
294
  msgid "This role does not exist - "
295
  msgstr ""
296
 
297
- #: ../includes/classes/lib.php:1638
 
 
 
 
 
 
 
 
298
  msgid "Editor"
299
  msgstr ""
300
 
301
- #: ../includes/classes/lib.php:1639
302
  msgid "Author"
303
  msgstr ""
304
 
305
- #: ../includes/classes/lib.php:1640
306
  msgid "Contributor"
307
  msgstr ""
308
 
309
- #: ../includes/classes/lib.php:1641
310
  msgid "Subscriber"
311
  msgstr ""
312
 
313
- #: ../includes/classes/lib.php:1643
314
  msgid "Switch themes"
315
  msgstr ""
316
 
317
- #: ../includes/classes/lib.php:1644
318
  msgid "Edit themes"
319
  msgstr ""
320
 
321
- #: ../includes/classes/lib.php:1645
322
  msgid "Activate plugins"
323
  msgstr ""
324
 
325
- #: ../includes/classes/lib.php:1646
326
  msgid "Edit plugins"
327
  msgstr ""
328
 
329
- #: ../includes/classes/lib.php:1647
330
  msgid "Edit users"
331
  msgstr ""
332
 
333
- #: ../includes/classes/lib.php:1648
334
  msgid "Edit files"
335
  msgstr ""
336
 
337
- #: ../includes/classes/lib.php:1649
338
  msgid "Manage options"
339
  msgstr ""
340
 
341
- #: ../includes/classes/lib.php:1650
342
  msgid "Moderate comments"
343
  msgstr ""
344
 
345
- #: ../includes/classes/lib.php:1651
346
  msgid "Manage categories"
347
  msgstr ""
348
 
349
- #: ../includes/classes/lib.php:1652
350
  msgid "Manage links"
351
  msgstr ""
352
 
353
- #: ../includes/classes/lib.php:1653
354
  msgid "Upload files"
355
  msgstr ""
356
 
357
- #: ../includes/classes/lib.php:1654
358
  msgid "Import"
359
  msgstr ""
360
 
361
- #: ../includes/classes/lib.php:1655
362
  msgid "Unfiltered html"
363
  msgstr ""
364
 
365
- #: ../includes/classes/lib.php:1656
366
  msgid "Edit posts"
367
  msgstr ""
368
 
369
- #: ../includes/classes/lib.php:1657
370
  msgid "Edit others posts"
371
  msgstr ""
372
 
373
- #: ../includes/classes/lib.php:1658
374
  msgid "Edit published posts"
375
  msgstr ""
376
 
377
- #: ../includes/classes/lib.php:1659
378
  msgid "Publish posts"
379
  msgstr ""
380
 
381
- #: ../includes/classes/lib.php:1660
382
  msgid "Edit pages"
383
  msgstr ""
384
 
385
- #: ../includes/classes/lib.php:1661
386
  msgid "Read"
387
  msgstr ""
388
 
389
- #: ../includes/classes/lib.php:1662
390
  msgid "Level 10"
391
  msgstr ""
392
 
393
- #: ../includes/classes/lib.php:1663
394
  msgid "Level 9"
395
  msgstr ""
396
 
397
- #: ../includes/classes/lib.php:1664
398
  msgid "Level 8"
399
  msgstr ""
400
 
401
- #: ../includes/classes/lib.php:1665
402
  msgid "Level 7"
403
  msgstr ""
404
 
405
- #: ../includes/classes/lib.php:1666
406
  msgid "Level 6"
407
  msgstr ""
408
 
409
- #: ../includes/classes/lib.php:1667
410
  msgid "Level 5"
411
  msgstr ""
412
 
413
- #: ../includes/classes/lib.php:1668
414
  msgid "Level 4"
415
  msgstr ""
416
 
417
- #: ../includes/classes/lib.php:1669
418
  msgid "Level 3"
419
  msgstr ""
420
 
421
- #: ../includes/classes/lib.php:1670
422
  msgid "Level 2"
423
  msgstr ""
424
 
425
- #: ../includes/classes/lib.php:1671
426
  msgid "Level 1"
427
  msgstr ""
428
 
429
- #: ../includes/classes/lib.php:1672
430
  msgid "Level 0"
431
  msgstr ""
432
 
433
- #: ../includes/classes/lib.php:1673
434
  msgid "Edit others pages"
435
  msgstr ""
436
 
437
- #: ../includes/classes/lib.php:1674
438
  msgid "Edit published pages"
439
  msgstr ""
440
 
441
- #: ../includes/classes/lib.php:1675
442
  msgid "Publish pages"
443
  msgstr ""
444
 
445
- #: ../includes/classes/lib.php:1676
446
  msgid "Delete pages"
447
  msgstr ""
448
 
449
- #: ../includes/classes/lib.php:1677
450
  msgid "Delete others pages"
451
  msgstr ""
452
 
453
- #: ../includes/classes/lib.php:1678
454
  msgid "Delete published pages"
455
  msgstr ""
456
 
457
- #: ../includes/classes/lib.php:1679
458
  msgid "Delete posts"
459
  msgstr ""
460
 
461
- #: ../includes/classes/lib.php:1680
462
  msgid "Delete others posts"
463
  msgstr ""
464
 
465
- #: ../includes/classes/lib.php:1681
466
  msgid "Delete published posts"
467
  msgstr ""
468
 
469
- #: ../includes/classes/lib.php:1682
470
  msgid "Delete private posts"
471
  msgstr ""
472
 
473
- #: ../includes/classes/lib.php:1683
474
  msgid "Edit private posts"
475
  msgstr ""
476
 
477
- #: ../includes/classes/lib.php:1684
478
  msgid "Read private posts"
479
  msgstr ""
480
 
481
- #: ../includes/classes/lib.php:1685
482
  msgid "Delete private pages"
483
  msgstr ""
484
 
485
- #: ../includes/classes/lib.php:1686
486
  msgid "Edit private pages"
487
  msgstr ""
488
 
489
- #: ../includes/classes/lib.php:1687
490
  msgid "Read private pages"
491
  msgstr ""
492
 
493
- #: ../includes/classes/lib.php:1688
494
  msgid "Delete users"
495
  msgstr ""
496
 
497
- #: ../includes/classes/lib.php:1689
498
  msgid "Create users"
499
  msgstr ""
500
 
501
- #: ../includes/classes/lib.php:1690
502
  msgid "Unfiltered upload"
503
  msgstr ""
504
 
505
- #: ../includes/classes/lib.php:1691
506
  msgid "Edit dashboard"
507
  msgstr ""
508
 
509
- #: ../includes/classes/lib.php:1692
510
  msgid "Update plugins"
511
  msgstr ""
512
 
513
- #: ../includes/classes/lib.php:1693
514
  msgid "Delete plugins"
515
  msgstr ""
516
 
517
- #: ../includes/classes/lib.php:1694
518
  msgid "Install plugins"
519
  msgstr ""
520
 
521
- #: ../includes/classes/lib.php:1695
522
  msgid "Update themes"
523
  msgstr ""
524
 
525
- #: ../includes/classes/lib.php:1696
526
  msgid "Install themes"
527
  msgstr ""
528
 
529
- #: ../includes/classes/lib.php:1697
530
  msgid "Update core"
531
  msgstr ""
532
 
533
- #: ../includes/classes/lib.php:1698
534
  msgid "List users"
535
  msgstr ""
536
 
537
- #: ../includes/classes/lib.php:1699
538
  msgid "Remove users"
539
  msgstr ""
540
 
541
- #: ../includes/classes/lib.php:1700
542
  msgid "Add users"
543
  msgstr ""
544
 
545
- #: ../includes/classes/lib.php:1701
546
  msgid "Promote users"
547
  msgstr ""
548
 
549
- #: ../includes/classes/lib.php:1702
550
  msgid "Edit theme options"
551
  msgstr ""
552
 
553
- #: ../includes/classes/lib.php:1703
554
  msgid "Delete themes"
555
  msgstr ""
556
 
557
- #: ../includes/classes/lib.php:1704
558
  msgid "Export"
559
  msgstr ""
560
 
561
- #: ../includes/classes/lib.php:1878
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  msgid "Version:"
563
  msgstr ""
564
 
565
- #: ../includes/classes/lib.php:1879
566
  msgid "Author's website"
567
  msgstr ""
568
 
569
- #: ../includes/classes/lib.php:1880
570
  msgid "Plugin webpage"
571
  msgstr ""
572
 
573
- #: ../includes/classes/lib.php:1881
574
  msgid "Plugin download"
575
  msgstr ""
576
 
577
- #: ../includes/classes/lib.php:1882
578
- #: ../includes/classes/user-role-editor.php:506
579
  msgid "Changelog"
580
  msgstr ""
581
 
582
- #: ../includes/classes/lib.php:1883
583
  msgid "FAQ"
584
  msgstr ""
585
 
586
- #: ../includes/classes/lib.php:2063
587
- #, php-format
588
- msgid "Denied: %s"
589
- msgstr ""
590
-
591
  #: ../includes/classes/role-additional-options.php:53
592
  msgid "Hide admin bar"
593
  msgstr ""
@@ -600,48 +639,48 @@ msgstr ""
600
  msgid "None"
601
  msgstr ""
602
 
603
- #: ../includes/classes/role-view.php:107
604
  msgid "Delete All Unused Roles"
605
  msgstr ""
606
 
607
- #: ../includes/classes/role-view.php:207 ../includes/classes/role-view.php:218
608
  msgid "Role name (ID): "
609
  msgstr ""
610
 
611
- #: ../includes/classes/role-view.php:209 ../includes/classes/role-view.php:220
612
  msgid "Display Role Name: "
613
  msgstr ""
614
 
615
- #: ../includes/classes/role-view.php:211
616
  msgid "Make copy of: "
617
  msgstr ""
618
 
619
- #: ../includes/classes/role-view.php:227
620
  msgid "Select Role:"
621
  msgstr ""
622
 
623
- #: ../includes/classes/role-view.php:252
624
  msgid "Capability name (ID): "
625
  msgstr ""
626
 
627
- #: ../includes/classes/role-view.php:364 ../includes/classes/user-view.php:155
628
  msgid "Show capabilities in human readable form"
629
  msgstr ""
630
 
631
- #: ../includes/classes/role-view.php:374 ../includes/classes/screen-help.php:21
632
- #: ../includes/classes/user-view.php:165 ../includes/settings-template.php:78
633
  msgid "Show deprecated capabilities"
634
  msgstr ""
635
 
636
- #: ../includes/classes/role-view.php:378
637
  msgid "If checked, then apply action to ALL sites of this Network"
638
  msgstr ""
639
 
640
- #: ../includes/classes/role-view.php:391 ../includes/classes/tools.php:44
641
  msgid "Apply to All Sites"
642
  msgstr ""
643
 
644
- #: ../includes/classes/role-view.php:408
645
  msgid "Select Role and change its capabilities:"
646
  msgstr ""
647
 
@@ -744,48 +783,48 @@ msgstr ""
744
  msgid "Default Roles are updated"
745
  msgstr ""
746
 
747
- #: ../includes/classes/settings.php:151
748
- msgid "Tools: Reset: User Roles were initialized"
749
- msgstr ""
750
-
751
- #: ../includes/classes/tools.php:32
752
  msgid "WARNING!"
753
  msgstr ""
754
 
755
- #: ../includes/classes/tools.php:34
756
  msgid ""
757
  "Resetting will setup default user roles and capabilities from WordPress core."
758
  msgstr ""
759
 
760
- #: ../includes/classes/tools.php:35
761
  msgid ""
762
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
763
  "user roles and capabilities during installation, those changes will be LOST!"
764
  msgstr ""
765
 
766
- #: ../includes/classes/tools.php:36
767
  msgid ""
768
  "For more information on how to undo undesired changes and restore plugins "
769
  "capabilities in case you lost them by mistake go to: "
770
  msgstr ""
771
 
772
- #: ../includes/classes/tools.php:45
773
  msgid ""
774
  "If checked, then apply action to ALL sites. Main site only is affected in "
775
  "other case."
776
  msgstr ""
777
 
778
- #: ../includes/classes/tools.php:50
779
  msgid "Reset Roles to its original state"
780
  msgstr ""
781
 
782
- #: ../includes/classes/tools.php:50
783
- #: ../includes/classes/user-role-editor.php:729
784
  msgid "Reset"
785
  msgstr ""
786
 
 
 
 
 
787
  #: ../includes/classes/user-other-roles.php:85
788
- #: ../includes/classes/user-other-roles.php:194
789
  msgid "Other Roles"
790
  msgstr ""
791
 
@@ -793,207 +832,212 @@ msgstr ""
793
  msgid "Select additional roles for this user"
794
  msgstr ""
795
 
796
- #: ../includes/classes/user-other-roles.php:173
797
- #: ../includes/classes/user-role-editor.php:387
 
 
 
 
 
798
  msgid "Capabilities"
799
  msgstr ""
800
 
801
- #: ../includes/classes/user-other-roles.php:180
802
  msgid "Edit"
803
  msgstr ""
804
 
805
- #: ../includes/classes/user-other-roles.php:229
806
  msgid "Additional Capabilities"
807
  msgstr ""
808
 
809
- #: ../includes/classes/user-role-editor.php:284
810
  msgid "Change role for users without role"
811
  msgstr ""
812
 
813
- #: ../includes/classes/user-role-editor.php:285
814
  msgid "To:"
815
  msgstr ""
816
 
817
- #: ../includes/classes/user-role-editor.php:286
818
  msgid "No rights"
819
  msgstr ""
820
 
821
- #: ../includes/classes/user-role-editor.php:287
822
  msgid "Provide new role"
823
  msgstr ""
824
 
825
- #: ../includes/classes/user-role-editor.php:359
826
- #: ../includes/classes/user-role-editor.php:361
827
  msgid "You do not have permission to edit this user."
828
  msgstr ""
829
 
830
- #: ../includes/classes/user-role-editor.php:480
831
- #: ../includes/classes/user-role-editor.php:493
832
  msgid "Settings"
833
  msgstr ""
834
 
835
- #: ../includes/classes/user-role-editor.php:535
836
  #: ../includes/settings-template.php:26
837
  msgid "Additional Modules"
838
  msgstr ""
839
 
840
- #: ../includes/classes/user-role-editor.php:541
841
  #: ../includes/settings-template.php:31
842
  msgid "Default Roles"
843
  msgstr ""
844
 
845
- #: ../includes/classes/user-role-editor.php:608
846
  msgid ""
847
  "You do not have sufficient permissions to manage options for User Role "
848
  "Editor."
849
  msgstr ""
850
 
851
- #: ../includes/classes/user-role-editor.php:679
852
- #: ../includes/classes/user-role-editor.php:726
853
  msgid "Confirm"
854
  msgstr ""
855
 
856
- #: ../includes/classes/user-role-editor.php:680
857
- #: ../includes/classes/user-role-editor.php:727
858
  msgid "Yes"
859
  msgstr ""
860
 
861
- #: ../includes/classes/user-role-editor.php:681
862
- #: ../includes/classes/user-role-editor.php:728
863
  msgid "No"
864
  msgstr ""
865
 
866
- #: ../includes/classes/user-role-editor.php:682
867
  msgid "Update"
868
  msgstr ""
869
 
870
- #: ../includes/classes/user-role-editor.php:683
871
  msgid "Please confirm permissions update"
872
  msgstr ""
873
 
874
- #: ../includes/classes/user-role-editor.php:684
875
  msgid "Add New Role"
876
  msgstr ""
877
 
878
- #: ../includes/classes/user-role-editor.php:685
879
- #: ../includes/classes/user-role-editor.php:690
880
  msgid "Rename Role"
881
  msgstr ""
882
 
883
- #: ../includes/classes/user-role-editor.php:686
884
  msgid " Role name (ID) can not be empty!"
885
  msgstr ""
886
 
887
- #: ../includes/classes/user-role-editor.php:687
888
  msgid ""
889
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
890
  "only!"
891
  msgstr ""
892
 
893
- #: ../includes/classes/user-role-editor.php:688
894
  msgid ""
895
  " WordPress does not support numeric Role name (ID). Add latin characters to "
896
  "it."
897
  msgstr ""
898
 
899
- #: ../includes/classes/user-role-editor.php:689
900
  msgid "Add Role"
901
  msgstr ""
902
 
903
- #: ../includes/classes/user-role-editor.php:691
904
  msgid "Delete Role"
905
  msgstr ""
906
 
907
- #: ../includes/classes/user-role-editor.php:692
908
  msgid "Cancel"
909
  msgstr ""
910
 
911
- #: ../includes/classes/user-role-editor.php:693
912
  msgid "Add Capability"
913
  msgstr ""
914
 
915
- #: ../includes/classes/user-role-editor.php:694
916
- #: ../includes/classes/user-role-editor.php:698
917
  msgid "Delete Capability"
918
  msgstr ""
919
 
920
- #: ../includes/classes/user-role-editor.php:695
921
- #: ../includes/classes/user-role-editor.php:735
922
  msgid "Continue?"
923
  msgstr ""
924
 
925
- #: ../includes/classes/user-role-editor.php:696
926
  msgid "Default Role"
927
  msgstr ""
928
 
929
- #: ../includes/classes/user-role-editor.php:697
930
  msgid "Set New Default Role"
931
  msgstr ""
932
 
933
- #: ../includes/classes/user-role-editor.php:699
934
  msgid ""
935
  "Warning! Be careful - removing critical capability could crash some plugin "
936
  "or other custom code"
937
  msgstr ""
938
 
939
- #: ../includes/classes/user-role-editor.php:700
940
  msgid " Capability name (ID) can not be empty!"
941
  msgstr ""
942
 
943
- #: ../includes/classes/user-role-editor.php:701
944
  msgid ""
945
  " Capability name (ID) must contain latin characters, digits, hyphens or "
946
  "underscore only!"
947
  msgstr ""
948
 
949
- #: ../includes/classes/user-role-editor.php:730
950
  msgid "DANGER!"
951
  msgstr ""
952
 
953
- #: ../includes/classes/user-role-editor.php:731
954
  msgid ""
955
  " Resetting will restore default user roles and capabilities from WordPress "
956
  "core."
957
  msgstr ""
958
 
959
- #: ../includes/classes/user-role-editor.php:732
960
  msgid ""
961
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
962
  "user roles and capabilities during installation, all those changes will be "
963
  "LOST!"
964
  msgstr ""
965
 
966
- #: ../includes/classes/user-role-editor.php:733
967
  msgid ""
968
  "For more information on how to undo undesired changes and restore plugin "
969
  "capabilities go to"
970
  msgstr ""
971
 
972
- #: ../includes/classes/user-view.php:61
973
  msgid "Switch&nbsp;To"
974
  msgstr ""
975
 
976
- #: ../includes/classes/user-view.php:73
977
  msgid "Network Super Admin"
978
  msgstr ""
979
 
980
- #: ../includes/classes/user-view.php:138
981
  msgid "Change capabilities for user"
982
  msgstr ""
983
 
984
- #: ../includes/classes/user-view.php:176
985
  msgid "Primary Role:"
986
  msgstr ""
987
 
988
- #: ../includes/classes/user-view.php:182
989
  msgid "bbPress Role:"
990
  msgstr ""
991
 
992
- #: ../includes/classes/user-view.php:191
993
  msgid "Other Roles:"
994
  msgstr ""
995
 
996
- #: ../includes/classes/view.php:273
997
  msgid "Working..."
998
  msgstr ""
999
 
1
  #, fuzzy
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: User Role Editor 4.51\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-05-21 11:18+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"
22
  msgstr ""
23
 
24
  #: ../includes/classes/capabilities-groups-manager.php:75
25
+ #: ../includes/classes/editor.php:1243
26
+ #: ../includes/classes/user-role-editor.php:553
27
+ #: ../includes/classes/user-role-editor.php:584
28
  msgid "User Role Editor"
29
  msgstr ""
30
 
42
  msgstr ""
43
 
44
  #: ../includes/classes/capabilities-groups-manager.php:112
45
+ #: ../includes/classes/user-role-editor.php:525
46
  #: ../includes/settings-template.php:20
47
  msgid "General"
48
  msgstr ""
68
  msgstr ""
69
 
70
  #: ../includes/classes/capabilities-groups-manager.php:121
71
+ #: ../includes/classes/user-role-editor.php:543
72
  #: ../includes/settings-template.php:36
73
  msgid "Multisite"
74
  msgstr ""
93
  msgid "Error: this word is used by WordPress as a role ID"
94
  msgstr ""
95
 
96
+ #: ../includes/classes/capability.php:79 ../includes/classes/capability.php:189
97
+ #: ../includes/classes/editor.php:749 ../includes/classes/editor.php:817
98
+ #: ../includes/classes/editor.php:871 ../includes/classes/editor.php:959
99
+ #: ../includes/classes/editor.php:1013 ../includes/classes/editor.php:1051
100
+ #: ../includes/classes/user-role-editor.php:637
101
  msgid "Insufficient permissions to work with User Role Editor"
102
  msgstr ""
103
 
104
+ #: ../includes/classes/capability.php:100
105
  #, php-format
106
  msgid "Capability %s was added successfully"
107
  msgstr ""
108
 
109
+ #: ../includes/classes/capability.php:102
110
  #, php-format
111
  msgid "Capability %s exists already"
112
  msgstr ""
113
 
114
+ #: ../includes/classes/capability.php:196
115
+ #: ../includes/classes/capability.php:201
116
  msgid "There are no capabilities available for deletion!"
117
  msgstr ""
118
 
119
+ #: ../includes/classes/capability.php:207
120
  #, php-format
121
  msgid "Capability %s was removed successfully"
122
  msgstr ""
125
  msgid "capabilities were removed successfully"
126
  msgstr ""
127
 
128
+ #: ../includes/classes/editor.php:203 ../includes/classes/editor.php:205
129
+ msgid "Error: "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  msgstr ""
131
 
132
+ #: ../includes/classes/editor.php:203
133
+ msgid "Wrong request!"
134
  msgstr ""
135
 
136
+ #: ../includes/classes/editor.php:205
137
  msgid "Role"
138
  msgstr ""
139
 
140
+ #: ../includes/classes/editor.php:206
141
  msgid "does not exist"
142
  msgstr ""
143
 
144
+ #: ../includes/classes/editor.php:687
145
  msgid "Role is updated successfully"
146
  msgstr ""
147
 
148
+ #: ../includes/classes/editor.php:689
149
  msgid "Roles are updated for all network"
150
  msgstr ""
151
 
152
+ #: ../includes/classes/editor.php:692
153
  msgid "Error occurred during role(s) update"
154
  msgstr ""
155
 
156
+ #: ../includes/classes/editor.php:696
157
  msgid "User capabilities are updated successfully"
158
  msgstr ""
159
 
160
+ #: ../includes/classes/editor.php:698
161
  msgid "Error occurred during user update"
162
  msgstr ""
163
 
164
+ #: ../includes/classes/editor.php:782
165
+ msgid "Error: Role ID is empty!"
166
  msgstr ""
167
 
168
+ #: ../includes/classes/editor.php:791
169
  msgid ""
170
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
171
  "only!"
172
  msgstr ""
173
 
174
+ #: ../includes/classes/editor.php:797
175
  msgid ""
176
  "Error: WordPress does not support numeric Role name (ID). Add latin "
177
  "characters to it."
178
  msgstr ""
179
 
180
+ #: ../includes/classes/editor.php:828
181
  #, php-format
182
  msgid "Role %s exists already"
183
  msgstr ""
184
 
185
+ #: ../includes/classes/editor.php:849
186
  msgid "Error is encountered during new role create operation"
187
  msgstr ""
188
 
189
+ #: ../includes/classes/editor.php:851
190
  #, php-format
191
  msgid "Role %s is created successfully"
192
  msgstr ""
193
 
194
+ #: ../includes/classes/editor.php:881
 
 
 
 
195
  msgid "Error: Empty role display name is not allowed."
196
  msgstr ""
197
 
198
+ #: ../includes/classes/editor.php:888
199
  #, php-format
200
  msgid "Role %s does not exists"
201
  msgstr ""
202
 
203
+ #: ../includes/classes/editor.php:900
204
  #, php-format
205
  msgid "Role %s is renamed to %s successfully"
206
  msgstr ""
207
 
208
+ #: ../includes/classes/editor.php:964
209
+ msgid "Empty or not valid list of roles for deletion"
210
+ msgstr ""
211
+
212
+ #: ../includes/classes/editor.php:973
213
+ msgid "Role does not exist"
214
+ msgstr ""
215
+
216
+ #: ../includes/classes/editor.php:977
217
+ msgid "You can not delete role"
218
  msgstr ""
219
 
220
+ #: ../includes/classes/editor.php:1025
221
  msgid "Unused roles are deleted successfully"
222
  msgstr ""
223
 
224
+ #: ../includes/classes/editor.php:1027
225
  #, php-format
226
  msgid "Role %s is deleted successfully"
227
  msgstr ""
228
 
229
+ #: ../includes/classes/editor.php:1030
230
+ msgid "Error encountered during role delete operation"
231
+ msgstr ""
232
+
233
+ #: ../includes/classes/editor.php:1057
234
+ msgid ""
235
+ "This method is only for the single site of WordPress multisite installation."
236
+ msgstr ""
237
+
238
+ #: ../includes/classes/editor.php:1061
239
+ msgid "Wrong request. Default role can not be empty"
240
+ msgstr ""
241
+
242
+ #: ../includes/classes/editor.php:1073
243
  #, php-format
244
  msgid "Default role for new users is set to %s successfully"
245
  msgstr ""
246
 
247
+ #: ../includes/classes/editor.php:1075
248
  msgid "Error encountered during default role change operation"
249
  msgstr ""
250
 
251
+ #: ../includes/classes/editor.php:1078
252
  msgid "Can not set Administrator role as a default one"
253
  msgstr ""
254
 
255
+ #: ../includes/classes/editor.php:1080
256
  msgid "This role does not exist - "
257
  msgstr ""
258
 
259
+ #: ../includes/classes/editor.php:1151
260
+ msgid "User Roles are restored to WordPress default values. "
261
+ msgstr ""
262
+
263
+ #: ../includes/classes/editor.php:1282
264
+ msgid "Error: wrong request"
265
+ msgstr ""
266
+
267
+ #: ../includes/classes/editor.php:1311
268
  msgid "Editor"
269
  msgstr ""
270
 
271
+ #: ../includes/classes/editor.php:1312
272
  msgid "Author"
273
  msgstr ""
274
 
275
+ #: ../includes/classes/editor.php:1313
276
  msgid "Contributor"
277
  msgstr ""
278
 
279
+ #: ../includes/classes/editor.php:1314
280
  msgid "Subscriber"
281
  msgstr ""
282
 
283
+ #: ../includes/classes/editor.php:1316
284
  msgid "Switch themes"
285
  msgstr ""
286
 
287
+ #: ../includes/classes/editor.php:1317
288
  msgid "Edit themes"
289
  msgstr ""
290
 
291
+ #: ../includes/classes/editor.php:1318
292
  msgid "Activate plugins"
293
  msgstr ""
294
 
295
+ #: ../includes/classes/editor.php:1319
296
  msgid "Edit plugins"
297
  msgstr ""
298
 
299
+ #: ../includes/classes/editor.php:1320
300
  msgid "Edit users"
301
  msgstr ""
302
 
303
+ #: ../includes/classes/editor.php:1321
304
  msgid "Edit files"
305
  msgstr ""
306
 
307
+ #: ../includes/classes/editor.php:1322
308
  msgid "Manage options"
309
  msgstr ""
310
 
311
+ #: ../includes/classes/editor.php:1323
312
  msgid "Moderate comments"
313
  msgstr ""
314
 
315
+ #: ../includes/classes/editor.php:1324
316
  msgid "Manage categories"
317
  msgstr ""
318
 
319
+ #: ../includes/classes/editor.php:1325
320
  msgid "Manage links"
321
  msgstr ""
322
 
323
+ #: ../includes/classes/editor.php:1326
324
  msgid "Upload files"
325
  msgstr ""
326
 
327
+ #: ../includes/classes/editor.php:1327
328
  msgid "Import"
329
  msgstr ""
330
 
331
+ #: ../includes/classes/editor.php:1328
332
  msgid "Unfiltered html"
333
  msgstr ""
334
 
335
+ #: ../includes/classes/editor.php:1329
336
  msgid "Edit posts"
337
  msgstr ""
338
 
339
+ #: ../includes/classes/editor.php:1330
340
  msgid "Edit others posts"
341
  msgstr ""
342
 
343
+ #: ../includes/classes/editor.php:1331
344
  msgid "Edit published posts"
345
  msgstr ""
346
 
347
+ #: ../includes/classes/editor.php:1332
348
  msgid "Publish posts"
349
  msgstr ""
350
 
351
+ #: ../includes/classes/editor.php:1333
352
  msgid "Edit pages"
353
  msgstr ""
354
 
355
+ #: ../includes/classes/editor.php:1334
356
  msgid "Read"
357
  msgstr ""
358
 
359
+ #: ../includes/classes/editor.php:1335
360
  msgid "Level 10"
361
  msgstr ""
362
 
363
+ #: ../includes/classes/editor.php:1336
364
  msgid "Level 9"
365
  msgstr ""
366
 
367
+ #: ../includes/classes/editor.php:1337
368
  msgid "Level 8"
369
  msgstr ""
370
 
371
+ #: ../includes/classes/editor.php:1338
372
  msgid "Level 7"
373
  msgstr ""
374
 
375
+ #: ../includes/classes/editor.php:1339
376
  msgid "Level 6"
377
  msgstr ""
378
 
379
+ #: ../includes/classes/editor.php:1340
380
  msgid "Level 5"
381
  msgstr ""
382
 
383
+ #: ../includes/classes/editor.php:1341
384
  msgid "Level 4"
385
  msgstr ""
386
 
387
+ #: ../includes/classes/editor.php:1342
388
  msgid "Level 3"
389
  msgstr ""
390
 
391
+ #: ../includes/classes/editor.php:1343
392
  msgid "Level 2"
393
  msgstr ""
394
 
395
+ #: ../includes/classes/editor.php:1344
396
  msgid "Level 1"
397
  msgstr ""
398
 
399
+ #: ../includes/classes/editor.php:1345
400
  msgid "Level 0"
401
  msgstr ""
402
 
403
+ #: ../includes/classes/editor.php:1346
404
  msgid "Edit others pages"
405
  msgstr ""
406
 
407
+ #: ../includes/classes/editor.php:1347
408
  msgid "Edit published pages"
409
  msgstr ""
410
 
411
+ #: ../includes/classes/editor.php:1348
412
  msgid "Publish pages"
413
  msgstr ""
414
 
415
+ #: ../includes/classes/editor.php:1349
416
  msgid "Delete pages"
417
  msgstr ""
418
 
419
+ #: ../includes/classes/editor.php:1350
420
  msgid "Delete others pages"
421
  msgstr ""
422
 
423
+ #: ../includes/classes/editor.php:1351
424
  msgid "Delete published pages"
425
  msgstr ""
426
 
427
+ #: ../includes/classes/editor.php:1352
428
  msgid "Delete posts"
429
  msgstr ""
430
 
431
+ #: ../includes/classes/editor.php:1353
432
  msgid "Delete others posts"
433
  msgstr ""
434
 
435
+ #: ../includes/classes/editor.php:1354
436
  msgid "Delete published posts"
437
  msgstr ""
438
 
439
+ #: ../includes/classes/editor.php:1355
440
  msgid "Delete private posts"
441
  msgstr ""
442
 
443
+ #: ../includes/classes/editor.php:1356
444
  msgid "Edit private posts"
445
  msgstr ""
446
 
447
+ #: ../includes/classes/editor.php:1357
448
  msgid "Read private posts"
449
  msgstr ""
450
 
451
+ #: ../includes/classes/editor.php:1358
452
  msgid "Delete private pages"
453
  msgstr ""
454
 
455
+ #: ../includes/classes/editor.php:1359
456
  msgid "Edit private pages"
457
  msgstr ""
458
 
459
+ #: ../includes/classes/editor.php:1360
460
  msgid "Read private pages"
461
  msgstr ""
462
 
463
+ #: ../includes/classes/editor.php:1361
464
  msgid "Delete users"
465
  msgstr ""
466
 
467
+ #: ../includes/classes/editor.php:1362
468
  msgid "Create users"
469
  msgstr ""
470
 
471
+ #: ../includes/classes/editor.php:1363
472
  msgid "Unfiltered upload"
473
  msgstr ""
474
 
475
+ #: ../includes/classes/editor.php:1364
476
  msgid "Edit dashboard"
477
  msgstr ""
478
 
479
+ #: ../includes/classes/editor.php:1365
480
  msgid "Update plugins"
481
  msgstr ""
482
 
483
+ #: ../includes/classes/editor.php:1366
484
  msgid "Delete plugins"
485
  msgstr ""
486
 
487
+ #: ../includes/classes/editor.php:1367
488
  msgid "Install plugins"
489
  msgstr ""
490
 
491
+ #: ../includes/classes/editor.php:1368
492
  msgid "Update themes"
493
  msgstr ""
494
 
495
+ #: ../includes/classes/editor.php:1369
496
  msgid "Install themes"
497
  msgstr ""
498
 
499
+ #: ../includes/classes/editor.php:1370
500
  msgid "Update core"
501
  msgstr ""
502
 
503
+ #: ../includes/classes/editor.php:1371
504
  msgid "List users"
505
  msgstr ""
506
 
507
+ #: ../includes/classes/editor.php:1372
508
  msgid "Remove users"
509
  msgstr ""
510
 
511
+ #: ../includes/classes/editor.php:1373
512
  msgid "Add users"
513
  msgstr ""
514
 
515
+ #: ../includes/classes/editor.php:1374
516
  msgid "Promote users"
517
  msgstr ""
518
 
519
+ #: ../includes/classes/editor.php:1375
520
  msgid "Edit theme options"
521
  msgstr ""
522
 
523
+ #: ../includes/classes/editor.php:1376
524
  msgid "Delete themes"
525
  msgstr ""
526
 
527
+ #: ../includes/classes/editor.php:1377
528
  msgid "Export"
529
  msgstr ""
530
 
531
+ #: ../includes/classes/grant-roles.php:296
532
+ #: ../includes/classes/grant-roles.php:342
533
+ msgid "Not enough permissions"
534
+ msgstr ""
535
+
536
+ #: ../includes/classes/grant-roles.php:302
537
+ msgid "Can not edit user or invalid data at the users list"
538
+ msgstr ""
539
+
540
+ #: ../includes/classes/grant-roles.php:310
541
+ msgid "Invalid primary role"
542
+ msgstr ""
543
+
544
+ #: ../includes/classes/grant-roles.php:323
545
+ msgid "Invalid data at the other roles list"
546
+ msgstr ""
547
+
548
+ #: ../includes/classes/grant-roles.php:332
549
+ msgid "Roles were granted to users successfully"
550
+ msgstr ""
551
+
552
+ #: ../includes/classes/grant-roles.php:349
553
+ msgid "Wrong request, valid user ID was missed"
554
+ msgstr ""
555
+
556
+ #: ../includes/classes/grant-roles.php:355
557
+ msgid "Requested user does not exist"
558
+ msgstr ""
559
+
560
+ #: ../includes/classes/grant-roles.php:378
561
+ msgid "Primary Role: "
562
+ msgstr ""
563
+
564
+ #: ../includes/classes/grant-roles.php:384 ../includes/classes/user-view.php:96
565
+ msgid "&mdash; No role for this site &mdash;"
566
+ msgstr ""
567
+
568
+ #: ../includes/classes/grant-roles.php:398
569
+ msgid "Other Roles: "
570
+ msgstr ""
571
+
572
+ #: ../includes/classes/grant-roles.php:440
573
+ msgid "Grant Roles"
574
+ msgstr ""
575
+
576
+ #: ../includes/classes/grant-roles.php:442
577
+ #: ../includes/classes/grant-roles.php:444
578
+ msgid "Add role&hellip;"
579
+ msgstr ""
580
+
581
+ #: ../includes/classes/grant-roles.php:447
582
+ msgid "Add"
583
+ msgstr ""
584
+
585
+ #: ../includes/classes/grant-roles.php:449
586
+ #: ../includes/classes/grant-roles.php:451
587
+ msgid "Revoke role&hellip;"
588
+ msgstr ""
589
+
590
+ #: ../includes/classes/grant-roles.php:454
591
+ msgid "Revoke"
592
+ msgstr ""
593
+
594
+ #: ../includes/classes/grant-roles.php:486
595
+ msgid "Grant roles to selected users"
596
+ msgstr ""
597
+
598
+ #: ../includes/classes/grant-roles.php:487
599
+ msgid "Select users to which you wish to grant roles!"
600
+ msgstr ""
601
+
602
+ #: ../includes/classes/grant-roles.php:488
603
+ msgid "Select role(s) which you wish to grant!"
604
+ msgstr ""
605
+
606
+ #: ../includes/classes/lib.php:384
607
  msgid "Version:"
608
  msgstr ""
609
 
610
+ #: ../includes/classes/lib.php:385
611
  msgid "Author's website"
612
  msgstr ""
613
 
614
+ #: ../includes/classes/lib.php:386
615
  msgid "Plugin webpage"
616
  msgstr ""
617
 
618
+ #: ../includes/classes/lib.php:387
619
  msgid "Plugin download"
620
  msgstr ""
621
 
622
+ #: ../includes/classes/lib.php:388 ../includes/classes/user-role-editor.php:502
 
623
  msgid "Changelog"
624
  msgstr ""
625
 
626
+ #: ../includes/classes/lib.php:389
627
  msgid "FAQ"
628
  msgstr ""
629
 
 
 
 
 
 
630
  #: ../includes/classes/role-additional-options.php:53
631
  msgid "Hide admin bar"
632
  msgstr ""
639
  msgid "None"
640
  msgstr ""
641
 
642
+ #: ../includes/classes/role-view.php:109
643
  msgid "Delete All Unused Roles"
644
  msgstr ""
645
 
646
+ #: ../includes/classes/role-view.php:209 ../includes/classes/role-view.php:220
647
  msgid "Role name (ID): "
648
  msgstr ""
649
 
650
+ #: ../includes/classes/role-view.php:211 ../includes/classes/role-view.php:222
651
  msgid "Display Role Name: "
652
  msgstr ""
653
 
654
+ #: ../includes/classes/role-view.php:213
655
  msgid "Make copy of: "
656
  msgstr ""
657
 
658
+ #: ../includes/classes/role-view.php:229
659
  msgid "Select Role:"
660
  msgstr ""
661
 
662
+ #: ../includes/classes/role-view.php:254
663
  msgid "Capability name (ID): "
664
  msgstr ""
665
 
666
+ #: ../includes/classes/role-view.php:366 ../includes/classes/user-view.php:154
667
  msgid "Show capabilities in human readable form"
668
  msgstr ""
669
 
670
+ #: ../includes/classes/role-view.php:376 ../includes/classes/screen-help.php:21
671
+ #: ../includes/classes/user-view.php:164 ../includes/settings-template.php:78
672
  msgid "Show deprecated capabilities"
673
  msgstr ""
674
 
675
+ #: ../includes/classes/role-view.php:380
676
  msgid "If checked, then apply action to ALL sites of this Network"
677
  msgstr ""
678
 
679
+ #: ../includes/classes/role-view.php:393 ../includes/classes/tools.php:30
680
  msgid "Apply to All Sites"
681
  msgstr ""
682
 
683
+ #: ../includes/classes/role-view.php:410
684
  msgid "Select Role and change its capabilities:"
685
  msgstr ""
686
 
783
  msgid "Default Roles are updated"
784
  msgstr ""
785
 
786
+ #: ../includes/classes/tools.php:19
 
 
 
 
787
  msgid "WARNING!"
788
  msgstr ""
789
 
790
+ #: ../includes/classes/tools.php:21
791
  msgid ""
792
  "Resetting will setup default user roles and capabilities from WordPress core."
793
  msgstr ""
794
 
795
+ #: ../includes/classes/tools.php:22
796
  msgid ""
797
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
798
  "user roles and capabilities during installation, those changes will be LOST!"
799
  msgstr ""
800
 
801
+ #: ../includes/classes/tools.php:23
802
  msgid ""
803
  "For more information on how to undo undesired changes and restore plugins "
804
  "capabilities in case you lost them by mistake go to: "
805
  msgstr ""
806
 
807
+ #: ../includes/classes/tools.php:31
808
  msgid ""
809
  "If checked, then apply action to ALL sites. Main site only is affected in "
810
  "other case."
811
  msgstr ""
812
 
813
+ #: ../includes/classes/tools.php:36
814
  msgid "Reset Roles to its original state"
815
  msgstr ""
816
 
817
+ #: ../includes/classes/tools.php:36
818
+ #: ../includes/classes/user-role-editor.php:774
819
  msgid "Reset"
820
  msgstr ""
821
 
822
+ #: ../includes/classes/tools.php:60
823
+ msgid "Tools: Reset: User Roles were initialized"
824
+ msgstr ""
825
+
826
  #: ../includes/classes/user-other-roles.php:85
827
+ #: ../includes/classes/user-other-roles.php:220
828
  msgid "Other Roles"
829
  msgstr ""
830
 
832
  msgid "Select additional roles for this user"
833
  msgstr ""
834
 
835
+ #: ../includes/classes/user-other-roles.php:182
836
+ #, php-format
837
+ msgid "Denied: %s"
838
+ msgstr ""
839
+
840
+ #: ../includes/classes/user-other-roles.php:199
841
+ #: ../includes/classes/user-role-editor.php:378
842
  msgid "Capabilities"
843
  msgstr ""
844
 
845
+ #: ../includes/classes/user-other-roles.php:206
846
  msgid "Edit"
847
  msgstr ""
848
 
849
+ #: ../includes/classes/user-other-roles.php:264
850
  msgid "Additional Capabilities"
851
  msgstr ""
852
 
853
+ #: ../includes/classes/user-role-editor.php:275
854
  msgid "Change role for users without role"
855
  msgstr ""
856
 
857
+ #: ../includes/classes/user-role-editor.php:276
858
  msgid "To:"
859
  msgstr ""
860
 
861
+ #: ../includes/classes/user-role-editor.php:277
862
  msgid "No rights"
863
  msgstr ""
864
 
865
+ #: ../includes/classes/user-role-editor.php:278
866
  msgid "Provide new role"
867
  msgstr ""
868
 
869
+ #: ../includes/classes/user-role-editor.php:350
870
+ #: ../includes/classes/user-role-editor.php:352
871
  msgid "You do not have permission to edit this user."
872
  msgstr ""
873
 
874
+ #: ../includes/classes/user-role-editor.php:476
875
+ #: ../includes/classes/user-role-editor.php:489
876
  msgid "Settings"
877
  msgstr ""
878
 
879
+ #: ../includes/classes/user-role-editor.php:531
880
  #: ../includes/settings-template.php:26
881
  msgid "Additional Modules"
882
  msgstr ""
883
 
884
+ #: ../includes/classes/user-role-editor.php:537
885
  #: ../includes/settings-template.php:31
886
  msgid "Default Roles"
887
  msgstr ""
888
 
889
+ #: ../includes/classes/user-role-editor.php:604
890
  msgid ""
891
  "You do not have sufficient permissions to manage options for User Role "
892
  "Editor."
893
  msgstr ""
894
 
895
+ #: ../includes/classes/user-role-editor.php:724
896
+ #: ../includes/classes/user-role-editor.php:771
897
  msgid "Confirm"
898
  msgstr ""
899
 
900
+ #: ../includes/classes/user-role-editor.php:725
901
+ #: ../includes/classes/user-role-editor.php:772
902
  msgid "Yes"
903
  msgstr ""
904
 
905
+ #: ../includes/classes/user-role-editor.php:726
906
+ #: ../includes/classes/user-role-editor.php:773
907
  msgid "No"
908
  msgstr ""
909
 
910
+ #: ../includes/classes/user-role-editor.php:727
911
  msgid "Update"
912
  msgstr ""
913
 
914
+ #: ../includes/classes/user-role-editor.php:728
915
  msgid "Please confirm permissions update"
916
  msgstr ""
917
 
918
+ #: ../includes/classes/user-role-editor.php:729
919
  msgid "Add New Role"
920
  msgstr ""
921
 
922
+ #: ../includes/classes/user-role-editor.php:730
923
+ #: ../includes/classes/user-role-editor.php:735
924
  msgid "Rename Role"
925
  msgstr ""
926
 
927
+ #: ../includes/classes/user-role-editor.php:731
928
  msgid " Role name (ID) can not be empty!"
929
  msgstr ""
930
 
931
+ #: ../includes/classes/user-role-editor.php:732
932
  msgid ""
933
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
934
  "only!"
935
  msgstr ""
936
 
937
+ #: ../includes/classes/user-role-editor.php:733
938
  msgid ""
939
  " WordPress does not support numeric Role name (ID). Add latin characters to "
940
  "it."
941
  msgstr ""
942
 
943
+ #: ../includes/classes/user-role-editor.php:734
944
  msgid "Add Role"
945
  msgstr ""
946
 
947
+ #: ../includes/classes/user-role-editor.php:736
948
  msgid "Delete Role"
949
  msgstr ""
950
 
951
+ #: ../includes/classes/user-role-editor.php:737
952
  msgid "Cancel"
953
  msgstr ""
954
 
955
+ #: ../includes/classes/user-role-editor.php:738
956
  msgid "Add Capability"
957
  msgstr ""
958
 
959
+ #: ../includes/classes/user-role-editor.php:739
960
+ #: ../includes/classes/user-role-editor.php:743
961
  msgid "Delete Capability"
962
  msgstr ""
963
 
964
+ #: ../includes/classes/user-role-editor.php:740
965
+ #: ../includes/classes/user-role-editor.php:780
966
  msgid "Continue?"
967
  msgstr ""
968
 
969
+ #: ../includes/classes/user-role-editor.php:741
970
  msgid "Default Role"
971
  msgstr ""
972
 
973
+ #: ../includes/classes/user-role-editor.php:742
974
  msgid "Set New Default Role"
975
  msgstr ""
976
 
977
+ #: ../includes/classes/user-role-editor.php:744
978
  msgid ""
979
  "Warning! Be careful - removing critical capability could crash some plugin "
980
  "or other custom code"
981
  msgstr ""
982
 
983
+ #: ../includes/classes/user-role-editor.php:745
984
  msgid " Capability name (ID) can not be empty!"
985
  msgstr ""
986
 
987
+ #: ../includes/classes/user-role-editor.php:746
988
  msgid ""
989
  " Capability name (ID) must contain latin characters, digits, hyphens or "
990
  "underscore only!"
991
  msgstr ""
992
 
993
+ #: ../includes/classes/user-role-editor.php:775
994
  msgid "DANGER!"
995
  msgstr ""
996
 
997
+ #: ../includes/classes/user-role-editor.php:776
998
  msgid ""
999
  " Resetting will restore default user roles and capabilities from WordPress "
1000
  "core."
1001
  msgstr ""
1002
 
1003
+ #: ../includes/classes/user-role-editor.php:777
1004
  msgid ""
1005
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
1006
  "user roles and capabilities during installation, all those changes will be "
1007
  "LOST!"
1008
  msgstr ""
1009
 
1010
+ #: ../includes/classes/user-role-editor.php:778
1011
  msgid ""
1012
  "For more information on how to undo undesired changes and restore plugin "
1013
  "capabilities go to"
1014
  msgstr ""
1015
 
1016
+ #: ../includes/classes/user-view.php:59
1017
  msgid "Switch&nbsp;To"
1018
  msgstr ""
1019
 
1020
+ #: ../includes/classes/user-view.php:71
1021
  msgid "Network Super Admin"
1022
  msgstr ""
1023
 
1024
+ #: ../includes/classes/user-view.php:137
1025
  msgid "Change capabilities for user"
1026
  msgstr ""
1027
 
1028
+ #: ../includes/classes/user-view.php:175
1029
  msgid "Primary Role:"
1030
  msgstr ""
1031
 
1032
+ #: ../includes/classes/user-view.php:181
1033
  msgid "bbPress Role:"
1034
  msgstr ""
1035
 
1036
+ #: ../includes/classes/user-view.php:190
1037
  msgid "Other Roles:"
1038
  msgstr ""
1039
 
1040
+ #: ../includes/classes/view.php:272
1041
  msgid "Working..."
1042
  msgstr ""
1043
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: shinephp
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
- Tested up to: 5.1.1
7
- Stable tag: 4.50.2
8
  Requires PHP: 5.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -81,6 +81,12 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
81
 
82
  == Changelog =
83
 
 
 
 
 
 
 
84
  = [4.50.2] 01.04.2019 =
85
  * Fix: WordPress multisite: PHP Notice "wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead." was removed. URE uses 'wp_initialize_site' action now instead of deprecated 'wpmu_new_blog'. This fix provides correct roles replication from the main blog/site to a new created blog/site.
86
 
@@ -96,22 +102,8 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
96
  * Update: 'administrator' role protection was enhanced. URE always does not allow to revoke capability from 'administrator' role. That was possible earlier after the 'administrator' role update.
97
  * Update: 2 new actions 'ure_settings_tools_show' and 'ure_settings_tools_exec' allows to extends the list of sections available at the Settings->User Role Editor->Tools tab.
98
 
99
- = [4.49] 15.01.2019 =
100
- * Update: Selected role ID was added to "Delete role" confirmation dialog.
101
- * Update: Method URE_Base_Lib::get_short_list_str() was enhanced.
102
- * Update: Method URE_Base_Lib::get_blog_ids() was made public.
103
- * Update: Method URE_Lib::get_usermeta_table_name() was excluded.
104
- * Fix: PHP warning "Undefined index:'unexisted role ID'" was fixed at URE_Lib::roles_text() (wp-content/plugins/user-role-editor/includes/classes/lib.php:360).
105
- * Fix: Bug was fixed with incorrect usage of transient for option "Show deprecated capabilities".
106
-
107
- = [4.48] 03.01.2019 =
108
- * Update: Multisite: Sites list is not requested from the database on every page opened in order to reduce server load.
109
- * Update: URE plugin version update routine is called now at the wp-admin backend only.
110
- * Update: Direct access to URE_Lib::bbpress property was excluded as a preparation to future code enhancements.
111
-
112
  File changelog.txt contains the full list of changes.
113
 
114
-
115
  == Additional Documentation ==
116
 
117
  You can find more information about "User Role Editor" plugin at [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/)
@@ -120,8 +112,13 @@ I am ready to answer on your questions about plugin usage. Use [plugin page comm
120
 
121
  == Upgrade Notice ==
122
 
123
- = [4.50.2] 01.04.2019 =
124
- * Fix: WordPress multisite: PHP Notice "wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead." was removed. URE uses 'wp_initialize_site' action now instead of deprecated 'wpmu_new_blog'. This fix provides correct roles replication from the main blog/site to a new created blog/site.
 
 
 
 
 
125
 
126
 
127
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
+ Tested up to: 5.2
7
+ Stable tag: 4.51
8
  Requires PHP: 5.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
81
 
82
  == Changelog =
83
 
84
+ = [4.51] 21.05.2019 =
85
+ * New: Bulk actions were added to the Users page: "Add Role", "Revoke Role". Select role from the related drop-down menu and add/revoke it to/from the list of pre-selected users.
86
+ * Update: Bulk grant roles feature ("Grant roles" button at the "Users" page) and Bulk grant role to users without role ("Without role" button at the "Users" page) are protected by 'promote_users' capability instead of 'edit_users', exactly the same way as WordPress itself does for its "Change role to".
87
+ * Update: 'load-users.php' action is used instead of 'admin_init' to load support code for "Without role" and "Grant roles" button at the "Users" page.
88
+ * Update: URE ignores now a capability without ID in case it was added to the database somehow (other plugin bug, etc.). Such incorrect empty capability is removed from the capabilities list as a result after any role update.
89
+
90
  = [4.50.2] 01.04.2019 =
91
  * Fix: WordPress multisite: PHP Notice "wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead." was removed. URE uses 'wp_initialize_site' action now instead of deprecated 'wpmu_new_blog'. This fix provides correct roles replication from the main blog/site to a new created blog/site.
92
 
102
  * Update: 'administrator' role protection was enhanced. URE always does not allow to revoke capability from 'administrator' role. That was possible earlier after the 'administrator' role update.
103
  * Update: 2 new actions 'ure_settings_tools_show' and 'ure_settings_tools_exec' allows to extends the list of sections available at the Settings->User Role Editor->Tools tab.
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  File changelog.txt contains the full list of changes.
106
 
 
107
  == Additional Documentation ==
108
 
109
  You can find more information about "User Role Editor" plugin at [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/)
112
 
113
  == Upgrade Notice ==
114
 
115
+ = [4.51] 21.05.2019 =
116
+ * New: Bulk actions were added to the Users page: "Add Role", "Revoke Role". Select role from the related drop-down menu and add/revoke it to/from the list of pre-selected users.
117
+ * Update: Bulk grant roles feature ("Grant roles" button at the "Users" page) and Bulk grant role to users without role ("Without role" button at the "Users" page) are protected by 'promote_users' capability instead of 'edit_users', exactly the same way as WordPress itself does for its "Change role to".
118
+ * Update: 'load-users.php' action is used instead of 'admin_init' to load support code for "Without role" and "Grant roles" button at the "Users" page.
119
+ * Update: URE ignores now a capability without ID in case it was added to the database somehow (other plugin bug, etc.). Such incorrect empty capability is removed from the capabilities list as a result after any role update.
120
+
121
+
122
 
123
 
124
 
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.50.2
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
@@ -15,15 +15,15 @@ Copyright 2010-2019 Vladimir Garagulya (email: support@role-editor.com)
15
  */
16
 
17
  if ( ! function_exists( 'get_option' ) ) {
18
- header( 'HTTP/1.0 403 Forbidden' );
19
- die; // Silence is golden, direct call is prohibited
20
  }
21
 
22
  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.50.2' );
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.51
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
15
  */
16
 
17
  if ( ! function_exists( 'get_option' ) ) {
18
+ header( 'HTTP/1.0 403 Forbidden' );
19
+ die; // Silence is golden, direct call is prohibited
20
  }
21
 
22
  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.51' );
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__ ) );