User Role Editor - Version 4.32

Version Description

Download this release

Release Info

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

Code changes from version 4.31.1 to 4.32

includes/classes/ajax-processor.php CHANGED
@@ -97,6 +97,16 @@ class URE_Ajax_Processor {
97
  // end of get_users_without_role()
98
 
99
 
 
 
 
 
 
 
 
 
 
 
100
  protected function _dispatch() {
101
  switch ($this->action) {
102
  case 'get_caps_to_remove':
@@ -105,6 +115,9 @@ class URE_Ajax_Processor {
105
  case 'get_users_without_role':
106
  $answer = $this->get_users_without_role();
107
  break;
 
 
 
108
  default:
109
  $answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
110
  }
97
  // end of get_users_without_role()
98
 
99
 
100
+ protected function grant_roles() {
101
+
102
+ $answer = URE_Grant_Roles::process_user_request();
103
+
104
+ return $answer;
105
+
106
+ }
107
+ // end of grant_roles()
108
+
109
+
110
  protected function _dispatch() {
111
  switch ($this->action) {
112
  case 'get_caps_to_remove':
115
  case 'get_users_without_role':
116
  $answer = $this->get_users_without_role();
117
  break;
118
+ case 'grant_roles':
119
+ $answer = $this->grant_roles();
120
+ break;
121
  default:
122
  $answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
123
  }
includes/classes/capabilities-groups-manager.php CHANGED
@@ -157,7 +157,7 @@ class URE_Capabilities_Groups_Manager {
157
  $caps['manage_links'] = array('core', 'others');
158
  $caps['upload_files'] = array('core', 'general');
159
  $caps['import'] = array('core', 'general');
160
- $caps['unfiltered_html'] = array('core');
161
  if ($multisite) {
162
  $caps['unfiltered_html'] = array('deprecated');
163
  }
157
  $caps['manage_links'] = array('core', 'others');
158
  $caps['upload_files'] = array('core', 'general');
159
  $caps['import'] = array('core', 'general');
160
+ $caps['unfiltered_html'] = array('core','general');
161
  if ($multisite) {
162
  $caps['unfiltered_html'] = array('deprecated');
163
  }
includes/classes/grant-roles.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Project: User Role Editor plugin
4
+ * Author: Vladimir Garagulya
5
+ * Author email: support@role-editor.com
6
+ * Author URI: https://www.role-editor.com
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 {
13
+
14
+ private $lib = null;
15
+
16
+ public function __construct() {
17
+
18
+ $this->lib = URE_Lib::get_instance();
19
+
20
+ add_action('restrict_manage_users', array($this, 'show_grant_roles_html'));
21
+ add_action('admin_head', array(User_Role_Editor::get_instance(), 'add_css_to_users_page'));
22
+ add_action('admin_enqueue_scripts', array($this, 'load_js'));
23
+ }
24
+ // end of __construct()
25
+
26
+
27
+ private static function validate_users($users) {
28
+ if (!is_array($users)) {
29
+ return false;
30
+ }
31
+
32
+ foreach ($users as $user_id) {
33
+ if (!is_numeric($user_id)) {
34
+ return false;
35
+ }
36
+ if (!current_user_can('edit_user', $user_id)) {
37
+ return false;
38
+ }
39
+ }
40
+
41
+ return true;
42
+ }
43
+ // end of validate_users()
44
+
45
+
46
+ private static function validate_roles($roles) {
47
+
48
+ $editable_roles = get_editable_roles();
49
+ $valid_roles = array_keys($editable_roles);
50
+ foreach($roles as $role) {
51
+ if (!in_array($role, $valid_roles)) {
52
+ return false;
53
+ }
54
+ }
55
+
56
+ return true;
57
+ }
58
+ // end of validate_roles()
59
+
60
+
61
+ private static function grant_roles_to_user($user_id, $roles) {
62
+
63
+ $user = get_user_by('id', $user_id);
64
+ if (empty($user)) {
65
+ return;
66
+ }
67
+
68
+ $user->remove_all_caps();
69
+ foreach($roles as $role) {
70
+ $user->add_role($role);
71
+ }
72
+
73
+ }
74
+ // end of grant_roles_to_user()
75
+
76
+
77
+ public static function process_user_request() {
78
+
79
+ $users = $_POST['users'];
80
+ if (!self::validate_users($users)) {
81
+ $answer = array('result'=>'error', 'message'=>esc_html__('Invalid data at the users list', 'user-role-editor'));
82
+ return $answer;
83
+ }
84
+
85
+ $roles = $_POST['roles'];
86
+ if (!self::validate_roles($roles)) {
87
+ $answer = array('result'=>'error', 'message'=>esc_html__('Invalid data at the roles list', 'user-role-editor'));
88
+ return;
89
+ }
90
+
91
+ if (!current_user_can('edit_users')) {
92
+ $answer = array('result'=>'error', 'message'=>esc_html__('Not enough permissions', 'user-role-editor'));
93
+ return $answer;
94
+ }
95
+
96
+ foreach($users as $user_id) {
97
+ self::grant_roles_to_user($user_id, $roles);
98
+ }
99
+
100
+ $answer = array();
101
+
102
+ return $answer;
103
+ }
104
+ // end of process_user_request()
105
+
106
+
107
+ private function select_roles_html() {
108
+ $show_admin_role = $this->lib->show_admin_role_allowed();
109
+ $roles = get_editable_roles();
110
+ foreach ($roles as $role_id => $role) {
111
+ if (!$show_admin_role && $role_id=='administrator') {
112
+ continue;
113
+ }
114
+ echo '<label for="wp_role_' . $role_id . '"><input type="checkbox" id="wp_role_' . $role_id .
115
+ '" name="ure_roles[]" value="' . $role_id . '" />&nbsp;' .
116
+ esc_html__($role['name'], 'user-role-editor') .' ('. $role_id .')</label><br />'. PHP_EOL;
117
+ }
118
+ }
119
+ // end of show_secondary_roles()
120
+
121
+
122
+ public function show_grant_roles_html() {
123
+ if (!$this->lib->is_right_admin_path('users.php')) {
124
+ return;
125
+ }
126
+ ?>
127
+ &nbsp;&nbsp;<input type="button" name="ure_grant_roles" id="ure_grant_roles" class="button"
128
+ value="Grant Roles" onclick="ure_show_grant_roles_dialog();">
129
+ <div id="ure_grant_roles_dialog" class="ure-dialog">
130
+ <div id="ure_grant_roles_content" style="padding: 10px;">
131
+ <?php
132
+ $this->select_roles_html();
133
+ ?>
134
+ </div>
135
+ </div>
136
+ <div id="ure_task_status" style="display:none;position:absolute;top:10px;right:10px;padding:10px;background-color:#000000;color:#ffffff;">
137
+ <img src="<?php echo URE_PLUGIN_URL .'/images/ajax-loader.gif';?>" width="16" height="16"/> <?php esc_html_e('Working...','user-role-editor');?>
138
+ </div>
139
+ <?php
140
+
141
+
142
+ }
143
+ // end of show_grant_roles_button()
144
+
145
+
146
+ public function load_js() {
147
+ wp_register_script('ure-users-grant-roles', plugins_url('/js/users-grant-roles.js', URE_PLUGIN_FULL_PATH));
148
+ wp_enqueue_script('ure-users-grant-roles', '', array(), false, true);
149
+ wp_localize_script('ure-users-grant-roles', 'ure_users_grant_roles_data', array(
150
+ 'wp_nonce' => wp_create_nonce('user-role-editor'),
151
+ 'dialog_title'=> esc_html__('Grant roles to selected users', 'user-role-editor'),
152
+ 'select_users_first'=> esc_html__('Select users to which you wish to grant multiple roles!', 'user-role-editor'),
153
+ 'select_roles_first'=> esc_html__('Select role(s) which you wish to grant!', 'user-role-editor')
154
+ ));
155
+ }
156
+ // end of load_js()
157
+
158
+ }
159
+ // end of URE_Grant_Roles class
includes/classes/user-role-editor.php CHANGED
@@ -9,6 +9,9 @@
9
  */
10
 
11
  class User_Role_Editor {
 
 
 
12
  // plugin specific library object: common code stuff, including options data processor
13
  protected $lib = null;
14
 
@@ -25,10 +28,43 @@ class User_Role_Editor {
25
  // URE pages hook suffixes
26
  protected $ure_hook_suffixes = null;
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  /**
29
  * class constructor
30
  */
31
- public function __construct() {
32
 
33
  if (empty($this->lib)) {
34
  $this->lib = URE_Lib::get_instance('user_role_editor');
@@ -152,11 +188,13 @@ class User_Role_Editor {
152
  $count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
153
  if ($count_users_without_role) {
154
  add_action('restrict_manage_users', array($this, 'move_users_from_no_role_button'));
155
- add_action('admin_init', array($this, 'add_css_to_users_page'));
156
  add_action('admin_footer', array($this, 'add_js_to_users_page'));
157
  }
158
  }
159
 
 
 
160
  add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
161
  }
162
  // end of plugin_init()
9
  */
10
 
11
  class User_Role_Editor {
12
+
13
+ protected static $instance = null; // object exemplar reference
14
+
15
  // plugin specific library object: common code stuff, including options data processor
16
  protected $lib = null;
17
 
28
  // URE pages hook suffixes
29
  protected $ure_hook_suffixes = null;
30
 
31
+
32
+ public static function get_instance() {
33
+ if (self::$instance===null) {
34
+ self::$instance = new User_Role_Editor();
35
+ }
36
+
37
+ return self::$instance;
38
+ }
39
+ // end of get_instance()
40
+
41
+
42
+ /**
43
+ * Private clone method to prevent cloning of the instance of the *Singleton*
44
+ *
45
+ * @return void
46
+ */
47
+ private function __clone() {
48
+
49
+ }
50
+ // end of __clone()
51
+
52
+ /**
53
+ * Private unserialize method to prevent unserializing of the *Singleton*
54
+ * instance.
55
+ *
56
+ * @return void
57
+ */
58
+ private function __wakeup() {
59
+
60
+ }
61
+ // end of __wakeup()
62
+
63
+
64
  /**
65
  * class constructor
66
  */
67
+ protected function __construct() {
68
 
69
  if (empty($this->lib)) {
70
  $this->lib = URE_Lib::get_instance('user_role_editor');
188
  $count_users_without_role = $this->lib->get_option('count_users_without_role', 0);
189
  if ($count_users_without_role) {
190
  add_action('restrict_manage_users', array($this, 'move_users_from_no_role_button'));
191
+ add_action('admin_head', array($this, 'add_css_to_users_page'));
192
  add_action('admin_footer', array($this, 'add_js_to_users_page'));
193
  }
194
  }
195
 
196
+ new URE_Grant_Roles();
197
+
198
  add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
199
  }
200
  // end of plugin_init()
includes/loader.php CHANGED
@@ -14,6 +14,7 @@ require_once(URE_PLUGIN_DIR .'includes/classes/task-queue.php');
14
  require_once(URE_PLUGIN_DIR .'includes/classes/own-capabilities.php');
15
  require_once(URE_PLUGIN_DIR .'includes/classes/bbpress.php');
16
  require_once(URE_PLUGIN_DIR .'includes/classes/assign-role.php');
 
17
  require_once(URE_PLUGIN_DIR .'includes/classes/user-other-roles.php');
18
  require_once(URE_PLUGIN_DIR .'includes/classes/protect-admin.php');
19
  require_once(URE_PLUGIN_DIR .'includes/classes/ajax-processor.php');
14
  require_once(URE_PLUGIN_DIR .'includes/classes/own-capabilities.php');
15
  require_once(URE_PLUGIN_DIR .'includes/classes/bbpress.php');
16
  require_once(URE_PLUGIN_DIR .'includes/classes/assign-role.php');
17
+ require_once(URE_PLUGIN_DIR .'includes/classes/grant-roles.php');
18
  require_once(URE_PLUGIN_DIR .'includes/classes/user-other-roles.php');
19
  require_once(URE_PLUGIN_DIR .'includes/classes/protect-admin.php');
20
  require_once(URE_PLUGIN_DIR .'includes/classes/ajax-processor.php');
js/ure-users.js CHANGED
@@ -1,4 +1,4 @@
1
- /* User Role Editor for users.php */
2
 
3
  jQuery(document).ready(function() {
4
  jQuery('#move_from_no_role_content').append(ure_users_data.to +' <select id="ure_new_role" name="ure_new_role"></select>');
1
+ /* User Role Editor: support of 'Without Roles' button for users.php */
2
 
3
  jQuery(document).ready(function() {
4
  jQuery('#move_from_no_role_content').append(ure_users_data.to +' <select id="ure_new_role" name="ure_new_role"></select>');
js/users-grant-roles.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /*
3
+ * User Role Editor: support of 'Grant Roles' button for Users page (wp-admin/users.php)
4
+ */
5
+
6
+
7
+ function ure_get_selected_checkboxes(item_name) {
8
+ var items = jQuery('input[type="checkbox"][name="'+ item_name +'\\[\\]"]:checked').map(function() { return this.value; }).get();
9
+
10
+ return items;
11
+ }
12
+
13
+
14
+ function ure_show_grant_roles_dialog() {
15
+ var users = ure_get_selected_checkboxes('users');
16
+ if (users.length==0) {
17
+ alert(ure_users_grant_roles_data.select_users_first);
18
+ return;
19
+ }
20
+ jQuery('#ure_grant_roles_dialog').dialog({
21
+ dialogClass: 'wp-dialog',
22
+ modal: true,
23
+ autoOpen: true,
24
+ closeOnEscape: true,
25
+ width: 400,
26
+ height: 400,
27
+ resizable: false,
28
+ title: ure_users_grant_roles_data.dialog_title,
29
+ 'buttons': {
30
+ 'OK': function () {
31
+ if (!ure_grant_roles()) {
32
+ return false;
33
+ }
34
+ jQuery(this).dialog('close');
35
+ return true;
36
+ },
37
+ Cancel: function () {
38
+ jQuery(this).dialog('close');
39
+ return false;
40
+ }
41
+ }
42
+ });
43
+ }
44
+
45
+
46
+ function ure_grant_roles() {
47
+
48
+ var roles = ure_get_selected_checkboxes('ure_roles');
49
+ if (roles.length==0) {
50
+ alert(ure_users_grant_roles_data.select_roles_first);
51
+ return false;
52
+ }
53
+ jQuery('#ure_task_status').show();
54
+ var users = ure_get_selected_checkboxes('users');
55
+ var data = {
56
+ 'action': 'ure_ajax',
57
+ 'sub_action':'grant_roles',
58
+ 'users': users,
59
+ 'roles': roles,
60
+ 'wp_nonce': ure_users_grant_roles_data.wp_nonce};
61
+ jQuery.post(ajaxurl, data, ure_page_reload, 'json');
62
+
63
+ return true;
64
+ }
65
+
66
+ function ure_page_reload(response) {
67
+
68
+ if (response.result=='error') {
69
+ jQuery('#ure_task_status').hide();
70
+ alert(response.message);
71
+ return;
72
+ }
73
+
74
+ document.location = window.location.href +'&update=promote' ;
75
+
76
+ }
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-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"
@@ -22,9 +22,9 @@ 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
 
@@ -42,7 +42,7 @@ 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 ""
@@ -68,7 +68,7 @@ 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 ""
@@ -82,9 +82,9 @@ 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
 
@@ -116,6 +116,34 @@ msgstr ""
116
  msgid "capabilities were removed successfully"
117
  msgstr ""
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  #: ../includes/classes/role-additional-options.php:69
120
  msgid "Hide admin bar"
121
  msgstr ""
@@ -255,414 +283,414 @@ msgid ""
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,7 +705,7 @@ msgid "Select additional roles for this user"
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,179 +717,179 @@ msgstr ""
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!"
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2017-03-04 12:06+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/ure-lib.php:232
26
+ #: ../includes/classes/user-role-editor.php:563
27
+ #: ../includes/classes/user-role-editor.php:594
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:535
46
  #: ../includes/settings-template.php:21
47
  msgid "General"
48
  msgstr ""
68
  msgstr ""
69
 
70
  #: ../includes/classes/capabilities-groups-manager.php:121
71
+ #: ../includes/classes/user-role-editor.php:553
72
  #: ../includes/settings-template.php:34
73
  msgid "Multisite"
74
  msgstr ""
82
  msgstr ""
83
 
84
  #: ../includes/classes/capability.php:56 ../includes/classes/capability.php:164
85
+ #: ../includes/classes/ure-lib.php:1225 ../includes/classes/ure-lib.php:1500
86
+ #: ../includes/classes/ure-lib.php:1616 ../includes/classes/ure-lib.php:1664
87
+ #: ../includes/classes/user-role-editor.php:804
88
  msgid "Insufficient permissions to work with User Role Editor"
89
  msgstr ""
90
 
116
  msgid "capabilities were removed successfully"
117
  msgstr ""
118
 
119
+ #: ../includes/classes/grant-roles.php:81
120
+ msgid "Invalid data at the users list"
121
+ msgstr ""
122
+
123
+ #: ../includes/classes/grant-roles.php:87
124
+ msgid "Invalid data at the roles list"
125
+ msgstr ""
126
+
127
+ #: ../includes/classes/grant-roles.php:92
128
+ msgid "Not enough permissions"
129
+ msgstr ""
130
+
131
+ #: ../includes/classes/grant-roles.php:137
132
+ msgid "Working..."
133
+ msgstr ""
134
+
135
+ #: ../includes/classes/grant-roles.php:151
136
+ msgid "Grant roles to selected users"
137
+ msgstr ""
138
+
139
+ #: ../includes/classes/grant-roles.php:152
140
+ msgid "Select users to which you wish to grant multiple roles!"
141
+ msgstr ""
142
+
143
+ #: ../includes/classes/grant-roles.php:153
144
+ msgid "Select role(s) which you wish to grant!"
145
+ msgstr ""
146
+
147
  #: ../includes/classes/role-additional-options.php:69
148
  msgid "Hide admin bar"
149
  msgstr ""
283
  "limitation."
284
  msgstr ""
285
 
286
+ #: ../includes/classes/ure-lib.php:209
287
  msgid "Error: wrong request"
288
  msgstr ""
289
 
290
+ #: ../includes/classes/ure-lib.php:293
291
  msgid "Error: "
292
  msgstr ""
293
 
294
+ #: ../includes/classes/ure-lib.php:293
295
  msgid "Role"
296
  msgstr ""
297
 
298
+ #: ../includes/classes/ure-lib.php:294
299
  msgid "does not exist"
300
  msgstr ""
301
 
302
+ #: ../includes/classes/ure-lib.php:337
303
  msgid "Role is updated successfully"
304
  msgstr ""
305
 
306
+ #: ../includes/classes/ure-lib.php:339
307
  msgid "Roles are updated for all network"
308
  msgstr ""
309
 
310
+ #: ../includes/classes/ure-lib.php:345
311
  msgid "Error occured during role(s) update"
312
  msgstr ""
313
 
314
+ #: ../includes/classes/ure-lib.php:352
315
  msgid "User capabilities are updated successfully"
316
  msgstr ""
317
 
318
+ #: ../includes/classes/ure-lib.php:357
319
  msgid "Error occured during user update"
320
  msgstr ""
321
 
322
+ #: ../includes/classes/ure-lib.php:415
323
  msgid "User Roles are restored to WordPress default values. "
324
  msgstr ""
325
 
326
+ #: ../includes/classes/ure-lib.php:1463
327
  msgid "Error is occur. Please check the log file."
328
  msgstr ""
329
 
330
+ #: ../includes/classes/ure-lib.php:1509 ../includes/classes/ure-lib.php:1576
331
  msgid ""
332
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
333
  "only!"
334
  msgstr ""
335
 
336
+ #: ../includes/classes/ure-lib.php:1513 ../includes/classes/ure-lib.php:1580
337
  msgid ""
338
  "Error: WordPress does not support numeric Role name (ID). Add latin "
339
  "characters to it."
340
  msgstr ""
341
 
342
+ #: ../includes/classes/ure-lib.php:1528
343
  #, php-format
344
  msgid "Role %s exists already"
345
  msgstr ""
346
 
347
+ #: ../includes/classes/ure-lib.php:1543
348
  msgid "Error is encountered during new role create operation"
349
  msgstr ""
350
 
351
+ #: ../includes/classes/ure-lib.php:1545
352
  #, php-format
353
  msgid "Role %s is created successfully"
354
  msgstr ""
355
 
356
+ #: ../includes/classes/ure-lib.php:1569
357
  msgid "Error: Role ID is empty!"
358
  msgstr ""
359
 
360
+ #: ../includes/classes/ure-lib.php:1587
361
  msgid "Error: Empty role display name is not allowed."
362
  msgstr ""
363
 
364
+ #: ../includes/classes/ure-lib.php:1594
365
  #, php-format
366
  msgid "Role %s does not exists"
367
  msgstr ""
368
 
369
+ #: ../includes/classes/ure-lib.php:1602
370
  #, php-format
371
  msgid "Role %s is renamed to %s successfully"
372
  msgstr ""
373
 
374
+ #: ../includes/classes/ure-lib.php:1675
375
  msgid "Error encountered during role delete operation"
376
  msgstr ""
377
 
378
+ #: ../includes/classes/ure-lib.php:1677
379
  msgid "Unused roles are deleted successfully"
380
  msgstr ""
381
 
382
+ #: ../includes/classes/ure-lib.php:1679
383
  #, php-format
384
  msgid "Role %s is deleted successfully"
385
  msgstr ""
386
 
387
+ #: ../includes/classes/ure-lib.php:1710
388
  msgid "Error encountered during default role change operation"
389
  msgstr ""
390
 
391
+ #: ../includes/classes/ure-lib.php:1713
392
  #, php-format
393
  msgid "Default role for new users is set to %s successfully"
394
  msgstr ""
395
 
396
+ #: ../includes/classes/ure-lib.php:1716
397
  msgid "Can not set Administrator role as a default one"
398
  msgstr ""
399
 
400
+ #: ../includes/classes/ure-lib.php:1718
401
  msgid "This role does not exist - "
402
  msgstr ""
403
 
404
+ #: ../includes/classes/ure-lib.php:1734
405
  msgid "Editor"
406
  msgstr ""
407
 
408
+ #: ../includes/classes/ure-lib.php:1735
409
  msgid "Author"
410
  msgstr ""
411
 
412
+ #: ../includes/classes/ure-lib.php:1736
413
  msgid "Contributor"
414
  msgstr ""
415
 
416
+ #: ../includes/classes/ure-lib.php:1737
417
  msgid "Subscriber"
418
  msgstr ""
419
 
420
+ #: ../includes/classes/ure-lib.php:1739
421
  msgid "Switch themes"
422
  msgstr ""
423
 
424
+ #: ../includes/classes/ure-lib.php:1740
425
  msgid "Edit themes"
426
  msgstr ""
427
 
428
+ #: ../includes/classes/ure-lib.php:1741
429
  msgid "Activate plugins"
430
  msgstr ""
431
 
432
+ #: ../includes/classes/ure-lib.php:1742
433
  msgid "Edit plugins"
434
  msgstr ""
435
 
436
+ #: ../includes/classes/ure-lib.php:1743
437
  msgid "Edit users"
438
  msgstr ""
439
 
440
+ #: ../includes/classes/ure-lib.php:1744
441
  msgid "Edit files"
442
  msgstr ""
443
 
444
+ #: ../includes/classes/ure-lib.php:1745
445
  msgid "Manage options"
446
  msgstr ""
447
 
448
+ #: ../includes/classes/ure-lib.php:1746
449
  msgid "Moderate comments"
450
  msgstr ""
451
 
452
+ #: ../includes/classes/ure-lib.php:1747
453
  msgid "Manage categories"
454
  msgstr ""
455
 
456
+ #: ../includes/classes/ure-lib.php:1748
457
  msgid "Manage links"
458
  msgstr ""
459
 
460
+ #: ../includes/classes/ure-lib.php:1749
461
  msgid "Upload files"
462
  msgstr ""
463
 
464
+ #: ../includes/classes/ure-lib.php:1750
465
  msgid "Import"
466
  msgstr ""
467
 
468
+ #: ../includes/classes/ure-lib.php:1751
469
  msgid "Unfiltered html"
470
  msgstr ""
471
 
472
+ #: ../includes/classes/ure-lib.php:1752
473
  msgid "Edit posts"
474
  msgstr ""
475
 
476
+ #: ../includes/classes/ure-lib.php:1753
477
  msgid "Edit others posts"
478
  msgstr ""
479
 
480
+ #: ../includes/classes/ure-lib.php:1754
481
  msgid "Edit published posts"
482
  msgstr ""
483
 
484
+ #: ../includes/classes/ure-lib.php:1755
485
  msgid "Publish posts"
486
  msgstr ""
487
 
488
+ #: ../includes/classes/ure-lib.php:1756
489
  msgid "Edit pages"
490
  msgstr ""
491
 
492
+ #: ../includes/classes/ure-lib.php:1757
493
  msgid "Read"
494
  msgstr ""
495
 
496
+ #: ../includes/classes/ure-lib.php:1758
497
  msgid "Level 10"
498
  msgstr ""
499
 
500
+ #: ../includes/classes/ure-lib.php:1759
501
  msgid "Level 9"
502
  msgstr ""
503
 
504
+ #: ../includes/classes/ure-lib.php:1760
505
  msgid "Level 8"
506
  msgstr ""
507
 
508
+ #: ../includes/classes/ure-lib.php:1761
509
  msgid "Level 7"
510
  msgstr ""
511
 
512
+ #: ../includes/classes/ure-lib.php:1762
513
  msgid "Level 6"
514
  msgstr ""
515
 
516
+ #: ../includes/classes/ure-lib.php:1763
517
  msgid "Level 5"
518
  msgstr ""
519
 
520
+ #: ../includes/classes/ure-lib.php:1764
521
  msgid "Level 4"
522
  msgstr ""
523
 
524
+ #: ../includes/classes/ure-lib.php:1765
525
  msgid "Level 3"
526
  msgstr ""
527
 
528
+ #: ../includes/classes/ure-lib.php:1766
529
  msgid "Level 2"
530
  msgstr ""
531
 
532
+ #: ../includes/classes/ure-lib.php:1767
533
  msgid "Level 1"
534
  msgstr ""
535
 
536
+ #: ../includes/classes/ure-lib.php:1768
537
  msgid "Level 0"
538
  msgstr ""
539
 
540
+ #: ../includes/classes/ure-lib.php:1769
541
  msgid "Edit others pages"
542
  msgstr ""
543
 
544
+ #: ../includes/classes/ure-lib.php:1770
545
  msgid "Edit published pages"
546
  msgstr ""
547
 
548
+ #: ../includes/classes/ure-lib.php:1771
549
  msgid "Publish pages"
550
  msgstr ""
551
 
552
+ #: ../includes/classes/ure-lib.php:1772
553
  msgid "Delete pages"
554
  msgstr ""
555
 
556
+ #: ../includes/classes/ure-lib.php:1773
557
  msgid "Delete others pages"
558
  msgstr ""
559
 
560
+ #: ../includes/classes/ure-lib.php:1774
561
  msgid "Delete published pages"
562
  msgstr ""
563
 
564
+ #: ../includes/classes/ure-lib.php:1775
565
  msgid "Delete posts"
566
  msgstr ""
567
 
568
+ #: ../includes/classes/ure-lib.php:1776
569
  msgid "Delete others posts"
570
  msgstr ""
571
 
572
+ #: ../includes/classes/ure-lib.php:1777
573
  msgid "Delete published posts"
574
  msgstr ""
575
 
576
+ #: ../includes/classes/ure-lib.php:1778
577
  msgid "Delete private posts"
578
  msgstr ""
579
 
580
+ #: ../includes/classes/ure-lib.php:1779
581
  msgid "Edit private posts"
582
  msgstr ""
583
 
584
+ #: ../includes/classes/ure-lib.php:1780
585
  msgid "Read private posts"
586
  msgstr ""
587
 
588
+ #: ../includes/classes/ure-lib.php:1781
589
  msgid "Delete private pages"
590
  msgstr ""
591
 
592
+ #: ../includes/classes/ure-lib.php:1782
593
  msgid "Edit private pages"
594
  msgstr ""
595
 
596
+ #: ../includes/classes/ure-lib.php:1783
597
  msgid "Read private pages"
598
  msgstr ""
599
 
600
+ #: ../includes/classes/ure-lib.php:1784
601
  msgid "Delete users"
602
  msgstr ""
603
 
604
+ #: ../includes/classes/ure-lib.php:1785
605
  msgid "Create users"
606
  msgstr ""
607
 
608
+ #: ../includes/classes/ure-lib.php:1786
609
  msgid "Unfiltered upload"
610
  msgstr ""
611
 
612
+ #: ../includes/classes/ure-lib.php:1787
613
  msgid "Edit dashboard"
614
  msgstr ""
615
 
616
+ #: ../includes/classes/ure-lib.php:1788
617
  msgid "Update plugins"
618
  msgstr ""
619
 
620
+ #: ../includes/classes/ure-lib.php:1789
621
  msgid "Delete plugins"
622
  msgstr ""
623
 
624
+ #: ../includes/classes/ure-lib.php:1790
625
  msgid "Install plugins"
626
  msgstr ""
627
 
628
+ #: ../includes/classes/ure-lib.php:1791
629
  msgid "Update themes"
630
  msgstr ""
631
 
632
+ #: ../includes/classes/ure-lib.php:1792
633
  msgid "Install themes"
634
  msgstr ""
635
 
636
+ #: ../includes/classes/ure-lib.php:1793
637
  msgid "Update core"
638
  msgstr ""
639
 
640
+ #: ../includes/classes/ure-lib.php:1794
641
  msgid "List users"
642
  msgstr ""
643
 
644
+ #: ../includes/classes/ure-lib.php:1795
645
  msgid "Remove users"
646
  msgstr ""
647
 
648
+ #: ../includes/classes/ure-lib.php:1796
649
  msgid "Add users"
650
  msgstr ""
651
 
652
+ #: ../includes/classes/ure-lib.php:1797
653
  msgid "Promote users"
654
  msgstr ""
655
 
656
+ #: ../includes/classes/ure-lib.php:1798
657
  msgid "Edit theme options"
658
  msgstr ""
659
 
660
+ #: ../includes/classes/ure-lib.php:1799
661
  msgid "Delete themes"
662
  msgstr ""
663
 
664
+ #: ../includes/classes/ure-lib.php:1800
665
  msgid "Export"
666
  msgstr ""
667
 
668
+ #: ../includes/classes/ure-lib.php:1965
669
  msgid "Version:"
670
  msgstr ""
671
 
672
+ #: ../includes/classes/ure-lib.php:1966
673
  msgid "Author's website"
674
  msgstr ""
675
 
676
+ #: ../includes/classes/ure-lib.php:1967
677
  msgid "Plugin webpage"
678
  msgstr ""
679
 
680
+ #: ../includes/classes/ure-lib.php:1968
681
  msgid "Plugin download"
682
  msgstr ""
683
 
684
+ #: ../includes/classes/ure-lib.php:1969
685
+ #: ../includes/classes/user-role-editor.php:512
686
  msgid "Changelog"
687
  msgstr ""
688
 
689
+ #: ../includes/classes/ure-lib.php:1970
690
  msgid "FAQ"
691
  msgstr ""
692
 
693
+ #: ../includes/classes/ure-lib.php:2152
694
  #, php-format
695
  msgid "Denied: %s"
696
  msgstr ""
705
  msgstr ""
706
 
707
  #: ../includes/classes/user-other-roles.php:161
708
+ #: ../includes/classes/user-role-editor.php:394
709
  msgid "Capabilities"
710
  msgstr ""
711
 
717
  msgid "Additional Capabilities"
718
  msgstr ""
719
 
720
+ #: ../includes/classes/user-role-editor.php:293
721
  msgid "Change role for users without role"
722
  msgstr ""
723
 
724
+ #: ../includes/classes/user-role-editor.php:294
725
  msgid "To:"
726
  msgstr ""
727
 
728
+ #: ../includes/classes/user-role-editor.php:295
729
  msgid "No rights"
730
  msgstr ""
731
 
732
+ #: ../includes/classes/user-role-editor.php:296
733
  msgid "Provide new role"
734
  msgstr ""
735
 
736
+ #: ../includes/classes/user-role-editor.php:368
737
+ #: ../includes/classes/user-role-editor.php:370
738
  msgid "You do not have permission to edit this user."
739
  msgstr ""
740
 
741
+ #: ../includes/classes/user-role-editor.php:486
742
+ #: ../includes/classes/user-role-editor.php:499
743
  msgid "Settings"
744
  msgstr ""
745
 
746
+ #: ../includes/classes/user-role-editor.php:541
747
  #: ../includes/settings-template.php:26
748
  msgid "Additional Modules"
749
  msgstr ""
750
 
751
+ #: ../includes/classes/user-role-editor.php:547
752
  #: ../includes/settings-template.php:30
753
  msgid "Default Roles"
754
  msgstr ""
755
 
756
+ #: ../includes/classes/user-role-editor.php:657
757
+ #: ../includes/classes/user-role-editor.php:675
758
+ #: ../includes/classes/user-role-editor.php:720
759
  msgid "User Role Editor options are updated"
760
  msgstr ""
761
 
762
+ #: ../includes/classes/user-role-editor.php:703
763
  msgid "Default Roles are updated"
764
  msgstr ""
765
 
766
+ #: ../includes/classes/user-role-editor.php:729
767
  msgid ""
768
  "You do not have sufficient permissions to manage options for User Role "
769
  "Editor."
770
  msgstr ""
771
 
772
+ #: ../includes/classes/user-role-editor.php:842
773
  msgid "Confirm"
774
  msgstr ""
775
 
776
+ #: ../includes/classes/user-role-editor.php:843
777
  msgid "Yes"
778
  msgstr ""
779
 
780
+ #: ../includes/classes/user-role-editor.php:844
781
  msgid "No"
782
  msgstr ""
783
 
784
+ #: ../includes/classes/user-role-editor.php:845
785
  msgid "Select All"
786
  msgstr ""
787
 
788
+ #: ../includes/classes/user-role-editor.php:846
789
  msgid "Unselect All"
790
  msgstr ""
791
 
792
+ #: ../includes/classes/user-role-editor.php:847
793
  msgid "Reverse"
794
  msgstr ""
795
 
796
+ #: ../includes/classes/user-role-editor.php:848
797
  msgid "Update"
798
  msgstr ""
799
 
800
+ #: ../includes/classes/user-role-editor.php:849
801
  msgid "Please confirm permissions update"
802
  msgstr ""
803
 
804
+ #: ../includes/classes/user-role-editor.php:850
805
  msgid "Add New Role"
806
  msgstr ""
807
 
808
+ #: ../includes/classes/user-role-editor.php:851
809
+ #: ../includes/classes/user-role-editor.php:856
810
  msgid "Rename Role"
811
  msgstr ""
812
 
813
+ #: ../includes/classes/user-role-editor.php:852
814
  msgid " Role name (ID) can not be empty!"
815
  msgstr ""
816
 
817
+ #: ../includes/classes/user-role-editor.php:853
818
  msgid ""
819
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
820
  "only!"
821
  msgstr ""
822
 
823
+ #: ../includes/classes/user-role-editor.php:854
824
  msgid ""
825
  " WordPress does not support numeric Role name (ID). Add latin characters to "
826
  "it."
827
  msgstr ""
828
 
829
+ #: ../includes/classes/user-role-editor.php:855
830
  msgid "Add Role"
831
  msgstr ""
832
 
833
+ #: ../includes/classes/user-role-editor.php:857
834
  msgid "Delete Role"
835
  msgstr ""
836
 
837
+ #: ../includes/classes/user-role-editor.php:858
838
  msgid "Cancel"
839
  msgstr ""
840
 
841
+ #: ../includes/classes/user-role-editor.php:859
842
  msgid "Add Capability"
843
  msgstr ""
844
 
845
+ #: ../includes/classes/user-role-editor.php:860
846
+ #: ../includes/classes/user-role-editor.php:869
847
  msgid "Delete Capability"
848
  msgstr ""
849
 
850
+ #: ../includes/classes/user-role-editor.php:861
851
  msgid "Reset"
852
  msgstr ""
853
 
854
+ #: ../includes/classes/user-role-editor.php:862
855
  msgid "DANGER! Resetting will restore default settings from WordPress Core."
856
  msgstr ""
857
 
858
+ #: ../includes/classes/user-role-editor.php:863
859
  msgid ""
860
  "If any plugins have changed capabilities in any way upon installation (such "
861
  "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
862
  msgstr ""
863
 
864
+ #: ../includes/classes/user-role-editor.php:864
865
  msgid ""
866
  "For more information on how to undo changes and restore plugin capabilities "
867
  "go to"
868
  msgstr ""
869
 
870
+ #: ../includes/classes/user-role-editor.php:866
871
  msgid "Continue?"
872
  msgstr ""
873
 
874
+ #: ../includes/classes/user-role-editor.php:867
875
  msgid "Default Role"
876
  msgstr ""
877
 
878
+ #: ../includes/classes/user-role-editor.php:868
879
  msgid "Set New Default Role"
880
  msgstr ""
881
 
882
+ #: ../includes/classes/user-role-editor.php:870
883
  msgid ""
884
  "Warning! Be careful - removing critical capability could crash some plugin "
885
  "or other custom code"
886
  msgstr ""
887
 
888
+ #: ../includes/classes/user-role-editor.php:871
889
  msgid " Capability name (ID) can not be empty!"
890
  msgstr ""
891
 
892
+ #: ../includes/classes/user-role-editor.php:872
893
  msgid ""
894
  " Capability name (ID) must contain latin characters, digits, hyphens or "
895
  "underscore only!"
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: 4.7
7
- Stable tag: 4.31.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -24,7 +24,7 @@ Multi-site support is provided.
24
  To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](http://shinephp.com)
25
 
26
 
27
- Do you need more functionality with quality support in the real time? Do you wish to remove advertisements from User Role Editor pages?
28
  [Buy Pro version](https://www.role-editor.com).
29
  [User Role Editor Pro](https://www.role-editor.com) includes extra modules:
30
  <ul>
@@ -67,6 +67,7 @@ To read full FAQ section visit [this page](http://www.shinephp.com/user-role-edi
67
  3. screenshot-3.png User Capabilities link
68
  4. screenshot-4.png User Capabilities Editor
69
  5. screenshot-5.png Bulk change role for users without roles
 
70
 
71
  To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](shinephp.com).
72
 
@@ -75,7 +76,14 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
75
  If you wish to check available translations or help with plugin translation to your language visit this link
76
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
77
 
 
78
  == Changelog ==
 
 
 
 
 
 
79
  = [4.31.1] 06.01.2017 =
80
  * Fix: WP transients get/set were removed from URE_Own_Capabilities class. It leaded to the MySQL deadlock in some cases.
81
  * Update: Base_Lib::get_request_var() sanitizes user input by PHP's filter_var() in addition to WordPress core's esc_attr().
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: 4.7.3
7
+ Stable tag: 4.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
24
  To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](http://shinephp.com)
25
 
26
 
27
+ Do you need more functionality with quality support in a real time? Do you wish to remove advertisements from User Role Editor pages?
28
  [Buy Pro version](https://www.role-editor.com).
29
  [User Role Editor Pro](https://www.role-editor.com) includes extra modules:
30
  <ul>
67
  3. screenshot-3.png User Capabilities link
68
  4. screenshot-4.png User Capabilities Editor
69
  5. screenshot-5.png Bulk change role for users without roles
70
+ 6. screenshot-6.png Assign multiple roles to the selected users
71
 
72
  To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/user-role-editor-wordpress-plugin/) at [shinephp.com](shinephp.com).
73
 
76
  If you wish to check available translations or help with plugin translation to your language visit this link
77
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
78
 
79
+
80
  == Changelog ==
81
+
82
+ = [4.32] 09.03.2017 =
83
+ * New: Button "Grant Roles" allows to "Assign multiple roles to the selected users" directly from the "Users" page.
84
+ * Update: singleton template was applied to the main User_Role_Editor class. While GLOBALS['user-role-editor'] reference to the instance of User_Role_Editor class is still available for the compatibility purpose, call to User_Role_Editor::get_instance() is the best way now to get a reference to the instance of User_Role_Editor class.
85
+ * Fix: Missed 'unfiltered_html' capability is shown now at the 'General' capabilities group too.
86
+
87
  = [4.31.1] 06.01.2017 =
88
  * Fix: WP transients get/set were removed from URE_Own_Capabilities class. It leaded to the MySQL deadlock in some cases.
89
  * Update: Base_Lib::get_request_var() sanitizes user input by PHP's filter_var() in addition to WordPress core's esc_attr().
screenshot-6.png ADDED
Binary file
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.31.1
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
@@ -11,7 +11,7 @@ Domain Path: /lang/
11
  */
12
 
13
  /*
14
- Copyright 2010-2016 Vladimir Garagulya (email: support@role-editor.com)
15
  */
16
 
17
  if (!function_exists('get_option')) {
@@ -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.31.1');
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__));
@@ -47,4 +47,4 @@ Ure_Lib::check_version(get_bloginfo('version'), $ure_required_wp_version, $exit_
47
 
48
  require_once(URE_PLUGIN_DIR .'includes/loader.php');
49
 
50
- $GLOBALS['user_role_editor'] = new User_Role_Editor();
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.32
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
11
  */
12
 
13
  /*
14
+ Copyright 2010-2017 Vladimir Garagulya (email: support@role-editor.com)
15
  */
16
 
17
  if (!function_exists('get_option')) {
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.32');
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__));
47
 
48
  require_once(URE_PLUGIN_DIR .'includes/loader.php');
49
 
50
+ $GLOBALS['user_role_editor'] = User_Role_Editor::get_instance();