User Role Editor - Version 4.27

Version Description

Download this release

Release Info

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

Code changes from version 4.26.3 to 4.27

css/ure-admin.css CHANGED
@@ -21,12 +21,8 @@
21
  text-align: right;
22
  }
23
 
24
- .form_color_row {
25
- float: left;
26
- display: block;
27
- margin-bottom: 5px;
28
- width: 100%;
29
- clear: both;
30
  }
31
 
32
  img.input_radio {
@@ -51,53 +47,68 @@ input.warning:hover, a.warning:hover {
51
  color: red;
52
  }
53
 
54
- .fli {
55
- float: left;
56
- display: inline;
57
- }
58
-
59
- #foldersdiv {
60
- border-style:solid;
61
- border-width:1px;
62
- height:300px;
63
- width: 450px;
64
- overflow:auto;
65
- padding:0.5em 0.9em;
66
- margin-top: 5px;
67
- margin-bottom: 0px;
68
- white-space: nowrap;
69
- }
70
-
71
  #ure_container {
72
- float: left;
73
  width: 100%;
74
  }
75
 
76
- .ure-sidebar {
77
- float: right;
78
  }
79
 
80
- #ure_greetings {
81
- max-width: 250px;
 
 
 
 
 
 
 
 
82
  }
83
 
84
  .hidden {
85
  display: none;
86
  }
87
 
 
 
 
 
 
88
  #ure_form_controls {
89
- float: left;
90
  }
91
 
92
- #ure_role_caps {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  width: 100%;
94
 
95
  }
96
 
97
  #ure_toolbar {
98
- float: right;
99
  margin-top: 10px;
100
- margin-left: 5px;
101
  border: 1px solid #dfdfdf;
102
  -webkit-box-shadow: inset 0 1px 0 #fff;
103
  box-shadow: inset 0 1px 0 #fff;
@@ -105,8 +116,6 @@ input.warning:hover, a.warning:hover {
105
  border-radius: 3px;
106
  background: #f5f5f5;
107
  padding: 5px;
108
- max-width: 185px;
109
- min-width: 185px;
110
  }
111
 
112
  .ure_toolbar_button {
@@ -143,31 +152,34 @@ input.warning:hover, a.warning:hover {
143
  margin-bottom: 5px;
144
  }
145
 
146
- .ure-user-roles {
147
- vertical-align: text-top;
148
- padding-right: 10px;
149
- padding-top: 5px;
150
- font-size: 1.1em;
151
- border-top: 1px solid #cccccc;
152
- border-right: 1px solid #cccccc;
153
- min-width: 120px;
154
- width: 25%;
 
 
 
 
 
 
155
  }
156
 
157
  /* Multipe select */
158
- .countLabel
159
- {
160
  color:Gray;
161
  font-style:italic;
162
  }
163
 
164
- .storageBox
165
- {
166
  display:none;
167
  }
168
 
169
- .copiedOption
170
- {
171
  background-color:Yellow;
172
  }
173
 
@@ -177,11 +189,11 @@ input.warning:hover, a.warning:hover {
177
  }
178
 
179
 
180
- #ure-icon {
181
- background-image: url("../images/user-role-editor-page-icon.png");
182
- background-position: 0 0;
183
  }
184
 
 
185
  #other_default_roles {
186
  display: block;
187
  margin: 10px;
@@ -196,23 +208,42 @@ input.warning:hover, a.warning:hover {
196
  color: #ffffff;
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
- #ure_role_caps_groups_title {
201
- width: 200px;
202
  vertical-align:middle;
203
- font-weight: bold;
204
- border-bottom: 1px solid #cccccc;
205
  }
206
 
207
- #ure_role_caps_select {
208
  vertical-align:middle;
209
  border-bottom: 1px solid #cccccc;
 
210
  }
211
 
212
- #ure_role_caps_quick_filter {
213
- vertical-align:middle;
214
- text-align: right;
215
- padding-bottom: 5px;
216
  border-bottom: 1px solid #cccccc;
217
  }
218
 
@@ -226,11 +257,29 @@ input.warning:hover, a.warning:hover {
226
  }
227
 
228
  #ure_caps_groups_list li {
229
- height: 20px;
230
  line-height: 20px;
231
  cursor: pointer;
232
  }
233
 
234
  .plugins {
235
  color: #444444;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  }
21
  text-align: right;
22
  }
23
 
24
+ .nowrap {
25
+ white-space: nowrap;
 
 
 
 
26
  }
27
 
28
  img.input_radio {
47
  color: red;
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  #ure_container {
51
+ display: table;
52
  width: 100%;
53
  }
54
 
55
+ .ure-table {
56
+ display: table;
57
  }
58
 
59
+ .ure-table-cell {
60
+ display: table-cell;
61
+ margin: 0;
62
+ padding: 0;
63
+ vertical-align: top;
64
+ }
65
+
66
+ #ure-sidebar {
67
+ width: 270px;
68
+ padding-left: 20px;
69
  }
70
 
71
  .hidden {
72
  display: none;
73
  }
74
 
75
+ #user_role_editor {
76
+
77
+ }
78
+
79
+
80
  #ure_form_controls {
 
81
  }
82
 
83
+ #ure_role_selector {
84
+ padding: 10px 0 0 10px;
85
+ }
86
+
87
+ #ure_user_caps_header {
88
+ padding: 10px 0 0 10px;
89
+ font-size: 16px;
90
+ }
91
+
92
+ #ure_user_caps_title {
93
+ font-weight: bold;
94
+ }
95
+
96
+ #ure_role_select_label {
97
+ font-size: 16px;
98
+ font-weight: bold;
99
+ }
100
+
101
+ .ure-caps-option {
102
+ padding-left: 20px;
103
+ }
104
+
105
+ #ure_caps_container {
106
  width: 100%;
107
 
108
  }
109
 
110
  #ure_toolbar {
 
111
  margin-top: 10px;
 
112
  border: 1px solid #dfdfdf;
113
  -webkit-box-shadow: inset 0 1px 0 #fff;
114
  box-shadow: inset 0 1px 0 #fff;
116
  border-radius: 3px;
117
  background: #f5f5f5;
118
  padding: 5px;
 
 
119
  }
120
 
121
  .ure_toolbar_button {
152
  margin-bottom: 5px;
153
  }
154
 
155
+ #ure_user_roles {
156
+ vertical-align: text-top;
157
+ padding-right: 10px;
158
+ padding-top: 5px;
159
+ font-size: 1.1em;
160
+ border-top: 1px solid #cccccc;
161
+ border-right: 1px solid #cccccc;
162
+ min-width: 200px;
163
+ width: 20%;
164
+ }
165
+
166
+ .ure-user-role-section-title {
167
+ margin-top: 5px;
168
+ margin-bottom: 5px;
169
+ font-weight: bold;
170
  }
171
 
172
  /* Multipe select */
173
+ .countLabel {
 
174
  color:Gray;
175
  font-style:italic;
176
  }
177
 
178
+ .storageBox {
 
179
  display:none;
180
  }
181
 
182
+ .copiedOption {
 
183
  background-color:Yellow;
184
  }
185
 
189
  }
190
 
191
 
192
+ .ure-cap-div {
193
+ white-space: nowrap;
 
194
  }
195
 
196
+
197
  #other_default_roles {
198
  display: block;
199
  margin: 10px;
208
  color: #ffffff;
209
  }
210
 
211
+ #ure_caps_groups_td {
212
+ padding:0 10px 0 10px;
213
+ min-width:25%;
214
+ border-right: 1px solid #cccccc;
215
+ }
216
+
217
+ #ure_caps_td {
218
+ width:60%;
219
+ padding-left: 10px;
220
+ }
221
+
222
+ #ure_toolbar_td {
223
+ width: 15%;
224
+ min-width:200px;
225
+ padding-left: 10px;
226
+ }
227
+
228
+
229
+ #ure_editor_options {
230
+ margin-bottom: 10px;
231
+ }
232
 
233
+ #ure_caps_groups_title {
234
+ min-width: 250px;
235
  vertical-align:middle;
236
+ border-bottom: 1px solid #cccccc;
237
+ border-right: 1px solid #cccccc;
238
  }
239
 
240
+ #ure_caps_select {
241
  vertical-align:middle;
242
  border-bottom: 1px solid #cccccc;
243
+ padding: 5px 5px 5px 10px;
244
  }
245
 
246
+ #ure_toolbar_title {
 
 
 
247
  border-bottom: 1px solid #cccccc;
248
  }
249
 
257
  }
258
 
259
  #ure_caps_groups_list li {
260
+ min-height: 20px;
261
  line-height: 20px;
262
  cursor: pointer;
263
  }
264
 
265
  .plugins {
266
  color: #444444;
267
+ }
268
+
269
+
270
+ #ure_caps_list_container {
271
+ float: left;
272
+ width: 100%;
273
+ overflow: auto;
274
+ min-height: 600px;
275
+ max-height: 720px;
276
+ }
277
+
278
+ #ure_caps_list {
279
+ -moz-column-count: 1;
280
+ -webkit-column-count: 1;
281
+ column-count: 1;
282
+ column-width: auto;
283
+ display: inline-block;
284
+ min-width: 100%;
285
  }
images/mwp250_2.png DELETED
Binary file
images/wp-esignature.png DELETED
Binary file
includes/classes/advertisement.php CHANGED
@@ -59,16 +59,20 @@ class URE_Advertisement {
59
 
60
 
61
  /**
62
- * Output all existed ads slots
63
- */
64
- public function display() {
65
-
66
- foreach ($this->slots as $slot) {
67
- echo $slot."\n";
68
- }
69
-
70
- }
71
- // end of display()
72
-
73
- }
 
 
 
 
74
  // end of ure_Advertisement
59
 
60
 
61
  /**
62
+ * Output all existed ads slots
63
+ */
64
+ public function display() {
65
+ ?>
66
+ <div id="ure-sidebar" class="ure_table_cell" >
67
+ <?php
68
+ foreach ($this->slots as $slot) {
69
+ echo $slot . "\n";
70
+ }
71
+ ?>
72
+ </div>
73
+ <?php
74
+ }
75
+
76
+ // end of display()
77
+ }
78
  // end of ure_Advertisement
includes/classes/ajax-processor.php CHANGED
@@ -16,6 +16,7 @@
16
  class URE_Ajax_Processor {
17
 
18
  protected $lib = null;
 
19
 
20
 
21
  public function __construct($lib) {
@@ -26,6 +27,18 @@ class URE_Ajax_Processor {
26
  // end of __construct()
27
 
28
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  protected function ajax_check_permissions() {
30
 
31
  if (!wp_verify_nonce($_REQUEST['wp_nonce'], 'user-role-editor')) {
@@ -74,13 +87,13 @@ class URE_Ajax_Processor {
74
  // end of get_users_without_role()
75
 
76
 
77
- protected function _dispatch($action) {
78
- switch ($action) {
79
  case 'get_users_without_role':
80
  $answer = $this->get_users_without_role();
81
  break;
82
  default:
83
- $answer = array('result' => 'error', 'message' => 'unknown action "' . $action . '"');
84
  }
85
 
86
  return $answer;
@@ -93,14 +106,9 @@ class URE_Ajax_Processor {
93
  */
94
  public function dispatch() {
95
 
96
- $this->ajax_check_permissions();
97
-
98
- $action = filter_input(INPUT_POST, 'sub_action', FILTER_SANITIZE_STRING);
99
- if (empty($action)) {
100
- $action = filter_input(INPUT_GET, 'sub_action', FILTER_SANITIZE_STRING);
101
- }
102
-
103
- $answer = $this->_dispatch($action);
104
 
105
  $json_answer = json_encode($answer);
106
  echo $json_answer;
16
  class URE_Ajax_Processor {
17
 
18
  protected $lib = null;
19
+ protected $action = null;
20
 
21
 
22
  public function __construct($lib) {
27
  // end of __construct()
28
 
29
 
30
+ protected function get_action() {
31
+ $action = filter_input(INPUT_POST, 'sub_action', FILTER_SANITIZE_STRING);
32
+ if (empty($action)) {
33
+ $action = filter_input(INPUT_GET, 'sub_action', FILTER_SANITIZE_STRING);
34
+ }
35
+
36
+ $this->action = $action;
37
+
38
+ return $action;
39
+ }
40
+
41
+
42
  protected function ajax_check_permissions() {
43
 
44
  if (!wp_verify_nonce($_REQUEST['wp_nonce'], 'user-role-editor')) {
87
  // end of get_users_without_role()
88
 
89
 
90
+ protected function _dispatch() {
91
+ switch ($this->action) {
92
  case 'get_users_without_role':
93
  $answer = $this->get_users_without_role();
94
  break;
95
  default:
96
+ $answer = array('result' => 'error', 'message' => 'unknown action "' . $this->action . '"');
97
  }
98
 
99
  return $answer;
106
  */
107
  public function dispatch() {
108
 
109
+ $this->get_action();
110
+ $this->ajax_check_permissions();
111
+ $answer = $this->_dispatch();
 
 
 
 
 
112
 
113
  $json_answer = json_encode($answer);
114
  echo $json_answer;
includes/classes/capabilities-groups-manager.php CHANGED
@@ -13,6 +13,8 @@ class URE_Capabilities_Groups_Manager {
13
  private static $instance = null;
14
  private $lib = null;
15
  private $groups = null;
 
 
16
 
17
 
18
  public static function get_instance() {
@@ -30,6 +32,8 @@ class URE_Capabilities_Groups_Manager {
30
  private function __construct() {
31
 
32
  $this->lib = URE_Lib::get_instance();
 
 
33
 
34
  }
35
  // end of __construct()
@@ -56,7 +60,7 @@ class URE_Capabilities_Groups_Manager {
56
  $this->groups[$post_type->name] = array('caption'=>$post_type->labels->name, 'parent'=>'custom_post_types', 'level'=>2);
57
  }
58
  }
59
- // add_custom_post_types()
60
 
61
 
62
  public function get_groups_tree() {
@@ -96,7 +100,7 @@ class URE_Capabilities_Groups_Manager {
96
  *
97
  * @return array
98
  */
99
- public function get_built_in_wp_caps() {
100
 
101
  $wp_version = get_bloginfo('version');
102
  $multisite = $this->lib->get('multisite');
@@ -186,27 +190,36 @@ class URE_Capabilities_Groups_Manager {
186
 
187
  $caps = apply_filters('ure_built_in_wp_caps', $caps);
188
 
189
- return $caps;
 
 
 
 
 
 
 
 
 
190
  }
191
  // end of get_built_in_wp_caps()
192
 
193
 
194
- private function get_custom_post_type_capabilities($post_type, $post_edit_caps, &$cpt_caps) {
195
  foreach($post_edit_caps as $capability) {
196
  if (!isset($post_type->cap->$capability)) {
197
  continue;
198
  }
199
  $cap = $post_type->cap->$capability;
200
- if (!isset($cpt_caps[$cap])) {
201
- $cpt_caps[$cap] = array('custom', 'custom_post_types');
202
  }
203
- $cpt_caps[$cap][] = $post_type->name;
204
  }
205
  }
206
  // end of get_custom_post_type_capabilities()
207
 
208
 
209
- private function get_all_custom_post_types_capabilities() {
210
 
211
  $post_edit_caps = $this->lib->get_edit_post_capabilities();
212
  $post_types = get_post_types(array(), 'objects');
@@ -215,7 +228,7 @@ class URE_Capabilities_Groups_Manager {
215
  if ($post_types['attachment']->cap->edit_posts=='edit_posts') {
216
  $built_in_pt[] = 'attachment';
217
  }
218
- $cpt_caps = array();
219
  foreach($post_types as $post_type) {
220
  if (!isset($_post_types[$post_type->name])) {
221
  continue;
@@ -226,14 +239,14 @@ class URE_Capabilities_Groups_Manager {
226
  if (!isset($post_type->cap)) {
227
  continue;
228
  }
229
- $this->get_custom_post_type_capabilities($post_type, $post_edit_caps, $cpt_caps);
230
  }
231
 
232
- return $cpt_caps;
233
  }
234
- // end of get_custom_post_types_capabilities()
235
-
236
 
 
237
  private function get_woocommerce_capabilities() {
238
 
239
  $caps = array();
@@ -251,9 +264,8 @@ class URE_Capabilities_Groups_Manager {
251
  $groups = $wc_caps[$cap_id];
252
  }
253
 
254
- $cpt_caps = $this->get_all_custom_post_types_capabilities();
255
- if (isset($cpt_caps[$cap_id])) {
256
- $groups = $cpt_caps[$cap_id];
257
  }
258
 
259
  if (empty($groups)) {
@@ -266,12 +278,8 @@ class URE_Capabilities_Groups_Manager {
266
 
267
 
268
  public function get_cap_groups($cap_id, $built_in_wp_caps=null) {
269
-
270
- if (empty($built_in_wp_caps)) {
271
- $built_in_wp_caps = $this->get_built_in_wp_caps();
272
- }
273
-
274
- if (isset($built_in_wp_caps[$cap_id])) {
275
  $groups = $built_in_wp_caps[$cap_id];
276
  } else {
277
  $groups = $this->get_groups_for_custom_cap($cap_id);
@@ -284,5 +292,6 @@ class URE_Capabilities_Groups_Manager {
284
  return $groups;
285
  }
286
  // end of get_cap_groups()
 
287
  }
288
  // end of class URE_Capabilities_Groups_Manager
13
  private static $instance = null;
14
  private $lib = null;
15
  private $groups = null;
16
+ private $built_in_wp_caps = null;
17
+ private $cpt_caps = null;
18
 
19
 
20
  public static function get_instance() {
32
  private function __construct() {
33
 
34
  $this->lib = URE_Lib::get_instance();
35
+ $this->_get_built_in_wp_caps();
36
+ $this->_get_all_custom_post_types_capabilities();
37
 
38
  }
39
  // end of __construct()
60
  $this->groups[$post_type->name] = array('caption'=>$post_type->labels->name, 'parent'=>'custom_post_types', 'level'=>2);
61
  }
62
  }
63
+ // end of add_custom_post_types()
64
 
65
 
66
  public function get_groups_tree() {
100
  *
101
  * @return array
102
  */
103
+ private function _get_built_in_wp_caps() {
104
 
105
  $wp_version = get_bloginfo('version');
106
  $multisite = $this->lib->get('multisite');
190
 
191
  $caps = apply_filters('ure_built_in_wp_caps', $caps);
192
 
193
+ $this->built_in_wp_caps = $caps;
194
+
195
+ return $this->built_in_wp_caps;
196
+ }
197
+ // end of _get_built_in_wp_caps()
198
+
199
+
200
+ public function get_built_in_wp_caps() {
201
+
202
+ return $this->built_in_wp_caps;
203
  }
204
  // end of get_built_in_wp_caps()
205
 
206
 
207
+ private function get_custom_post_type_capabilities($post_type, $post_edit_caps) {
208
  foreach($post_edit_caps as $capability) {
209
  if (!isset($post_type->cap->$capability)) {
210
  continue;
211
  }
212
  $cap = $post_type->cap->$capability;
213
+ if (!isset($this->cpt_caps[$cap])) {
214
+ $this->cpt_caps[$cap] = array('custom', 'custom_post_types');
215
  }
216
+ $this->cpt_caps[$cap][] = $post_type->name;
217
  }
218
  }
219
  // end of get_custom_post_type_capabilities()
220
 
221
 
222
+ private function _get_all_custom_post_types_capabilities() {
223
 
224
  $post_edit_caps = $this->lib->get_edit_post_capabilities();
225
  $post_types = get_post_types(array(), 'objects');
228
  if ($post_types['attachment']->cap->edit_posts=='edit_posts') {
229
  $built_in_pt[] = 'attachment';
230
  }
231
+ $this->cpt_caps = array();
232
  foreach($post_types as $post_type) {
233
  if (!isset($_post_types[$post_type->name])) {
234
  continue;
239
  if (!isset($post_type->cap)) {
240
  continue;
241
  }
242
+ $this->get_custom_post_type_capabilities($post_type, $post_edit_caps);
243
  }
244
 
245
+ return $this->cpt_caps;
246
  }
247
+ // end of _get_all_custom_post_types_capabilities()
 
248
 
249
+
250
  private function get_woocommerce_capabilities() {
251
 
252
  $caps = array();
264
  $groups = $wc_caps[$cap_id];
265
  }
266
 
267
+ if (isset($this->cpt_caps[$cap_id])) {
268
+ $groups = $this->cpt_caps[$cap_id];
 
269
  }
270
 
271
  if (empty($groups)) {
278
 
279
 
280
  public function get_cap_groups($cap_id, $built_in_wp_caps=null) {
281
+
282
+ if (isset($this->built_in_wp_caps[$cap_id])) {
 
 
 
 
283
  $groups = $built_in_wp_caps[$cap_id];
284
  } else {
285
  $groups = $this->get_groups_for_custom_cap($cap_id);
292
  return $groups;
293
  }
294
  // end of get_cap_groups()
295
+
296
  }
297
  // end of class URE_Capabilities_Groups_Manager
includes/classes/role-view.php CHANGED
@@ -313,16 +313,11 @@ if ($multisite && !is_network_admin()) {
313
  // end of toolbar()
314
 
315
 
316
- public function display() {
317
-
318
  $multisite = $this->lib->get('multisite');
319
- $active_for_network = $this->lib->get('active_for_network');
320
  ?>
321
-
322
- <div class="has-sidebar-content">
323
- <div class="postbox" style="float: left; min-width:850px;">
324
- <h3>&nbsp;<?php esc_html_e('Select Role and change its capabilities:', 'user-role-editor'); ?> <?php echo $this->role_select_html; ?></h3>
325
- <div class="inside">
326
  <?php
327
  $caps_readable = $this->lib->get('caps_readable');
328
  if ($caps_readable) {
@@ -333,8 +328,7 @@ if ($multisite && !is_network_admin()) {
333
  $caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
334
  if (is_super_admin() || !$multisite || !$this->lib->is_pro() || !$caps_access_restrict_for_simple_admin) {
335
  ?>
336
- <input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1"
337
- <?php echo $checked; ?> onclick="ure_turn_caps_readable(0);"/>
338
  <label for="ure_caps_readable"><?php esc_html_e('Show capabilities in human readable form', 'user-role-editor'); ?></label>&nbsp;&nbsp;
339
  <?php
340
  $show_deprecated_caps = $this->lib->get('show_deprecated_caps');
@@ -344,8 +338,7 @@ if ($multisite && !is_network_admin()) {
344
  $checked = '';
345
  }
346
  ?>
347
- <input type="checkbox" name="ure_show_deprecated_caps" id="ure_show_deprecated_caps" value="1"
348
- <?php echo $checked; ?> onclick="ure_turn_deprecated_caps(0);"/>
349
  <label for="ure_show_deprecated_caps"><?php esc_html_e('Show deprecated capabilities', 'user-role-editor'); ?></label>
350
  <?php
351
  }
@@ -360,32 +353,39 @@ if ($multisite && !is_network_admin()) {
360
  $fontColor = '';
361
  }
362
  ?>
363
- <div style="float: right; margin-left:10px; margin-right: 20px; <?php echo $fontColor;?>" id="ure_apply_to_all_div">
364
- <input type="checkbox" name="ure_apply_to_all" id="ure_apply_to_all" value="1"
365
- <?php echo $checked; ?> title="<?php echo $hint;?>" onclick="ure_applyToAllOnClick(this)"/>
366
- <label for="ure_apply_to_all" title="<?php echo $hint;?>"><?php esc_html_e('Apply to All Sites', 'user-role-editor');?></label>
367
- </div>
368
  <?php
369
  }
370
  ?>
371
- <br /><br />
372
- <hr />
373
- <div style="display:table-inline; float: right; margin-right: 12px;"></div>
374
-
375
- <?php
376
- $this->display_caps(); ?>
377
 
378
- <?php
379
- $ao = $this->lib->get('role_additional_options');
380
- $current_role = $this->lib->get('current_role');
381
- $ao->show($current_role);
382
  ?>
383
- <input type="hidden" name="object" value="role" />
 
 
 
 
384
  <?php
385
- $this->display_box_end();
386
- ?>
387
- <div style="clear: left; float: left; width: 800px;"></div>
388
- </div>
 
 
 
 
 
389
  <?php
390
 
391
  }
313
  // end of toolbar()
314
 
315
 
316
+ private function display_options() {
 
317
  $multisite = $this->lib->get('multisite');
318
+ $active_for_network = $this->lib->get('active_for_network');
319
  ?>
320
+ <div id="ure_editor_options">
 
 
 
 
321
  <?php
322
  $caps_readable = $this->lib->get('caps_readable');
323
  if ($caps_readable) {
328
  $caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
329
  if (is_super_admin() || !$multisite || !$this->lib->is_pro() || !$caps_access_restrict_for_simple_admin) {
330
  ?>
331
+ <input type="checkbox" name="ure_caps_readable" id="ure_caps_readable" value="1" <?php echo $checked; ?> onclick="ure_turn_caps_readable(0);"/>
 
332
  <label for="ure_caps_readable"><?php esc_html_e('Show capabilities in human readable form', 'user-role-editor'); ?></label>&nbsp;&nbsp;
333
  <?php
334
  $show_deprecated_caps = $this->lib->get('show_deprecated_caps');
338
  $checked = '';
339
  }
340
  ?>
341
+ <input type="checkbox" name="ure_show_deprecated_caps" id="ure_show_deprecated_caps" value="1" <?php echo $checked; ?> onclick="ure_turn_deprecated_caps(0);"/>
 
342
  <label for="ure_show_deprecated_caps"><?php esc_html_e('Show deprecated capabilities', 'user-role-editor'); ?></label>
343
  <?php
344
  }
353
  $fontColor = '';
354
  }
355
  ?>
356
+ <div style="float: right; margin-left:10px; margin-right: 20px; <?php echo $fontColor; ?>" id="ure_apply_to_all_div">
357
+ <input type="checkbox" name="ure_apply_to_all" id="ure_apply_to_all" value="1"
358
+ <?php echo $checked; ?> title="<?php echo $hint; ?>" onclick="ure_applyToAllOnClick(this)"/>
359
+ <label for="ure_apply_to_all" title="<?php echo $hint; ?>"><?php esc_html_e('Apply to All Sites', 'user-role-editor'); ?></label>
360
+ </div>
361
  <?php
362
  }
363
  ?>
364
+ </div>
365
+ <hr>
366
+ <?php
367
+ }
368
+ // end of display_options()
 
369
 
370
+
371
+ public function display() {
372
+
 
373
  ?>
374
+ <div class="postbox" style="min-width:800px;width:100%">
375
+ <div id="ure_role_selector">
376
+ <span id="ure_role_select_label"><?php esc_html_e('Select Role and change its capabilities:', 'user-role-editor'); ?></span> <?php echo $this->role_select_html; ?>
377
+ </div>
378
+ <div class="inside">
379
  <?php
380
+ $this->display_options();
381
+ $this->display_caps();
382
+ $ao = $this->lib->get('role_additional_options');
383
+ $current_role = $this->lib->get('current_role');
384
+ $ao->show($current_role);
385
+ ?>
386
+ <input type="hidden" name="object" value="role" />
387
+ </div>
388
+ </div>
389
  <?php
390
 
391
  }
includes/classes/ure-lib.php CHANGED
@@ -13,6 +13,8 @@
13
  */
14
  class Ure_Lib extends URE_Base_Lib {
15
 
 
 
16
  protected $roles = null;
17
  protected $notification = ''; // notification message to show on page
18
  protected $apply_to_all = 0;
@@ -23,6 +25,7 @@ class Ure_Lib extends URE_Base_Lib {
23
  protected $user_to_edit = '';
24
  protected $show_deprecated_caps = false;
25
  protected $caps_readable = false;
 
26
  protected $hide_pro_banner = false;
27
  protected $full_capabilities = false;
28
  protected $ure_object = 'role'; // what to process, 'role' or 'user'
@@ -299,10 +302,21 @@ class Ure_Lib extends URE_Base_Lib {
299
  }
300
  // end of editor()
301
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
  protected function show_editor() {
304
- $container_width = ($this->ure_object == 'user') ? 1400 : 1200;
305
-
306
  $this->show_message($this->notification);
307
  if ($this->ure_object == 'user') {
308
  $view = new URE_User_View();
@@ -313,18 +327,9 @@ class Ure_Lib extends URE_Base_Lib {
313
  }
314
  ?>
315
  <div class="wrap">
316
- <div id="ure-icon" class="icon32"><br/></div>
317
  <h1><?php _e('User Role Editor', 'user-role-editor'); ?></h1>
318
- <div id="ure_container" style="min-width: <?php echo $container_width; ?>px;">
319
- <div class="ure-sidebar" >
320
- <?php
321
- if (!$this->is_pro()) {
322
- $view->advertise_commercials();
323
- }
324
- ?>
325
- </div>
326
-
327
- <div class="has-sidebar" >
328
  <form id="ure_form" method="post" action="<?php echo URE_WP_ADMIN_URL . URE_PARENT . '?page=users-' . URE_PLUGIN_FILE; ?>" >
329
  <div id="ure_form_controls">
330
  <?php
@@ -334,15 +339,20 @@ class Ure_Lib extends URE_Base_Lib {
334
  <input type="hidden" name="action" value="update" />
335
  </div>
336
  </form>
337
- <?php
338
  if (!$this->is_pro()) {
339
  $view->advertise_pro();
340
  }
 
 
 
 
 
 
341
  $view->display_edit_dialogs();
342
  do_action('ure_dialogs_html');
343
  $view->output_confirmation_dialog();
344
- ?>
345
- </div>
346
  </div>
347
  </div>
348
  <?php
@@ -518,15 +528,31 @@ class Ure_Lib extends URE_Base_Lib {
518
  // end of process_user_request()
519
 
520
 
521
- protected function set_apply_to_all_from_post() {
522
- if (isset($_POST['ure_apply_to_all'])) {
523
- $this->apply_to_all = 1;
524
- } else {
525
- $this->apply_to_all = 0;
 
526
  }
527
- }
528
- // end of set_apply_to_all_from_post()
529
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
 
531
  public function get_default_role() {
532
  $this->wp_default_role = get_option('default_role');
@@ -538,12 +564,12 @@ class Ure_Lib extends URE_Base_Lib {
538
  $this->caps_readable = get_site_transient('ure_caps_readable');
539
  if (false === $this->caps_readable) {
540
  $this->caps_readable = $this->get_option('ure_caps_readable');
541
- set_site_transient('ure_caps_readable', $this->caps_readable, 600);
542
  }
543
  $this->show_deprecated_caps = get_site_transient('ure_show_deprecated_caps');
544
  if (false === $this->show_deprecated_caps) {
545
  $this->show_deprecated_caps = $this->get_option('ure_show_deprecated_caps');
546
- set_site_transient('ure_caps_readable', $this->caps_readable, 600);
547
  }
548
 
549
  $this->hide_pro_banner = $this->get_option('ure_hide_pro_banner', 0);
@@ -559,7 +585,8 @@ class Ure_Lib extends URE_Base_Lib {
559
  $this->ure_object = 'role';
560
  }
561
 
562
- $this->set_apply_to_all_from_post();
 
563
 
564
  return true;
565
  }
13
  */
14
  class Ure_Lib extends URE_Base_Lib {
15
 
16
+ const TRANSIENT_EXPIRATION = 600;
17
+
18
  protected $roles = null;
19
  protected $notification = ''; // notification message to show on page
20
  protected $apply_to_all = 0;
25
  protected $user_to_edit = '';
26
  protected $show_deprecated_caps = false;
27
  protected $caps_readable = false;
28
+ protected $caps_columns_quant = 1;
29
  protected $hide_pro_banner = false;
30
  protected $full_capabilities = false;
31
  protected $ure_object = 'role'; // what to process, 'role' or 'user'
302
  }
303
  // end of editor()
304
 
305
+
306
+ private function get_ure_container_width() {
307
+
308
+ $width = ($this->ure_object == 'user') ? 1300 : 1150;
309
+ if ($this->is_pro()) {
310
+ $width -= 200;
311
+ }
312
+
313
+ return $width;
314
+ }
315
+ // end of get_ure_container_width()
316
+
317
 
318
  protected function show_editor() {
319
+ //$container_width = $this->get_ure_container_width();
 
320
  $this->show_message($this->notification);
321
  if ($this->ure_object == 'user') {
322
  $view = new URE_User_View();
327
  }
328
  ?>
329
  <div class="wrap">
 
330
  <h1><?php _e('User Role Editor', 'user-role-editor'); ?></h1>
331
+ <div id="ure_container">
332
+ <div id="user_role_editor" class="ure-table-cell" >
 
 
 
 
 
 
 
 
333
  <form id="ure_form" method="post" action="<?php echo URE_WP_ADMIN_URL . URE_PARENT . '?page=users-' . URE_PLUGIN_FILE; ?>" >
334
  <div id="ure_form_controls">
335
  <?php
339
  <input type="hidden" name="action" value="update" />
340
  </div>
341
  </form>
342
+ <?php
343
  if (!$this->is_pro()) {
344
  $view->advertise_pro();
345
  }
346
+ ?>
347
+ </div>
348
+ <?php
349
+ if (!$this->is_pro()) {
350
+ $view->advertise_commercials();
351
+ }
352
  $view->display_edit_dialogs();
353
  do_action('ure_dialogs_html');
354
  $view->output_confirmation_dialog();
355
+ ?>
 
356
  </div>
357
  </div>
358
  <?php
528
  // end of process_user_request()
529
 
530
 
531
+ protected function get_apply_to_all_from_post() {
532
+ if (isset($_POST['ure_apply_to_all'])) {
533
+ $this->apply_to_all = 1;
534
+ } else {
535
+ $this->apply_to_all = 0;
536
+ }
537
  }
538
+ // end of get_apply_to_all_from_post()
539
+
540
+
541
+ protected function get_caps_columns_quant() {
542
+ if (isset($_POST['caps_columns_quant']) && in_array($_POST['caps_columns_quant'], array(1,2,3))) {
543
+ $value = (int) $_POST['caps_columns_quant'];
544
+ set_site_transient('ure_caps_columns_quant', $value, self::TRANSIENT_EXPIRATION);
545
+ } else {
546
+ $value = get_site_transient('ure_caps_columns_quant');
547
+ if ($value===false) {
548
+ $value = 1;
549
+ }
550
+ }
551
+
552
+ $this->caps_columns_quant = $value;
553
+ }
554
+ // end of get_apply_to_all_from_post()
555
+
556
 
557
  public function get_default_role() {
558
  $this->wp_default_role = get_option('default_role');
564
  $this->caps_readable = get_site_transient('ure_caps_readable');
565
  if (false === $this->caps_readable) {
566
  $this->caps_readable = $this->get_option('ure_caps_readable');
567
+ set_site_transient('ure_caps_readable', $this->caps_readable, self::TRANSIENT_EXPIRATION);
568
  }
569
  $this->show_deprecated_caps = get_site_transient('ure_show_deprecated_caps');
570
  if (false === $this->show_deprecated_caps) {
571
  $this->show_deprecated_caps = $this->get_option('ure_show_deprecated_caps');
572
+ set_site_transient('ure_caps_readable', $this->caps_readable, self::TRANSIENT_EXPIRATION);
573
  }
574
 
575
  $this->hide_pro_banner = $this->get_option('ure_hide_pro_banner', 0);
585
  $this->ure_object = 'role';
586
  }
587
 
588
+ $this->get_apply_to_all_from_post();
589
+ $this->get_caps_columns_quant();
590
 
591
  return true;
592
  }
includes/classes/user-role-editor.php CHANGED
@@ -778,7 +778,6 @@ class User_Role_Editor {
778
 
779
  wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
780
  wp_enqueue_script('jquery-ui-selectable', false, array('jquery-ui-core', 'jquery'));
781
- wp_enqueue_script('jquery-ui-tabs', false, array('jquery-ui-core', 'jquery'));
782
  wp_register_script('ure-js', plugins_url('/js/ure-js.js', URE_PLUGIN_FULL_PATH));
783
  wp_enqueue_script('ure-js');
784
  wp_localize_script('ure-js', 'ure_data', array(
@@ -829,6 +828,7 @@ class User_Role_Editor {
829
  protected function load_settings_js() {
830
 
831
  wp_enqueue_script('jquery-ui-tabs', false, array('jquery-ui-core', 'jquery'));
 
832
 
833
  }
834
  // end of load_settings_js()
778
 
779
  wp_enqueue_script('jquery-ui-dialog', false, array('jquery-ui-core', 'jquery-ui-button', 'jquery'));
780
  wp_enqueue_script('jquery-ui-selectable', false, array('jquery-ui-core', 'jquery'));
 
781
  wp_register_script('ure-js', plugins_url('/js/ure-js.js', URE_PLUGIN_FULL_PATH));
782
  wp_enqueue_script('ure-js');
783
  wp_localize_script('ure-js', 'ure_data', array(
828
  protected function load_settings_js() {
829
 
830
  wp_enqueue_script('jquery-ui-tabs', false, array('jquery-ui-core', 'jquery'));
831
+ do_action('ure_load_js_settings');
832
 
833
  }
834
  // end of load_settings_js()
includes/classes/user-view.php CHANGED
@@ -79,7 +79,7 @@ class URE_User_View extends URE_View {
79
 
80
  return $user_info;
81
  }
82
- // end of build_user_info()
83
 
84
 
85
  private function show_primary_role_dropdown_list($user_roles) {
@@ -132,11 +132,11 @@ class URE_User_View extends URE_View {
132
  $user_info = $this->get_user_info();
133
  ?>
134
 
135
- <div class="has-sidebar-content">
136
- <?php
137
- $this->display_box_start(esc_html__('Change capabilities for user', 'user-role-editor'). $user_info, 'min-width:1000px;');
138
-
139
- ?>
140
  <table cellpadding="0" cellspacing="0" style="width: 100%;">
141
  <tr>
142
  <td>&nbsp;</td>
@@ -168,14 +168,14 @@ class URE_User_View extends URE_View {
168
  </td>
169
  </tr>
170
  <tr>
171
- <td class="ure-user-roles">
172
- <div style="margin-bottom: 5px; font-weight: bold;"><?php esc_html_e('Primary Role:', 'user-role-editor'); ?></div>
173
  <?php
174
  $this->show_primary_role_dropdown_list($this->user_to_edit->roles);
175
 
176
  if (function_exists('bbp_filter_blog_editable_roles') ) { // bbPress plugin is active
177
  ?>
178
- <div style="margin-top: 5px;margin-bottom: 5px; font-weight: bold;"><?php esc_html_e('bbPress Role:', 'user-role-editor'); ?></div>
179
  <?php
180
  $dynamic_roles = bbp_get_dynamic_roles();
181
  $bbp_user_role = bbp_get_user_role($this->user_to_edit->ID);
@@ -195,12 +195,9 @@ class URE_User_View extends URE_View {
195
  </tr>
196
  </table>
197
  <input type="hidden" name="object" value="user" />
198
- <input type="hidden" name="user_id" value="<?php echo $this->user_to_edit->ID; ?>" />
199
- <?php
200
- $this->display_box_end();
201
- ?>
202
-
203
- </div>
204
  <?php
205
  }
206
  // end of display()
79
 
80
  return $user_info;
81
  }
82
+ // end of get_user_info()
83
 
84
 
85
  private function show_primary_role_dropdown_list($user_roles) {
132
  $user_info = $this->get_user_info();
133
  ?>
134
 
135
+ <div class="postbox" style="float:left;min-width:1000px;width: 100%;">
136
+ <div id="ure_user_caps_header">
137
+ <span id="ure_user_caps_title"><?php esc_html_e('Change capabilities for user', 'user-role-editor')?></span> <?php echo $user_info;?>
138
+ </div>
139
+ <div class="inside">
140
  <table cellpadding="0" cellspacing="0" style="width: 100%;">
141
  <tr>
142
  <td>&nbsp;</td>
168
  </td>
169
  </tr>
170
  <tr>
171
+ <td id="ure_user_roles">
172
+ <div class="ure-user-role-section-title"><?php esc_html_e('Primary Role:', 'user-role-editor'); ?></div>
173
  <?php
174
  $this->show_primary_role_dropdown_list($this->user_to_edit->roles);
175
 
176
  if (function_exists('bbp_filter_blog_editable_roles') ) { // bbPress plugin is active
177
  ?>
178
+ <div class="ure-user-role-section-title" style="margin-top: 5px;"><?php esc_html_e('bbPress Role:', 'user-role-editor'); ?></div>
179
  <?php
180
  $dynamic_roles = bbp_get_dynamic_roles();
181
  $bbp_user_role = bbp_get_user_role($this->user_to_edit->ID);
195
  </tr>
196
  </table>
197
  <input type="hidden" name="object" value="user" />
198
+ <input type="hidden" name="user_id" value="<?php echo $this->user_to_edit->ID; ?>" />
199
+ </div>
200
+ </div>
 
 
 
201
  <?php
202
  }
203
  // end of display()
includes/classes/view.php CHANGED
@@ -19,6 +19,9 @@ class URE_View {
19
  }
20
  // end of __construct()
21
 
 
 
 
22
 
23
  /**
24
  * display opening part of the HTML box with title and CSS style
@@ -46,15 +49,22 @@ class URE_View {
46
  <?php
47
  }
48
  // end of display_box_end()
49
-
50
 
51
  public function show_caps_groups() {
52
  $groups = URE_Capabilities_Groups_Manager::get_instance();
53
  $groups_list = $groups->get_groups_tree();
54
  $output = '<ul id="ure_caps_groups_list">'. PHP_EOL;
55
  foreach($groups_list as $group_id=>$group) {
56
- $spacer = $group_id=='all' ? '' : str_repeat('&nbsp;', $group['level']*2) .'- ';
57
- $output .= '<li id="ure_caps_group_'. $group_id .'">'. $spacer . $group['caption'] .'</li>'. PHP_EOL;
 
 
 
 
 
 
 
58
  }
59
  $output .= '</ul>'. PHP_EOL;
60
 
@@ -124,7 +134,8 @@ class URE_View {
124
  $user_is_ure_admin = current_user_can($key_capability);
125
  $ure_caps = $this->lib->get_ure_caps();
126
 
127
- $output = '';
 
128
  foreach ($full_capabilities as $capability) {
129
  $cap_id = $capability['inner'];
130
  if (!$user_is_ure_admin) {
@@ -190,6 +201,7 @@ class URE_View {
190
 
191
  $output .= $cap_html;
192
  }
 
193
 
194
  echo $output;
195
  }
@@ -241,26 +253,40 @@ class URE_View {
241
 
242
 
243
  public function display_caps($for_role = true, $edit_mode=true) {
 
244
  ?>
245
- <table id="ure_role_caps" cellpadding="0" cellspacing="0">
246
  <tr>
247
- <td id="ure_role_caps_groups_title"><?php esc_html_e('Group', 'user-role-editor');?></td>
248
- <td id="ure_role_caps_select">
249
- <input type="checkbox" id="ure_select_all_caps" name="ure_select_all_caps" value="ure_select_all_caps"/>
250
- </td>
251
- <td id="ure_role_caps_quick_filter">
252
- <?php esc_html_e('Quick filter:', 'user-role-editor'); ?>&nbsp;
253
- <input type="text" id="quick_filter" name="quick_filter" value="" size="20" onkeyup="ure_filter_capabilities(this.value);" />
 
 
 
 
 
 
 
 
 
 
 
 
254
  </td>
 
255
  </tr>
256
  <tr>
257
- <td class="ure-caps-cell" style="padding:0 10px 0 10px;">
258
  <?php $this->show_caps_groups(); ?>
259
  </td>
260
- <td class="ure-caps-cell">
261
- <?php $this->show_capabilities($for_role, $edit_mode); ?>
262
  </td>
263
- <td class="ure-caps-cell">
264
  <?php $this->toolbar(); ?>
265
  </td>
266
  </tr>
19
  }
20
  // end of __construct()
21
 
22
+ public function display() {}
23
+
24
+ public function toolbar() {}
25
 
26
  /**
27
  * display opening part of the HTML box with title and CSS style
49
  <?php
50
  }
51
  // end of display_box_end()
52
+
53
 
54
  public function show_caps_groups() {
55
  $groups = URE_Capabilities_Groups_Manager::get_instance();
56
  $groups_list = $groups->get_groups_tree();
57
  $output = '<ul id="ure_caps_groups_list">'. PHP_EOL;
58
  foreach($groups_list as $group_id=>$group) {
59
+ if ($group_id=='all') {
60
+ $spacer = '';
61
+ $subgroup = '';
62
+ } else {
63
+ $spacer = 'style="padding-left: '. 15*$group['level'] .'px"';
64
+ $subgroup = '- ';
65
+ }
66
+ $output .= '<li id="ure_caps_group_'. $group_id .'" '. $spacer .'>' .
67
+ $subgroup . $group['caption'] .'</li>'. PHP_EOL;
68
  }
69
  $output .= '</ul>'. PHP_EOL;
70
 
134
  $user_is_ure_admin = current_user_can($key_capability);
135
  $ure_caps = $this->lib->get_ure_caps();
136
 
137
+ $output = '<div id="ure_caps_list_container">'
138
+ . '<div id="ure_caps_list">';
139
  foreach ($full_capabilities as $capability) {
140
  $cap_id = $capability['inner'];
141
  if (!$user_is_ure_admin) {
201
 
202
  $output .= $cap_html;
203
  }
204
+ $output .= '</div></div>' ;
205
 
206
  echo $output;
207
  }
253
 
254
 
255
  public function display_caps($for_role = true, $edit_mode=true) {
256
+ $caps_columns_quant = $this->lib->get('caps_columns_quant');
257
  ?>
258
+ <table id="ure_caps_container" cellpadding="0" cellspacing="0">
259
  <tr>
260
+ <td id="ure_caps_groups_title"><span style="font-weight: bold;"><?php esc_html_e('Group', 'user-role-editor');?></span> (<?php esc_html_e('Total', 'user-role-editor');?>/<?php esc_html_e('Granted', 'user-role-editor');?>)</td>
261
+ <td id="ure_caps_select">
262
+ <div class="ure-table">
263
+ <div class="ure-table-cell">
264
+ <input type="checkbox" id="ure_select_all_caps" name="ure_select_all_caps" value="ure_select_all_caps"/>
265
+ </div>
266
+ <div class="ure-table-cell ure-caps-option nowrap">
267
+ <?php esc_html_e('Quick filter:', 'user-role-editor'); ?>&nbsp;
268
+ <input type="text" id="quick_filter" name="quick_filter" value="" size="20" onkeyup="ure_filter_capabilities(this.value);" />
269
+ </div>
270
+ <div class="ure-table-cell ure-caps-option nowrap">
271
+ <?php esc_html_e('Columns:', 'user-role-editor');?>
272
+ <select id="caps_columns_quant" name="caps_columns_quant" onchange="ure_change_caps_columns_quant();">
273
+ <option value="1" <?php echo $this->lib->option_selected(1, $caps_columns_quant);?> >1</option>
274
+ <option value="2" <?php echo $this->lib->option_selected(2, $caps_columns_quant);?> >2</option>
275
+ <option value="3" <?php echo $this->lib->option_selected(3, $caps_columns_quant);?> >3</option>
276
+ </select>
277
+ </div>
278
+ </div>
279
  </td>
280
+ <td id="ure_toolbar_title">&nbsp;</td>
281
  </tr>
282
  <tr>
283
+ <td id="ure_caps_groups_td" class="ure-caps-cell">
284
  <?php $this->show_caps_groups(); ?>
285
  </td>
286
+ <td id="ure_caps_td" class="ure-caps-cell">
287
+ <?php $this->show_capabilities($for_role, $edit_mode); ?>
288
  </td>
289
+ <td id="ure_toolbar_td" class="ure-caps-cell">
290
  <?php $this->toolbar(); ?>
291
  </td>
292
  </tr>
js/ure-js.js CHANGED
@@ -1,4 +1,4 @@
1
- var ure_obj = {selected_group: 'all'};
2
 
3
  // get/post via jQuery
4
  (function ($) {
@@ -42,6 +42,8 @@ function ure_select_selectable_element(selectable_container, elements_to_select)
42
 
43
  jQuery(function ($) {
44
 
 
 
45
  $('#ure_select_all_caps').click(ure_auto_select_caps);
46
  $('#ure_caps_groups_list').selectable({
47
  selected: function( event, ui ) {
@@ -49,8 +51,7 @@ jQuery(function ($) {
49
  $(ui.selected).siblings().removeClass("ui-selected");
50
  ure_caps_refresh(ui.selected.id);
51
  }
52
- });
53
-
54
  ure_select_selectable_element($('#ure_caps_groups_list'), $('#ure_caps_group_all'));
55
 
56
  if (typeof ure_current_role === 'undefined' || 'administrator' !== ure_current_role) {
@@ -91,7 +92,7 @@ jQuery(function ($) {
91
  modal: true,
92
  autoOpen: true,
93
  closeOnEscape: true,
94
- width: 400,
95
  height: 230,
96
  resizable: false,
97
  title: ure_data.add_new_role_title,
@@ -147,7 +148,7 @@ jQuery(function ($) {
147
  modal: true,
148
  autoOpen: true,
149
  closeOnEscape: true,
150
- width: 400,
151
  height: 230,
152
  resizable: false,
153
  title: ure_data.rename_role_title,
@@ -555,37 +556,127 @@ function ure_hide_pro_banner() {
555
  // end of ure_hide_this_banner()
556
 
557
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  function ure_caps_refresh(group) {
559
 
560
  var group_id = group.substr(15);
561
  ure_obj.selected_group = group_id;
562
  if (group_id === 'all') {
563
- jQuery('.ure-cap-div').each(function () {
564
- if (jQuery(this).hasClass('hidden') && !jQuery(this).hasClass('deprecated')) {
565
- jQuery(this).removeClass('hidden');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
  }
567
- });
568
- return;
569
  }
 
 
 
570
 
571
- var show_deprecated = jQuery('#ure_show_deprecated_caps').attr('checked');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  jQuery('.ure-cap-div').each(function () {
573
- if (jQuery(this).hasClass(group_id)) {
574
- if (jQuery(this).hasClass('hidden')) {
575
- if (!jQuery(this).hasClass('blocked')) {
576
- if (jQuery(this).hasClass('deprecated')) {
577
- if (group_id==='deprecated' || show_deprecated) {
578
- jQuery(this).removeClass('hidden');
579
- }
580
- } else {
581
- jQuery(this).removeClass('hidden');
582
- }
583
  }
584
- }
585
- } else {
586
- if (!jQuery(this).hasClass('hidden')) {
587
- jQuery(this).addClass('hidden');
588
- }
589
  }
590
  });
591
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var ure_obj = {selected_group: 'all', caps_counter: null};
2
 
3
  // get/post via jQuery
4
  (function ($) {
42
 
43
  jQuery(function ($) {
44
 
45
+ ure_count_caps_in_groups();
46
+ ure_sizes_update();
47
  $('#ure_select_all_caps').click(ure_auto_select_caps);
48
  $('#ure_caps_groups_list').selectable({
49
  selected: function( event, ui ) {
51
  $(ui.selected).siblings().removeClass("ui-selected");
52
  ure_caps_refresh(ui.selected.id);
53
  }
54
+ });
 
55
  ure_select_selectable_element($('#ure_caps_groups_list'), $('#ure_caps_group_all'));
56
 
57
  if (typeof ure_current_role === 'undefined' || 'administrator' !== ure_current_role) {
92
  modal: true,
93
  autoOpen: true,
94
  closeOnEscape: true,
95
+ width: 450,
96
  height: 230,
97
  resizable: false,
98
  title: ure_data.add_new_role_title,
148
  modal: true,
149
  autoOpen: true,
150
  closeOnEscape: true,
151
+ width: 450,
152
  height: 230,
153
  resizable: false,
154
  title: ure_data.rename_role_title,
556
  // end of ure_hide_this_banner()
557
 
558
 
559
+ function ure_caps_refresh_all() {
560
+ jQuery('.ure-cap-div').each(function () {
561
+ if (jQuery(this).hasClass('hidden') && !jQuery(this).hasClass('deprecated')) {
562
+ jQuery(this).removeClass('hidden');
563
+ }
564
+ });
565
+ }
566
+
567
+
568
+ function ure_caps_refresh_for_group(group_id) {
569
+ var show_deprecated = jQuery('#ure_show_deprecated_caps').attr('checked');
570
+ jQuery('.ure-cap-div').each(function () {
571
+ var el = jQuery(this);
572
+ if (el.hasClass(group_id)) {
573
+ if (el.hasClass('hidden')) {
574
+ if (el.hasClass('blocked')) {
575
+ return;
576
+ }
577
+ if (el.hasClass('deprecated')) {
578
+ if (group_id==='deprecated' || show_deprecated) {
579
+ el.removeClass('hidden');
580
+ }
581
+ } else {
582
+ el.removeClass('hidden');
583
+ }
584
+ }
585
+ } else {
586
+ if (!el.hasClass('hidden')) {
587
+ el.addClass('hidden');
588
+ }
589
+ }
590
+ });
591
+ }
592
+
593
+
594
  function ure_caps_refresh(group) {
595
 
596
  var group_id = group.substr(15);
597
  ure_obj.selected_group = group_id;
598
  if (group_id === 'all') {
599
+ ure_caps_refresh_all();
600
+ } else {
601
+ ure_caps_refresh_for_group(group_id);
602
+ }
603
+ ure_change_caps_columns_quant();
604
+ }
605
+
606
+
607
+ function ure_validate_columns(columns) {
608
+ if (columns==1 || ure_obj.selected_group=='all') {
609
+ return columns;
610
+ }
611
+
612
+ // Do not split list on columns in case it contains less then < 25 capabilities
613
+ for (i=0; i<ure_obj.caps_counter.length; i++) {
614
+ if (ure_obj.caps_counter[i].id==ure_obj.selected_group) {
615
+ if (ure_obj.caps_counter[i].total<=25) {
616
+ columns = 1;
617
  }
618
+ break;
619
+ }
620
  }
621
+
622
+ return columns;
623
+ }
624
 
625
+
626
+ function ure_change_caps_columns_quant() {
627
+ var selected_index = parseInt(jQuery('#caps_columns_quant').val());
628
+ var columns = ure_validate_columns(selected_index);
629
+ var el = jQuery('#ure_caps_list');
630
+ el.css('-moz-column-count', columns);
631
+ el.css('-webkit-column-count', columns);
632
+ el.css('column-count', columns);
633
+
634
+ }
635
+
636
+
637
+ function ure_init_caps_counter() {
638
+ ure_obj.caps_counter = new Array();
639
+ jQuery('#ure_caps_groups_list li').each(function() {
640
+ var group_id = jQuery(this).attr('id').substr(15);
641
+ group_counter = {'id': group_id, 'total': 0, 'granted':0};
642
+ ure_obj.caps_counter.push(group_counter);
643
+ });
644
+
645
+ }
646
+
647
+
648
+ function ure_count_caps_in_groups() {
649
+ ure_init_caps_counter();
650
+
651
  jQuery('.ure-cap-div').each(function () {
652
+ var cap_div = jQuery(this);
653
+ var capability = cap_div.attr('id').substr(12);
654
+ for (i=0; i<ure_obj.caps_counter.length; i++) {
655
+ if (cap_div.hasClass(ure_obj.caps_counter[i].id)) {
656
+ ure_obj.caps_counter[i].total++;
657
+ if (jQuery('#'+ capability).is(':checked')) {
658
+ ure_obj.caps_counter[i].granted++;
 
 
 
659
  }
660
+ }
 
 
 
 
661
  }
662
  });
663
+
664
+ for (i=0; i<ure_obj.caps_counter.length; i++) {
665
+ var el = jQuery('#ure_caps_group_'+ ure_obj.caps_counter[i].id);
666
+ var value = el.text() +' ('+ ure_obj.caps_counter[i].total +'/'+ ure_obj.caps_counter[i].granted +')';
667
+
668
+ el.text(value);
669
+ }
670
+
671
+ }
672
+
673
+
674
+ function ure_sizes_update() {
675
+ var width = jQuery('#ure_caps_td').css('width');
676
+ jQuery('#ure_caps_list_container').css('width', width);
677
+ }
678
+
679
+
680
+ jQuery(window).resize(function() {
681
+ ure_sizes_update();
682
+ });
lang/user-role-editor.mo DELETED
Binary file
lang/user-role-editor.pot CHANGED
@@ -1,8 +1,9 @@
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: User Role Editor 4.19.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-07-11 11:50+0700\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
8
  "Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
@@ -13,88 +14,67 @@ msgstr ""
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-KeywordsList: __;_e;esc_html__;esc_html_e\n"
15
  "X-Poedit-Basepath: .\n"
16
- "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../includes/settings-template.php:17
20
- msgid "User Role Editor - Options"
21
- msgstr ""
22
-
23
- #: ../includes/settings-template.php:21
24
- #: ../includes/classes/capabilities-groups-manager.php:71
25
- #: ../includes/classes/user-role-editor.php:482
26
- msgid "General"
27
- msgstr ""
28
-
29
- #: ../includes/settings-template.php:26
30
- #: ../includes/classes/user-role-editor.php:488
31
- msgid "Additional Modules"
32
- msgstr ""
33
-
34
- #: ../includes/settings-template.php:30
35
- #: ../includes/classes/user-role-editor.php:494
36
- msgid "Default Roles"
37
  msgstr ""
38
 
39
- #: ../includes/settings-template.php:34
40
- #: ../includes/classes/capabilities-groups-manager.php:80
41
- #: ../includes/classes/user-role-editor.php:500
42
- msgid "Multisite"
43
  msgstr ""
44
 
45
- #: ../includes/settings-template.php:39
46
- msgid "About"
47
  msgstr ""
48
 
49
- #: ../includes/settings-template.php:53 ../includes/classes/screen-help.php:15
50
- msgid "Show Administrator role at User Role Editor"
 
 
51
  msgstr ""
52
 
53
- #: ../includes/settings-template.php:61 ../includes/classes/screen-help.php:18
54
- msgid "Show capabilities in the human readable form"
55
  msgstr ""
56
 
57
- #: ../includes/settings-template.php:69 ../includes/classes/role-view.php:350
58
- #: ../includes/classes/user-view.php:162
59
- #: ../includes/classes/screen-help.php:21
60
- msgid "Show deprecated capabilities"
61
  msgstr ""
62
 
63
- #: ../includes/settings-template.php:77
64
- msgid "Confirm role update"
65
  msgstr ""
66
 
67
- #: ../includes/settings-template.php:85 ../includes/classes/screen-help.php:25
68
- msgid "Edit user capabilities"
69
  msgstr ""
70
 
71
- #: ../includes/settings-template.php:98 ../includes/settings-template.php:134
72
- #: ../includes/settings-template.php:166 ../includes/settings-template.php:198
73
- msgid "Save"
74
  msgstr ""
75
 
76
- #: ../includes/settings-template.php:119
77
- #: ../includes/classes/screen-help.php:45
78
- msgid "Count users without role"
 
79
  msgstr ""
80
 
81
- #: ../includes/settings-template.php:146
82
- msgid "Primary default role: "
83
  msgstr ""
84
 
85
- #: ../includes/settings-template.php:153
86
- msgid "Other default roles for new registered user: "
87
  msgstr ""
88
 
89
- #: ../includes/settings-template.php:159
90
- msgid ""
91
- "Note for multisite environment: take into account that other default roles "
92
- "should exist at the site, in order to be assigned to the new registered "
93
- "users."
94
  msgstr ""
95
 
96
- #: ../includes/settings-template.php:185
97
- msgid "Allow non super administrators to create, edit, and delete users"
98
  msgstr ""
99
 
100
  #: ../includes/classes/role-view.php:75
@@ -105,595 +85,614 @@ msgstr ""
105
  msgid "Delete All Unused Roles"
106
  msgstr ""
107
 
108
- #: ../includes/classes/role-view.php:167 ../includes/classes/role-view.php:178
109
  msgid "Role name (ID): "
110
  msgstr ""
111
 
112
- #: ../includes/classes/role-view.php:169 ../includes/classes/role-view.php:180
113
  msgid "Display Role Name: "
114
  msgstr ""
115
 
116
- #: ../includes/classes/role-view.php:171
117
  msgid "Make copy of: "
118
  msgstr ""
119
 
120
- #: ../includes/classes/role-view.php:187
121
  msgid "Select Role:"
122
  msgstr ""
123
 
124
- #: ../includes/classes/role-view.php:206
125
  msgid "Delete:"
126
  msgstr ""
127
 
128
- #: ../includes/classes/role-view.php:213
129
  msgid "Capability name (ID): "
130
  msgstr ""
131
 
132
- #: ../includes/classes/role-view.php:325
133
- msgid "Select Role and change its capabilities:"
134
  msgstr ""
135
 
136
- #: ../includes/classes/role-view.php:339 ../includes/classes/user-view.php:152
137
- msgid "Show capabilities in human readable form"
 
138
  msgstr ""
139
 
140
- #: ../includes/classes/role-view.php:354
141
  msgid "If checked, then apply action to ALL sites of this Network"
142
  msgstr ""
143
 
144
- #: ../includes/classes/role-view.php:366
145
  msgid "Apply to All Sites"
146
  msgstr ""
147
 
148
- #: ../includes/classes/user-view.php:61
149
- msgid "Switch&nbsp;To"
150
  msgstr ""
151
 
152
- #: ../includes/classes/user-view.php:73
153
- msgid "Network Super Admin"
 
 
 
154
  msgstr ""
155
 
156
- #: ../includes/classes/user-view.php:98
157
- msgid "&mdash; No role for this site &mdash;"
158
  msgstr ""
159
 
160
- #: ../includes/classes/user-view.php:135
161
- msgid "Change capabilities for user"
 
 
 
162
  msgstr ""
163
 
164
- #: ../includes/classes/user-view.php:170
165
- msgid "Primary Role:"
166
  msgstr ""
167
 
168
- #: ../includes/classes/user-view.php:176
169
- msgid "bbPress Role:"
 
 
 
170
  msgstr ""
171
 
172
- #: ../includes/classes/user-view.php:185
173
- msgid "Other Roles:"
 
 
 
 
174
  msgstr ""
175
 
176
- #: ../includes/classes/user-other-roles.php:81
177
- #: ../includes/classes/user-other-roles.php:182
178
- msgid "Other Roles"
179
  msgstr ""
180
 
181
- #: ../includes/classes/user-other-roles.php:82
182
- msgid "Select additional roles for this user"
 
 
 
183
  msgstr ""
184
 
185
- #: ../includes/classes/user-other-roles.php:161
186
- #: ../includes/classes/user-role-editor.php:355
187
- msgid "Capabilities"
188
  msgstr ""
189
 
190
- #: ../includes/classes/user-other-roles.php:168
191
- msgid "Edit"
 
 
 
192
  msgstr ""
193
 
194
- #: ../includes/classes/user-other-roles.php:218
195
- msgid "Additional Capabilities"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  msgstr ""
197
 
198
  #: ../includes/classes/ure-lib.php:292
199
  msgid "Error: wrong request"
200
  msgstr ""
201
 
202
- #: ../includes/classes/ure-lib.php:317
203
  #: ../includes/classes/user-role-editor.php:510
204
  #: ../includes/classes/user-role-editor.php:541
205
  msgid "User Role Editor"
206
  msgstr ""
207
 
208
- #: ../includes/classes/ure-lib.php:381
209
  msgid "Error: "
210
  msgstr ""
211
 
212
- #: ../includes/classes/ure-lib.php:381
213
  msgid "Role"
214
  msgstr ""
215
 
216
- #: ../includes/classes/ure-lib.php:382
217
  msgid "does not exist"
218
  msgstr ""
219
 
220
- #: ../includes/classes/ure-lib.php:425
221
  msgid "Role is updated successfully"
222
  msgstr ""
223
 
224
- #: ../includes/classes/ure-lib.php:427
225
  msgid "Roles are updated for all network"
226
  msgstr ""
227
 
228
- #: ../includes/classes/ure-lib.php:433
229
  msgid "Error occured during role(s) update"
230
  msgstr ""
231
 
232
- #: ../includes/classes/ure-lib.php:440
233
  msgid "User capabilities are updated successfully"
234
  msgstr ""
235
 
236
- #: ../includes/classes/ure-lib.php:445
237
  msgid "Error occured during user update"
238
  msgstr ""
239
 
240
- #: ../includes/classes/ure-lib.php:503
241
  msgid "User Roles are restored to WordPress default values. "
242
  msgstr ""
243
 
244
- #: ../includes/classes/ure-lib.php:1040
245
  msgid "read about"
246
  msgstr ""
247
 
248
- #: ../includes/classes/ure-lib.php:1041
249
  msgid "user capability"
250
  msgstr ""
251
 
252
- #: ../includes/classes/ure-lib.php:1042
253
  msgid "Help"
254
  msgstr ""
255
 
256
- #: ../includes/classes/ure-lib.php:1374 ../includes/classes/ure-lib.php:1650
257
- #: ../includes/classes/ure-lib.php:1766 ../includes/classes/ure-lib.php:1814
258
- #: ../includes/classes/ure-lib.php:2093 ../includes/classes/ure-lib.php:2136
259
  #: ../includes/classes/user-role-editor.php:751
260
  msgid "Insufficient permissions to work with User Role Editor"
261
  msgstr ""
262
 
263
- #: ../includes/classes/ure-lib.php:1613
264
  msgid "Error is occur. Please check the log file."
265
  msgstr ""
266
 
267
- #: ../includes/classes/ure-lib.php:1659 ../includes/classes/ure-lib.php:1726
268
  msgid ""
269
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
270
  "only!"
271
  msgstr ""
272
 
273
- #: ../includes/classes/ure-lib.php:1663 ../includes/classes/ure-lib.php:1730
274
  msgid ""
275
  "Error: WordPress does not support numeric Role name (ID). Add latin "
276
  "characters to it."
277
  msgstr ""
278
 
279
- #: ../includes/classes/ure-lib.php:1678
280
  #, php-format
281
  msgid "Role %s exists already"
282
  msgstr ""
283
 
284
- #: ../includes/classes/ure-lib.php:1693
285
  msgid "Error is encountered during new role create operation"
286
  msgstr ""
287
 
288
- #: ../includes/classes/ure-lib.php:1695
289
  #, php-format
290
  msgid "Role %s is created successfully"
291
  msgstr ""
292
 
293
- #: ../includes/classes/ure-lib.php:1719
294
  msgid "Error: Role ID is empty!"
295
  msgstr ""
296
 
297
- #: ../includes/classes/ure-lib.php:1737
298
  msgid "Error: Empty role display name is not allowed."
299
  msgstr ""
300
 
301
- #: ../includes/classes/ure-lib.php:1744
302
  #, php-format
303
  msgid "Role %s does not exists"
304
  msgstr ""
305
 
306
- #: ../includes/classes/ure-lib.php:1752
307
  #, php-format
308
  msgid "Role %s is renamed to %s successfully"
309
  msgstr ""
310
 
311
- #: ../includes/classes/ure-lib.php:1825
312
  msgid "Error encountered during role delete operation"
313
  msgstr ""
314
 
315
- #: ../includes/classes/ure-lib.php:1827
316
  msgid "Unused roles are deleted successfully"
317
  msgstr ""
318
 
319
- #: ../includes/classes/ure-lib.php:1829
320
  #, php-format
321
  msgid "Role %s is deleted successfully"
322
  msgstr ""
323
 
324
- #: ../includes/classes/ure-lib.php:1860
325
  msgid "Error encountered during default role change operation"
326
  msgstr ""
327
 
328
- #: ../includes/classes/ure-lib.php:1863
329
  #, php-format
330
  msgid "Default role for new users is set to %s successfully"
331
  msgstr ""
332
 
333
- #: ../includes/classes/ure-lib.php:1866
334
  msgid "Can not set Administrator role as a default one"
335
  msgstr ""
336
 
337
- #: ../includes/classes/ure-lib.php:1868
338
  msgid "This role does not exist - "
339
  msgstr ""
340
 
341
- #: ../includes/classes/ure-lib.php:1884
342
  msgid "Editor"
343
  msgstr ""
344
 
345
- #: ../includes/classes/ure-lib.php:1885
346
  msgid "Author"
347
  msgstr ""
348
 
349
- #: ../includes/classes/ure-lib.php:1886
350
  msgid "Contributor"
351
  msgstr ""
352
 
353
- #: ../includes/classes/ure-lib.php:1887
354
  msgid "Subscriber"
355
  msgstr ""
356
 
357
- #: ../includes/classes/ure-lib.php:1889
358
  msgid "Switch themes"
359
  msgstr ""
360
 
361
- #: ../includes/classes/ure-lib.php:1890
362
  msgid "Edit themes"
363
  msgstr ""
364
 
365
- #: ../includes/classes/ure-lib.php:1891
366
  msgid "Activate plugins"
367
  msgstr ""
368
 
369
- #: ../includes/classes/ure-lib.php:1892
370
  msgid "Edit plugins"
371
  msgstr ""
372
 
373
- #: ../includes/classes/ure-lib.php:1893
374
  msgid "Edit users"
375
  msgstr ""
376
 
377
- #: ../includes/classes/ure-lib.php:1894
378
  msgid "Edit files"
379
  msgstr ""
380
 
381
- #: ../includes/classes/ure-lib.php:1895
382
  msgid "Manage options"
383
  msgstr ""
384
 
385
- #: ../includes/classes/ure-lib.php:1896
386
  msgid "Moderate comments"
387
  msgstr ""
388
 
389
- #: ../includes/classes/ure-lib.php:1897
390
  msgid "Manage categories"
391
  msgstr ""
392
 
393
- #: ../includes/classes/ure-lib.php:1898
394
  msgid "Manage links"
395
  msgstr ""
396
 
397
- #: ../includes/classes/ure-lib.php:1899
398
  msgid "Upload files"
399
  msgstr ""
400
 
401
- #: ../includes/classes/ure-lib.php:1900
402
  msgid "Import"
403
  msgstr ""
404
 
405
- #: ../includes/classes/ure-lib.php:1901
406
  msgid "Unfiltered html"
407
  msgstr ""
408
 
409
- #: ../includes/classes/ure-lib.php:1902
410
  msgid "Edit posts"
411
  msgstr ""
412
 
413
- #: ../includes/classes/ure-lib.php:1903
414
  msgid "Edit others posts"
415
  msgstr ""
416
 
417
- #: ../includes/classes/ure-lib.php:1904
418
  msgid "Edit published posts"
419
  msgstr ""
420
 
421
- #: ../includes/classes/ure-lib.php:1905
422
  msgid "Publish posts"
423
  msgstr ""
424
 
425
- #: ../includes/classes/ure-lib.php:1906
426
  msgid "Edit pages"
427
  msgstr ""
428
 
429
- #: ../includes/classes/ure-lib.php:1907
430
  msgid "Read"
431
  msgstr ""
432
 
433
- #: ../includes/classes/ure-lib.php:1908
434
  msgid "Level 10"
435
  msgstr ""
436
 
437
- #: ../includes/classes/ure-lib.php:1909
438
  msgid "Level 9"
439
  msgstr ""
440
 
441
- #: ../includes/classes/ure-lib.php:1910
442
  msgid "Level 8"
443
  msgstr ""
444
 
445
- #: ../includes/classes/ure-lib.php:1911
446
  msgid "Level 7"
447
  msgstr ""
448
 
449
- #: ../includes/classes/ure-lib.php:1912
450
  msgid "Level 6"
451
  msgstr ""
452
 
453
- #: ../includes/classes/ure-lib.php:1913
454
  msgid "Level 5"
455
  msgstr ""
456
 
457
- #: ../includes/classes/ure-lib.php:1914
458
  msgid "Level 4"
459
  msgstr ""
460
 
461
- #: ../includes/classes/ure-lib.php:1915
462
  msgid "Level 3"
463
  msgstr ""
464
 
465
- #: ../includes/classes/ure-lib.php:1916
466
  msgid "Level 2"
467
  msgstr ""
468
 
469
- #: ../includes/classes/ure-lib.php:1917
470
  msgid "Level 1"
471
  msgstr ""
472
 
473
- #: ../includes/classes/ure-lib.php:1918
474
  msgid "Level 0"
475
  msgstr ""
476
 
477
- #: ../includes/classes/ure-lib.php:1919
478
  msgid "Edit others pages"
479
  msgstr ""
480
 
481
- #: ../includes/classes/ure-lib.php:1920
482
  msgid "Edit published pages"
483
  msgstr ""
484
 
485
- #: ../includes/classes/ure-lib.php:1921
486
  msgid "Publish pages"
487
  msgstr ""
488
 
489
- #: ../includes/classes/ure-lib.php:1922
490
  msgid "Delete pages"
491
  msgstr ""
492
 
493
- #: ../includes/classes/ure-lib.php:1923
494
  msgid "Delete others pages"
495
  msgstr ""
496
 
497
- #: ../includes/classes/ure-lib.php:1924
498
  msgid "Delete published pages"
499
  msgstr ""
500
 
501
- #: ../includes/classes/ure-lib.php:1925
502
  msgid "Delete posts"
503
  msgstr ""
504
 
505
- #: ../includes/classes/ure-lib.php:1926
506
  msgid "Delete others posts"
507
  msgstr ""
508
 
509
- #: ../includes/classes/ure-lib.php:1927
510
  msgid "Delete published posts"
511
  msgstr ""
512
 
513
- #: ../includes/classes/ure-lib.php:1928
514
  msgid "Delete private posts"
515
  msgstr ""
516
 
517
- #: ../includes/classes/ure-lib.php:1929
518
  msgid "Edit private posts"
519
  msgstr ""
520
 
521
- #: ../includes/classes/ure-lib.php:1930
522
  msgid "Read private posts"
523
  msgstr ""
524
 
525
- #: ../includes/classes/ure-lib.php:1931
526
  msgid "Delete private pages"
527
  msgstr ""
528
 
529
- #: ../includes/classes/ure-lib.php:1932
530
  msgid "Edit private pages"
531
  msgstr ""
532
 
533
- #: ../includes/classes/ure-lib.php:1933
534
  msgid "Read private pages"
535
  msgstr ""
536
 
537
- #: ../includes/classes/ure-lib.php:1934
538
  msgid "Delete users"
539
  msgstr ""
540
 
541
- #: ../includes/classes/ure-lib.php:1935
542
  msgid "Create users"
543
  msgstr ""
544
 
545
- #: ../includes/classes/ure-lib.php:1936
546
  msgid "Unfiltered upload"
547
  msgstr ""
548
 
549
- #: ../includes/classes/ure-lib.php:1937
550
  msgid "Edit dashboard"
551
  msgstr ""
552
 
553
- #: ../includes/classes/ure-lib.php:1938
554
  msgid "Update plugins"
555
  msgstr ""
556
 
557
- #: ../includes/classes/ure-lib.php:1939
558
  msgid "Delete plugins"
559
  msgstr ""
560
 
561
- #: ../includes/classes/ure-lib.php:1940
562
  msgid "Install plugins"
563
  msgstr ""
564
 
565
- #: ../includes/classes/ure-lib.php:1941
566
  msgid "Update themes"
567
  msgstr ""
568
 
569
- #: ../includes/classes/ure-lib.php:1942
570
  msgid "Install themes"
571
  msgstr ""
572
 
573
- #: ../includes/classes/ure-lib.php:1943
574
  msgid "Update core"
575
  msgstr ""
576
 
577
- #: ../includes/classes/ure-lib.php:1944
578
  msgid "List users"
579
  msgstr ""
580
 
581
- #: ../includes/classes/ure-lib.php:1945
582
  msgid "Remove users"
583
  msgstr ""
584
 
585
- #: ../includes/classes/ure-lib.php:1946
586
  msgid "Add users"
587
  msgstr ""
588
 
589
- #: ../includes/classes/ure-lib.php:1947
590
  msgid "Promote users"
591
  msgstr ""
592
 
593
- #: ../includes/classes/ure-lib.php:1948
594
  msgid "Edit theme options"
595
  msgstr ""
596
 
597
- #: ../includes/classes/ure-lib.php:1949
598
  msgid "Delete themes"
599
  msgstr ""
600
 
601
- #: ../includes/classes/ure-lib.php:1950
602
  msgid "Export"
603
  msgstr ""
604
 
605
- #: ../includes/classes/ure-lib.php:2104
606
  msgid "Error: Capability name must contain latin characters and digits only!"
607
  msgstr ""
608
 
609
- #: ../includes/classes/ure-lib.php:2114
610
  #, php-format
611
  msgid "Capability %s is added successfully"
612
  msgstr ""
613
 
614
- #: ../includes/classes/ure-lib.php:2116
615
  #, php-format
616
  msgid "Capability %s exists already"
617
  msgstr ""
618
 
619
- #: ../includes/classes/ure-lib.php:2143
620
  #, php-format
621
  msgid "Error! You do not have permission to delete this capability: %s!"
622
  msgstr ""
623
 
624
- #: ../includes/classes/ure-lib.php:2162
625
  #, php-format
626
  msgid "Capability %s was removed successfully"
627
  msgstr ""
628
 
629
- #: ../includes/classes/ure-lib.php:2202
630
  msgid "Version:"
631
  msgstr ""
632
 
633
- #: ../includes/classes/ure-lib.php:2203
634
  msgid "Author's website"
635
  msgstr ""
636
 
637
- #: ../includes/classes/ure-lib.php:2204
638
  msgid "Plugin webpage"
639
  msgstr ""
640
 
641
- #: ../includes/classes/ure-lib.php:2205
642
  msgid "Plugin download"
643
  msgstr ""
644
 
645
- #: ../includes/classes/ure-lib.php:2206
646
  #: ../includes/classes/user-role-editor.php:459
647
  msgid "Changelog"
648
  msgstr ""
649
 
650
- #: ../includes/classes/ure-lib.php:2207
651
  msgid "FAQ"
652
  msgstr ""
653
 
654
- #: ../includes/classes/ure-lib.php:2352
655
  #, php-format
656
  msgid "Denied: %s"
657
  msgstr ""
658
 
659
- #: ../includes/classes/capabilities-groups-manager.php:40
660
- msgid "Custom Post Types"
661
- msgstr ""
662
-
663
- #: ../includes/classes/capabilities-groups-manager.php:69
664
- msgid "All"
665
- msgstr ""
666
-
667
- #: ../includes/classes/capabilities-groups-manager.php:70
668
- msgid "Core"
669
- msgstr ""
670
-
671
- #: ../includes/classes/capabilities-groups-manager.php:72
672
- msgid "Themes"
673
- msgstr ""
674
-
675
- #: ../includes/classes/capabilities-groups-manager.php:73
676
- msgid "Posts"
677
- msgstr ""
678
-
679
- #: ../includes/classes/capabilities-groups-manager.php:74
680
- msgid "Pages"
681
  msgstr ""
682
 
683
- #: ../includes/classes/capabilities-groups-manager.php:75
684
- msgid "Plugins"
685
  msgstr ""
686
 
687
- #: ../includes/classes/capabilities-groups-manager.php:76
688
- msgid "Users"
 
689
  msgstr ""
690
 
691
- #: ../includes/classes/capabilities-groups-manager.php:82
692
- msgid "Deprecated"
693
  msgstr ""
694
 
695
- #: ../includes/classes/capabilities-groups-manager.php:87
696
- msgid "Custom capabilities"
697
  msgstr ""
698
 
699
  #: ../includes/classes/user-role-editor.php:254
@@ -721,6 +720,16 @@ msgstr ""
721
  msgid "Settings"
722
  msgstr ""
723
 
 
 
 
 
 
 
 
 
 
 
724
  #: ../includes/classes/user-role-editor.php:604
725
  #: ../includes/classes/user-role-editor.php:622
726
  #: ../includes/classes/user-role-editor.php:667
@@ -737,210 +746,212 @@ msgid ""
737
  "Editor."
738
  msgstr ""
739
 
740
- #: ../includes/classes/user-role-editor.php:789
741
  msgid "Confirm"
742
  msgstr ""
743
 
744
- #: ../includes/classes/user-role-editor.php:790
745
  msgid "Yes"
746
  msgstr ""
747
 
748
- #: ../includes/classes/user-role-editor.php:791
749
  msgid "No"
750
  msgstr ""
751
 
752
- #: ../includes/classes/user-role-editor.php:792
753
  msgid "Select All"
754
  msgstr ""
755
 
756
- #: ../includes/classes/user-role-editor.php:793
757
  msgid "Unselect All"
758
  msgstr ""
759
 
760
- #: ../includes/classes/user-role-editor.php:794
761
  msgid "Reverse"
762
  msgstr ""
763
 
764
- #: ../includes/classes/user-role-editor.php:795
765
  msgid "Update"
766
  msgstr ""
767
 
768
- #: ../includes/classes/user-role-editor.php:796
769
  msgid "Please confirm permissions update"
770
  msgstr ""
771
 
772
- #: ../includes/classes/user-role-editor.php:797
773
  msgid "Add New Role"
774
  msgstr ""
775
 
776
- #: ../includes/classes/user-role-editor.php:798
777
- #: ../includes/classes/user-role-editor.php:803
778
  msgid "Rename Role"
779
  msgstr ""
780
 
781
- #: ../includes/classes/user-role-editor.php:799
782
  msgid " Role name (ID) can not be empty!"
783
  msgstr ""
784
 
785
- #: ../includes/classes/user-role-editor.php:800
786
  msgid ""
787
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
788
  "only!"
789
  msgstr ""
790
 
791
- #: ../includes/classes/user-role-editor.php:801
792
  msgid ""
793
  " WordPress does not support numeric Role name (ID). Add latin characters to "
794
  "it."
795
  msgstr ""
796
 
797
- #: ../includes/classes/user-role-editor.php:802
798
  msgid "Add Role"
799
  msgstr ""
800
 
801
- #: ../includes/classes/user-role-editor.php:804
802
  msgid "Delete Role"
803
  msgstr ""
804
 
805
- #: ../includes/classes/user-role-editor.php:805
806
  msgid "Cancel"
807
  msgstr ""
808
 
809
- #: ../includes/classes/user-role-editor.php:806
810
  msgid "Add Capability"
811
  msgstr ""
812
 
813
- #: ../includes/classes/user-role-editor.php:807
814
- #: ../includes/classes/user-role-editor.php:816
815
  msgid "Delete Capability"
816
  msgstr ""
817
 
818
- #: ../includes/classes/user-role-editor.php:808
819
  msgid "Reset"
820
  msgstr ""
821
 
822
- #: ../includes/classes/user-role-editor.php:809
823
  msgid "DANGER! Resetting will restore default settings from WordPress Core."
824
  msgstr ""
825
 
826
- #: ../includes/classes/user-role-editor.php:810
827
  msgid ""
828
  "If any plugins have changed capabilities in any way upon installation (such "
829
  "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
830
  msgstr ""
831
 
832
- #: ../includes/classes/user-role-editor.php:811
833
  msgid ""
834
  "For more information on how to undo changes and restore plugin capabilities "
835
  "go to"
836
  msgstr ""
837
 
838
- #: ../includes/classes/user-role-editor.php:813
839
  msgid "Continue?"
840
  msgstr ""
841
 
842
- #: ../includes/classes/user-role-editor.php:814
843
  msgid "Default Role"
844
  msgstr ""
845
 
846
- #: ../includes/classes/user-role-editor.php:815
847
  msgid "Set New Default Role"
848
  msgstr ""
849
 
850
- #: ../includes/classes/user-role-editor.php:817
851
  msgid ""
852
  "Warning! Be careful - removing critical capability could crash some plugin "
853
  "or other custom code"
854
  msgstr ""
855
 
856
- #: ../includes/classes/user-role-editor.php:818
857
  msgid " Capability name (ID) can not be empty!"
858
  msgstr ""
859
 
860
- #: ../includes/classes/user-role-editor.php:819
861
  msgid ""
862
  " Capability name (ID) must contain latin characters, digits, hyphens or "
863
  "underscore only!"
864
  msgstr ""
865
 
866
- #: ../includes/classes/role-additional-options.php:69
867
- msgid "Hide admin bar"
868
  msgstr ""
869
 
870
- #: ../includes/classes/role-additional-options.php:121
871
- msgid "Additional Options"
 
 
 
 
872
  msgstr ""
873
 
874
- #: ../includes/classes/view.php:247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875
  msgid "Group"
876
  msgstr ""
877
 
878
- #: ../includes/classes/view.php:252
879
- msgid "Quick filter:"
880
  msgstr ""
881
 
882
- #: ../includes/classes/screen-help.php:12
883
- #: ../includes/classes/screen-help.php:41
884
- #: ../includes/classes/screen-help.php:60
885
- #: ../includes/classes/screen-help.php:79
886
- msgid "User Role Editor Options page help"
887
  msgstr ""
888
 
889
- #: ../includes/classes/screen-help.php:16
890
- msgid ""
891
- "turn this option on in order to make the \"Administrator\" role available at "
892
- "the User Role Editor roles selection drop-down list. It is hidden by default "
893
- "for security reasons."
894
  msgstr ""
895
 
896
- #: ../includes/classes/screen-help.php:19
897
- msgid ""
898
- "automatically converts capability names from the technical form for internal "
899
- "use like \"edit_others_posts\" to more user friendly form, e.g. \"Edit "
900
- "others posts\"."
901
  msgstr ""
902
 
903
- #: ../includes/classes/screen-help.php:22
904
- msgid ""
905
- "Capabilities like \"level_0\", \"level_1\" are deprecated and are not used "
906
- "by WordPress. They are left at the user roles for the compatibility purpose "
907
- "with the old themes and plugins code. Turning on this option will show those "
908
- "deprecated capabilities."
909
  msgstr ""
910
 
911
- #: ../includes/classes/screen-help.php:26
912
- msgid ""
913
- "If turned off - capabilities section of selected user is shown in readonly "
914
- "mode. Administrator can not assign capabilities to the user directly. He "
915
- "should make it using roles only."
916
  msgstr ""
917
 
918
- #: ../includes/classes/screen-help.php:46
919
- msgid ""
920
- "Show at the \"Users\" page a quant of users without role. Module allows to "
921
- "assign all of them an empty role \"No rights\", in order to look on the "
922
- "users list with role \"No rights\" at the separate tab then."
923
  msgstr ""
924
 
925
- #: ../includes/classes/screen-help.php:63
926
- msgid "Other default roles for new registered user"
 
927
  msgstr ""
928
 
929
- #: ../includes/classes/screen-help.php:64
930
- msgid ""
931
- "select roles below to assign them to the new user automatically as an "
932
- "addition to the primary role. Note for multisite environment: take into "
933
- "account that other default roles should exist at the site, in order to be "
934
- "assigned to the new registered users."
935
  msgstr ""
936
 
937
- #: ../includes/classes/screen-help.php:82
938
- msgid "Allow non super-admininstrators to create, edit and delete users"
939
  msgstr ""
940
 
941
- #: ../includes/classes/screen-help.php:83
942
  msgid ""
943
- "Super administrator only may create, edit and delete users under WordPress "
944
- "multi-site by default. Turn this option on in order to remove this "
945
- "limitation."
 
 
 
 
946
  msgstr ""
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: 2016-08-17 11:21+0700\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
9
  "Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_e;esc_html__;esc_html_e\n"
16
  "X-Poedit-Basepath: .\n"
17
+ "X-Generator: Poedit 1.8.7.1\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../includes/classes/capabilities-groups-manager.php:44
21
+ msgid "Custom Post Types"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  msgstr ""
23
 
24
+ #: ../includes/classes/capabilities-groups-manager.php:73
25
+ msgid "All"
 
 
26
  msgstr ""
27
 
28
+ #: ../includes/classes/capabilities-groups-manager.php:74
29
+ msgid "Core"
30
  msgstr ""
31
 
32
+ #: ../includes/classes/capabilities-groups-manager.php:75
33
+ #: ../includes/classes/user-role-editor.php:482
34
+ #: ../includes/settings-template.php:21
35
+ msgid "General"
36
  msgstr ""
37
 
38
+ #: ../includes/classes/capabilities-groups-manager.php:76
39
+ msgid "Themes"
40
  msgstr ""
41
 
42
+ #: ../includes/classes/capabilities-groups-manager.php:77
43
+ msgid "Posts"
 
 
44
  msgstr ""
45
 
46
+ #: ../includes/classes/capabilities-groups-manager.php:78
47
+ msgid "Pages"
48
  msgstr ""
49
 
50
+ #: ../includes/classes/capabilities-groups-manager.php:79
51
+ msgid "Plugins"
52
  msgstr ""
53
 
54
+ #: ../includes/classes/capabilities-groups-manager.php:80
55
+ msgid "Users"
 
56
  msgstr ""
57
 
58
+ #: ../includes/classes/capabilities-groups-manager.php:84
59
+ #: ../includes/classes/user-role-editor.php:500
60
+ #: ../includes/settings-template.php:34
61
+ msgid "Multisite"
62
  msgstr ""
63
 
64
+ #: ../includes/classes/capabilities-groups-manager.php:86
65
+ msgid "Deprecated"
66
  msgstr ""
67
 
68
+ #: ../includes/classes/capabilities-groups-manager.php:91
69
+ msgid "Custom capabilities"
70
  msgstr ""
71
 
72
+ #: ../includes/classes/role-additional-options.php:69
73
+ msgid "Hide admin bar"
 
 
 
74
  msgstr ""
75
 
76
+ #: ../includes/classes/role-additional-options.php:121
77
+ msgid "Additional Options"
78
  msgstr ""
79
 
80
  #: ../includes/classes/role-view.php:75
85
  msgid "Delete All Unused Roles"
86
  msgstr ""
87
 
88
+ #: ../includes/classes/role-view.php:168 ../includes/classes/role-view.php:179
89
  msgid "Role name (ID): "
90
  msgstr ""
91
 
92
+ #: ../includes/classes/role-view.php:170 ../includes/classes/role-view.php:181
93
  msgid "Display Role Name: "
94
  msgstr ""
95
 
96
+ #: ../includes/classes/role-view.php:172
97
  msgid "Make copy of: "
98
  msgstr ""
99
 
100
+ #: ../includes/classes/role-view.php:188
101
  msgid "Select Role:"
102
  msgstr ""
103
 
104
+ #: ../includes/classes/role-view.php:207
105
  msgid "Delete:"
106
  msgstr ""
107
 
108
+ #: ../includes/classes/role-view.php:214
109
  msgid "Capability name (ID): "
110
  msgstr ""
111
 
112
+ #: ../includes/classes/role-view.php:332 ../includes/classes/user-view.php:154
113
+ msgid "Show capabilities in human readable form"
114
  msgstr ""
115
 
116
+ #: ../includes/classes/role-view.php:342 ../includes/classes/screen-help.php:21
117
+ #: ../includes/classes/user-view.php:164 ../includes/settings-template.php:69
118
+ msgid "Show deprecated capabilities"
119
  msgstr ""
120
 
121
+ #: ../includes/classes/role-view.php:346
122
  msgid "If checked, then apply action to ALL sites of this Network"
123
  msgstr ""
124
 
125
+ #: ../includes/classes/role-view.php:359
126
  msgid "Apply to All Sites"
127
  msgstr ""
128
 
129
+ #: ../includes/classes/role-view.php:376
130
+ msgid "Select Role and change its capabilities:"
131
  msgstr ""
132
 
133
+ #: ../includes/classes/screen-help.php:12
134
+ #: ../includes/classes/screen-help.php:41
135
+ #: ../includes/classes/screen-help.php:60
136
+ #: ../includes/classes/screen-help.php:79
137
+ msgid "User Role Editor Options page help"
138
  msgstr ""
139
 
140
+ #: ../includes/classes/screen-help.php:15 ../includes/settings-template.php:53
141
+ msgid "Show Administrator role at User Role Editor"
142
  msgstr ""
143
 
144
+ #: ../includes/classes/screen-help.php:16
145
+ msgid ""
146
+ "turn this option on in order to make the \"Administrator\" role available at "
147
+ "the User Role Editor roles selection drop-down list. It is hidden by default "
148
+ "for security reasons."
149
  msgstr ""
150
 
151
+ #: ../includes/classes/screen-help.php:18 ../includes/settings-template.php:61
152
+ msgid "Show capabilities in the human readable form"
153
  msgstr ""
154
 
155
+ #: ../includes/classes/screen-help.php:19
156
+ msgid ""
157
+ "automatically converts capability names from the technical form for internal "
158
+ "use like \"edit_others_posts\" to more user friendly form, e.g. \"Edit "
159
+ "others posts\"."
160
  msgstr ""
161
 
162
+ #: ../includes/classes/screen-help.php:22
163
+ msgid ""
164
+ "Capabilities like \"level_0\", \"level_1\" are deprecated and are not used "
165
+ "by WordPress. They are left at the user roles for the compatibility purpose "
166
+ "with the old themes and plugins code. Turning on this option will show those "
167
+ "deprecated capabilities."
168
  msgstr ""
169
 
170
+ #: ../includes/classes/screen-help.php:25 ../includes/settings-template.php:85
171
+ msgid "Edit user capabilities"
 
172
  msgstr ""
173
 
174
+ #: ../includes/classes/screen-help.php:26
175
+ msgid ""
176
+ "If turned off - capabilities section of selected user is shown in readonly "
177
+ "mode. Administrator can not assign capabilities to the user directly. He "
178
+ "should make it using roles only."
179
  msgstr ""
180
 
181
+ #: ../includes/classes/screen-help.php:45 ../includes/settings-template.php:119
182
+ msgid "Count users without role"
 
183
  msgstr ""
184
 
185
+ #: ../includes/classes/screen-help.php:46
186
+ msgid ""
187
+ "Show at the \"Users\" page a quant of users without role. Module allows to "
188
+ "assign all of them an empty role \"No rights\", in order to look on the "
189
+ "users list with role \"No rights\" at the separate tab then."
190
  msgstr ""
191
 
192
+ #: ../includes/classes/screen-help.php:63
193
+ msgid "Other default roles for new registered user"
194
+ msgstr ""
195
+
196
+ #: ../includes/classes/screen-help.php:64
197
+ msgid ""
198
+ "select roles below to assign them to the new user automatically as an "
199
+ "addition to the primary role. Note for multisite environment: take into "
200
+ "account that other default roles should exist at the site, in order to be "
201
+ "assigned to the new registered users."
202
+ msgstr ""
203
+
204
+ #: ../includes/classes/screen-help.php:82
205
+ msgid "Allow non super-admininstrators to create, edit and delete users"
206
+ msgstr ""
207
+
208
+ #: ../includes/classes/screen-help.php:83
209
+ msgid ""
210
+ "Super administrator only may create, edit and delete users under WordPress "
211
+ "multi-site by default. Turn this option on in order to remove this "
212
+ "limitation."
213
  msgstr ""
214
 
215
  #: ../includes/classes/ure-lib.php:292
216
  msgid "Error: wrong request"
217
  msgstr ""
218
 
219
+ #: ../includes/classes/ure-lib.php:327
220
  #: ../includes/classes/user-role-editor.php:510
221
  #: ../includes/classes/user-role-editor.php:541
222
  msgid "User Role Editor"
223
  msgstr ""
224
 
225
+ #: ../includes/classes/ure-lib.php:388
226
  msgid "Error: "
227
  msgstr ""
228
 
229
+ #: ../includes/classes/ure-lib.php:388
230
  msgid "Role"
231
  msgstr ""
232
 
233
+ #: ../includes/classes/ure-lib.php:389
234
  msgid "does not exist"
235
  msgstr ""
236
 
237
+ #: ../includes/classes/ure-lib.php:432
238
  msgid "Role is updated successfully"
239
  msgstr ""
240
 
241
+ #: ../includes/classes/ure-lib.php:434
242
  msgid "Roles are updated for all network"
243
  msgstr ""
244
 
245
+ #: ../includes/classes/ure-lib.php:440
246
  msgid "Error occured during role(s) update"
247
  msgstr ""
248
 
249
+ #: ../includes/classes/ure-lib.php:447
250
  msgid "User capabilities are updated successfully"
251
  msgstr ""
252
 
253
+ #: ../includes/classes/ure-lib.php:452
254
  msgid "Error occured during user update"
255
  msgstr ""
256
 
257
+ #: ../includes/classes/ure-lib.php:510
258
  msgid "User Roles are restored to WordPress default values. "
259
  msgstr ""
260
 
261
+ #: ../includes/classes/ure-lib.php:1047
262
  msgid "read about"
263
  msgstr ""
264
 
265
+ #: ../includes/classes/ure-lib.php:1048
266
  msgid "user capability"
267
  msgstr ""
268
 
269
+ #: ../includes/classes/ure-lib.php:1049
270
  msgid "Help"
271
  msgstr ""
272
 
273
+ #: ../includes/classes/ure-lib.php:1381 ../includes/classes/ure-lib.php:1657
274
+ #: ../includes/classes/ure-lib.php:1773 ../includes/classes/ure-lib.php:1821
275
+ #: ../includes/classes/ure-lib.php:2100 ../includes/classes/ure-lib.php:2143
276
  #: ../includes/classes/user-role-editor.php:751
277
  msgid "Insufficient permissions to work with User Role Editor"
278
  msgstr ""
279
 
280
+ #: ../includes/classes/ure-lib.php:1620
281
  msgid "Error is occur. Please check the log file."
282
  msgstr ""
283
 
284
+ #: ../includes/classes/ure-lib.php:1666 ../includes/classes/ure-lib.php:1733
285
  msgid ""
286
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
287
  "only!"
288
  msgstr ""
289
 
290
+ #: ../includes/classes/ure-lib.php:1670 ../includes/classes/ure-lib.php:1737
291
  msgid ""
292
  "Error: WordPress does not support numeric Role name (ID). Add latin "
293
  "characters to it."
294
  msgstr ""
295
 
296
+ #: ../includes/classes/ure-lib.php:1685
297
  #, php-format
298
  msgid "Role %s exists already"
299
  msgstr ""
300
 
301
+ #: ../includes/classes/ure-lib.php:1700
302
  msgid "Error is encountered during new role create operation"
303
  msgstr ""
304
 
305
+ #: ../includes/classes/ure-lib.php:1702
306
  #, php-format
307
  msgid "Role %s is created successfully"
308
  msgstr ""
309
 
310
+ #: ../includes/classes/ure-lib.php:1726
311
  msgid "Error: Role ID is empty!"
312
  msgstr ""
313
 
314
+ #: ../includes/classes/ure-lib.php:1744
315
  msgid "Error: Empty role display name is not allowed."
316
  msgstr ""
317
 
318
+ #: ../includes/classes/ure-lib.php:1751
319
  #, php-format
320
  msgid "Role %s does not exists"
321
  msgstr ""
322
 
323
+ #: ../includes/classes/ure-lib.php:1759
324
  #, php-format
325
  msgid "Role %s is renamed to %s successfully"
326
  msgstr ""
327
 
328
+ #: ../includes/classes/ure-lib.php:1832
329
  msgid "Error encountered during role delete operation"
330
  msgstr ""
331
 
332
+ #: ../includes/classes/ure-lib.php:1834
333
  msgid "Unused roles are deleted successfully"
334
  msgstr ""
335
 
336
+ #: ../includes/classes/ure-lib.php:1836
337
  #, php-format
338
  msgid "Role %s is deleted successfully"
339
  msgstr ""
340
 
341
+ #: ../includes/classes/ure-lib.php:1867
342
  msgid "Error encountered during default role change operation"
343
  msgstr ""
344
 
345
+ #: ../includes/classes/ure-lib.php:1870
346
  #, php-format
347
  msgid "Default role for new users is set to %s successfully"
348
  msgstr ""
349
 
350
+ #: ../includes/classes/ure-lib.php:1873
351
  msgid "Can not set Administrator role as a default one"
352
  msgstr ""
353
 
354
+ #: ../includes/classes/ure-lib.php:1875
355
  msgid "This role does not exist - "
356
  msgstr ""
357
 
358
+ #: ../includes/classes/ure-lib.php:1891
359
  msgid "Editor"
360
  msgstr ""
361
 
362
+ #: ../includes/classes/ure-lib.php:1892
363
  msgid "Author"
364
  msgstr ""
365
 
366
+ #: ../includes/classes/ure-lib.php:1893
367
  msgid "Contributor"
368
  msgstr ""
369
 
370
+ #: ../includes/classes/ure-lib.php:1894
371
  msgid "Subscriber"
372
  msgstr ""
373
 
374
+ #: ../includes/classes/ure-lib.php:1896
375
  msgid "Switch themes"
376
  msgstr ""
377
 
378
+ #: ../includes/classes/ure-lib.php:1897
379
  msgid "Edit themes"
380
  msgstr ""
381
 
382
+ #: ../includes/classes/ure-lib.php:1898
383
  msgid "Activate plugins"
384
  msgstr ""
385
 
386
+ #: ../includes/classes/ure-lib.php:1899
387
  msgid "Edit plugins"
388
  msgstr ""
389
 
390
+ #: ../includes/classes/ure-lib.php:1900
391
  msgid "Edit users"
392
  msgstr ""
393
 
394
+ #: ../includes/classes/ure-lib.php:1901
395
  msgid "Edit files"
396
  msgstr ""
397
 
398
+ #: ../includes/classes/ure-lib.php:1902
399
  msgid "Manage options"
400
  msgstr ""
401
 
402
+ #: ../includes/classes/ure-lib.php:1903
403
  msgid "Moderate comments"
404
  msgstr ""
405
 
406
+ #: ../includes/classes/ure-lib.php:1904
407
  msgid "Manage categories"
408
  msgstr ""
409
 
410
+ #: ../includes/classes/ure-lib.php:1905
411
  msgid "Manage links"
412
  msgstr ""
413
 
414
+ #: ../includes/classes/ure-lib.php:1906
415
  msgid "Upload files"
416
  msgstr ""
417
 
418
+ #: ../includes/classes/ure-lib.php:1907
419
  msgid "Import"
420
  msgstr ""
421
 
422
+ #: ../includes/classes/ure-lib.php:1908
423
  msgid "Unfiltered html"
424
  msgstr ""
425
 
426
+ #: ../includes/classes/ure-lib.php:1909
427
  msgid "Edit posts"
428
  msgstr ""
429
 
430
+ #: ../includes/classes/ure-lib.php:1910
431
  msgid "Edit others posts"
432
  msgstr ""
433
 
434
+ #: ../includes/classes/ure-lib.php:1911
435
  msgid "Edit published posts"
436
  msgstr ""
437
 
438
+ #: ../includes/classes/ure-lib.php:1912
439
  msgid "Publish posts"
440
  msgstr ""
441
 
442
+ #: ../includes/classes/ure-lib.php:1913
443
  msgid "Edit pages"
444
  msgstr ""
445
 
446
+ #: ../includes/classes/ure-lib.php:1914
447
  msgid "Read"
448
  msgstr ""
449
 
450
+ #: ../includes/classes/ure-lib.php:1915
451
  msgid "Level 10"
452
  msgstr ""
453
 
454
+ #: ../includes/classes/ure-lib.php:1916
455
  msgid "Level 9"
456
  msgstr ""
457
 
458
+ #: ../includes/classes/ure-lib.php:1917
459
  msgid "Level 8"
460
  msgstr ""
461
 
462
+ #: ../includes/classes/ure-lib.php:1918
463
  msgid "Level 7"
464
  msgstr ""
465
 
466
+ #: ../includes/classes/ure-lib.php:1919
467
  msgid "Level 6"
468
  msgstr ""
469
 
470
+ #: ../includes/classes/ure-lib.php:1920
471
  msgid "Level 5"
472
  msgstr ""
473
 
474
+ #: ../includes/classes/ure-lib.php:1921
475
  msgid "Level 4"
476
  msgstr ""
477
 
478
+ #: ../includes/classes/ure-lib.php:1922
479
  msgid "Level 3"
480
  msgstr ""
481
 
482
+ #: ../includes/classes/ure-lib.php:1923
483
  msgid "Level 2"
484
  msgstr ""
485
 
486
+ #: ../includes/classes/ure-lib.php:1924
487
  msgid "Level 1"
488
  msgstr ""
489
 
490
+ #: ../includes/classes/ure-lib.php:1925
491
  msgid "Level 0"
492
  msgstr ""
493
 
494
+ #: ../includes/classes/ure-lib.php:1926
495
  msgid "Edit others pages"
496
  msgstr ""
497
 
498
+ #: ../includes/classes/ure-lib.php:1927
499
  msgid "Edit published pages"
500
  msgstr ""
501
 
502
+ #: ../includes/classes/ure-lib.php:1928
503
  msgid "Publish pages"
504
  msgstr ""
505
 
506
+ #: ../includes/classes/ure-lib.php:1929
507
  msgid "Delete pages"
508
  msgstr ""
509
 
510
+ #: ../includes/classes/ure-lib.php:1930
511
  msgid "Delete others pages"
512
  msgstr ""
513
 
514
+ #: ../includes/classes/ure-lib.php:1931
515
  msgid "Delete published pages"
516
  msgstr ""
517
 
518
+ #: ../includes/classes/ure-lib.php:1932
519
  msgid "Delete posts"
520
  msgstr ""
521
 
522
+ #: ../includes/classes/ure-lib.php:1933
523
  msgid "Delete others posts"
524
  msgstr ""
525
 
526
+ #: ../includes/classes/ure-lib.php:1934
527
  msgid "Delete published posts"
528
  msgstr ""
529
 
530
+ #: ../includes/classes/ure-lib.php:1935
531
  msgid "Delete private posts"
532
  msgstr ""
533
 
534
+ #: ../includes/classes/ure-lib.php:1936
535
  msgid "Edit private posts"
536
  msgstr ""
537
 
538
+ #: ../includes/classes/ure-lib.php:1937
539
  msgid "Read private posts"
540
  msgstr ""
541
 
542
+ #: ../includes/classes/ure-lib.php:1938
543
  msgid "Delete private pages"
544
  msgstr ""
545
 
546
+ #: ../includes/classes/ure-lib.php:1939
547
  msgid "Edit private pages"
548
  msgstr ""
549
 
550
+ #: ../includes/classes/ure-lib.php:1940
551
  msgid "Read private pages"
552
  msgstr ""
553
 
554
+ #: ../includes/classes/ure-lib.php:1941
555
  msgid "Delete users"
556
  msgstr ""
557
 
558
+ #: ../includes/classes/ure-lib.php:1942
559
  msgid "Create users"
560
  msgstr ""
561
 
562
+ #: ../includes/classes/ure-lib.php:1943
563
  msgid "Unfiltered upload"
564
  msgstr ""
565
 
566
+ #: ../includes/classes/ure-lib.php:1944
567
  msgid "Edit dashboard"
568
  msgstr ""
569
 
570
+ #: ../includes/classes/ure-lib.php:1945
571
  msgid "Update plugins"
572
  msgstr ""
573
 
574
+ #: ../includes/classes/ure-lib.php:1946
575
  msgid "Delete plugins"
576
  msgstr ""
577
 
578
+ #: ../includes/classes/ure-lib.php:1947
579
  msgid "Install plugins"
580
  msgstr ""
581
 
582
+ #: ../includes/classes/ure-lib.php:1948
583
  msgid "Update themes"
584
  msgstr ""
585
 
586
+ #: ../includes/classes/ure-lib.php:1949
587
  msgid "Install themes"
588
  msgstr ""
589
 
590
+ #: ../includes/classes/ure-lib.php:1950
591
  msgid "Update core"
592
  msgstr ""
593
 
594
+ #: ../includes/classes/ure-lib.php:1951
595
  msgid "List users"
596
  msgstr ""
597
 
598
+ #: ../includes/classes/ure-lib.php:1952
599
  msgid "Remove users"
600
  msgstr ""
601
 
602
+ #: ../includes/classes/ure-lib.php:1953
603
  msgid "Add users"
604
  msgstr ""
605
 
606
+ #: ../includes/classes/ure-lib.php:1954
607
  msgid "Promote users"
608
  msgstr ""
609
 
610
+ #: ../includes/classes/ure-lib.php:1955
611
  msgid "Edit theme options"
612
  msgstr ""
613
 
614
+ #: ../includes/classes/ure-lib.php:1956
615
  msgid "Delete themes"
616
  msgstr ""
617
 
618
+ #: ../includes/classes/ure-lib.php:1957
619
  msgid "Export"
620
  msgstr ""
621
 
622
+ #: ../includes/classes/ure-lib.php:2111
623
  msgid "Error: Capability name must contain latin characters and digits only!"
624
  msgstr ""
625
 
626
+ #: ../includes/classes/ure-lib.php:2121
627
  #, php-format
628
  msgid "Capability %s is added successfully"
629
  msgstr ""
630
 
631
+ #: ../includes/classes/ure-lib.php:2123
632
  #, php-format
633
  msgid "Capability %s exists already"
634
  msgstr ""
635
 
636
+ #: ../includes/classes/ure-lib.php:2150
637
  #, php-format
638
  msgid "Error! You do not have permission to delete this capability: %s!"
639
  msgstr ""
640
 
641
+ #: ../includes/classes/ure-lib.php:2169
642
  #, php-format
643
  msgid "Capability %s was removed successfully"
644
  msgstr ""
645
 
646
+ #: ../includes/classes/ure-lib.php:2209
647
  msgid "Version:"
648
  msgstr ""
649
 
650
+ #: ../includes/classes/ure-lib.php:2210
651
  msgid "Author's website"
652
  msgstr ""
653
 
654
+ #: ../includes/classes/ure-lib.php:2211
655
  msgid "Plugin webpage"
656
  msgstr ""
657
 
658
+ #: ../includes/classes/ure-lib.php:2212
659
  msgid "Plugin download"
660
  msgstr ""
661
 
662
+ #: ../includes/classes/ure-lib.php:2213
663
  #: ../includes/classes/user-role-editor.php:459
664
  msgid "Changelog"
665
  msgstr ""
666
 
667
+ #: ../includes/classes/ure-lib.php:2214
668
  msgid "FAQ"
669
  msgstr ""
670
 
671
+ #: ../includes/classes/ure-lib.php:2359
672
  #, php-format
673
  msgid "Denied: %s"
674
  msgstr ""
675
 
676
+ #: ../includes/classes/user-other-roles.php:81
677
+ #: ../includes/classes/user-other-roles.php:182
678
+ msgid "Other Roles"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  msgstr ""
680
 
681
+ #: ../includes/classes/user-other-roles.php:82
682
+ msgid "Select additional roles for this user"
683
  msgstr ""
684
 
685
+ #: ../includes/classes/user-other-roles.php:161
686
+ #: ../includes/classes/user-role-editor.php:355
687
+ msgid "Capabilities"
688
  msgstr ""
689
 
690
+ #: ../includes/classes/user-other-roles.php:168
691
+ msgid "Edit"
692
  msgstr ""
693
 
694
+ #: ../includes/classes/user-other-roles.php:218
695
+ msgid "Additional Capabilities"
696
  msgstr ""
697
 
698
  #: ../includes/classes/user-role-editor.php:254
720
  msgid "Settings"
721
  msgstr ""
722
 
723
+ #: ../includes/classes/user-role-editor.php:488
724
+ #: ../includes/settings-template.php:26
725
+ msgid "Additional Modules"
726
+ msgstr ""
727
+
728
+ #: ../includes/classes/user-role-editor.php:494
729
+ #: ../includes/settings-template.php:30
730
+ msgid "Default Roles"
731
+ msgstr ""
732
+
733
  #: ../includes/classes/user-role-editor.php:604
734
  #: ../includes/classes/user-role-editor.php:622
735
  #: ../includes/classes/user-role-editor.php:667
746
  "Editor."
747
  msgstr ""
748
 
749
+ #: ../includes/classes/user-role-editor.php:788
750
  msgid "Confirm"
751
  msgstr ""
752
 
753
+ #: ../includes/classes/user-role-editor.php:789
754
  msgid "Yes"
755
  msgstr ""
756
 
757
+ #: ../includes/classes/user-role-editor.php:790
758
  msgid "No"
759
  msgstr ""
760
 
761
+ #: ../includes/classes/user-role-editor.php:791
762
  msgid "Select All"
763
  msgstr ""
764
 
765
+ #: ../includes/classes/user-role-editor.php:792
766
  msgid "Unselect All"
767
  msgstr ""
768
 
769
+ #: ../includes/classes/user-role-editor.php:793
770
  msgid "Reverse"
771
  msgstr ""
772
 
773
+ #: ../includes/classes/user-role-editor.php:794
774
  msgid "Update"
775
  msgstr ""
776
 
777
+ #: ../includes/classes/user-role-editor.php:795
778
  msgid "Please confirm permissions update"
779
  msgstr ""
780
 
781
+ #: ../includes/classes/user-role-editor.php:796
782
  msgid "Add New Role"
783
  msgstr ""
784
 
785
+ #: ../includes/classes/user-role-editor.php:797
786
+ #: ../includes/classes/user-role-editor.php:802
787
  msgid "Rename Role"
788
  msgstr ""
789
 
790
+ #: ../includes/classes/user-role-editor.php:798
791
  msgid " Role name (ID) can not be empty!"
792
  msgstr ""
793
 
794
+ #: ../includes/classes/user-role-editor.php:799
795
  msgid ""
796
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
797
  "only!"
798
  msgstr ""
799
 
800
+ #: ../includes/classes/user-role-editor.php:800
801
  msgid ""
802
  " WordPress does not support numeric Role name (ID). Add latin characters to "
803
  "it."
804
  msgstr ""
805
 
806
+ #: ../includes/classes/user-role-editor.php:801
807
  msgid "Add Role"
808
  msgstr ""
809
 
810
+ #: ../includes/classes/user-role-editor.php:803
811
  msgid "Delete Role"
812
  msgstr ""
813
 
814
+ #: ../includes/classes/user-role-editor.php:804
815
  msgid "Cancel"
816
  msgstr ""
817
 
818
+ #: ../includes/classes/user-role-editor.php:805
819
  msgid "Add Capability"
820
  msgstr ""
821
 
822
+ #: ../includes/classes/user-role-editor.php:806
823
+ #: ../includes/classes/user-role-editor.php:815
824
  msgid "Delete Capability"
825
  msgstr ""
826
 
827
+ #: ../includes/classes/user-role-editor.php:807
828
  msgid "Reset"
829
  msgstr ""
830
 
831
+ #: ../includes/classes/user-role-editor.php:808
832
  msgid "DANGER! Resetting will restore default settings from WordPress Core."
833
  msgstr ""
834
 
835
+ #: ../includes/classes/user-role-editor.php:809
836
  msgid ""
837
  "If any plugins have changed capabilities in any way upon installation (such "
838
  "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
839
  msgstr ""
840
 
841
+ #: ../includes/classes/user-role-editor.php:810
842
  msgid ""
843
  "For more information on how to undo changes and restore plugin capabilities "
844
  "go to"
845
  msgstr ""
846
 
847
+ #: ../includes/classes/user-role-editor.php:812
848
  msgid "Continue?"
849
  msgstr ""
850
 
851
+ #: ../includes/classes/user-role-editor.php:813
852
  msgid "Default Role"
853
  msgstr ""
854
 
855
+ #: ../includes/classes/user-role-editor.php:814
856
  msgid "Set New Default Role"
857
  msgstr ""
858
 
859
+ #: ../includes/classes/user-role-editor.php:816
860
  msgid ""
861
  "Warning! Be careful - removing critical capability could crash some plugin "
862
  "or other custom code"
863
  msgstr ""
864
 
865
+ #: ../includes/classes/user-role-editor.php:817
866
  msgid " Capability name (ID) can not be empty!"
867
  msgstr ""
868
 
869
+ #: ../includes/classes/user-role-editor.php:818
870
  msgid ""
871
  " Capability name (ID) must contain latin characters, digits, hyphens or "
872
  "underscore only!"
873
  msgstr ""
874
 
875
+ #: ../includes/classes/user-view.php:61
876
+ msgid "Switch&nbsp;To"
877
  msgstr ""
878
 
879
+ #: ../includes/classes/user-view.php:73
880
+ msgid "Network Super Admin"
881
+ msgstr ""
882
+
883
+ #: ../includes/classes/user-view.php:98
884
+ msgid "&mdash; No role for this site &mdash;"
885
  msgstr ""
886
 
887
+ #: ../includes/classes/user-view.php:137
888
+ msgid "Change capabilities for user"
889
+ msgstr ""
890
+
891
+ #: ../includes/classes/user-view.php:172
892
+ msgid "Primary Role:"
893
+ msgstr ""
894
+
895
+ #: ../includes/classes/user-view.php:178
896
+ msgid "bbPress Role:"
897
+ msgstr ""
898
+
899
+ #: ../includes/classes/user-view.php:187
900
+ msgid "Other Roles:"
901
+ msgstr ""
902
+
903
+ #: ../includes/classes/view.php:260
904
  msgid "Group"
905
  msgstr ""
906
 
907
+ #: ../includes/classes/view.php:260
908
+ msgid "Total"
909
  msgstr ""
910
 
911
+ #: ../includes/classes/view.php:260
912
+ msgid "Granted"
 
 
 
913
  msgstr ""
914
 
915
+ #: ../includes/classes/view.php:267
916
+ msgid "Quick filter:"
 
 
 
917
  msgstr ""
918
 
919
+ #: ../includes/classes/view.php:271
920
+ msgid "Columns:"
 
 
 
921
  msgstr ""
922
 
923
+ #: ../includes/settings-template.php:17
924
+ msgid "User Role Editor - Options"
 
 
 
 
925
  msgstr ""
926
 
927
+ #: ../includes/settings-template.php:39
928
+ msgid "About"
 
 
 
929
  msgstr ""
930
 
931
+ #: ../includes/settings-template.php:77
932
+ msgid "Confirm role update"
 
 
 
933
  msgstr ""
934
 
935
+ #: ../includes/settings-template.php:98 ../includes/settings-template.php:134
936
+ #: ../includes/settings-template.php:166 ../includes/settings-template.php:198
937
+ msgid "Save"
938
  msgstr ""
939
 
940
+ #: ../includes/settings-template.php:146
941
+ msgid "Primary default role: "
 
 
 
 
942
  msgstr ""
943
 
944
+ #: ../includes/settings-template.php:153
945
+ msgid "Other default roles for new registered user: "
946
  msgstr ""
947
 
948
+ #: ../includes/settings-template.php:159
949
  msgid ""
950
+ "Note for multisite environment: take into account that other default roles "
951
+ "should exist at the site, in order to be assigned to the new registered "
952
+ "users."
953
+ msgstr ""
954
+
955
+ #: ../includes/settings-template.php:185
956
+ msgid "Allow non super administrators to create, edit, and delete users"
957
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladi
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
- Stable tag: 4.26.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -78,6 +78,15 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
78
 
79
  == Changelog ==
80
 
 
 
 
 
 
 
 
 
 
81
  = [4.26.3] 25.07.2016 =
82
  * Fix: Selecting a sub-group/list of caps does make the ure_select_all_caps checkbox select all within that group, but checking that box when at the "All" top-level group did not work.
83
  * Fix: Notice: Undefined property: URE_Role_View::$apply_to_all
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
+ Stable tag: 4.27
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
78
 
79
  == Changelog ==
80
 
81
+ = [4.27] 18.08.2016 =
82
+ * New: Total/Granted counters were added to the capabilities groups titles.
83
+ * New: "Columns" drop-down menu allows to change capabilities section layout to 1, 2 or 3 columns.
84
+ * New: Capabilities section is limited in height and has independent scrollbar.
85
+ * Update: User Role Editor page markup was updated to use more available space on page.
86
+ * Update: URE_Ajax_Processor class allows to differentiate required user permissions according to action submitted by user.
87
+ * Fix: CSS updated to exclude text overlapping at capabilities groups section when custom post type name is not fitted into 1 line.
88
+ * Fix: required JavaScript files were not loaded at "Network Admin->Settings->User Role Editor" page.
89
+
90
  = [4.26.3] 25.07.2016 =
91
  * Fix: Selecting a sub-group/list of caps does make the ure_select_all_caps checkbox select all within that group, but checking that box when at the "All" top-level group did not work.
92
  * Fix: Notice: Undefined property: URE_Role_View::$apply_to_all
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
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.26.3
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.26.3');
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.27
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
+ define('URE_VERSION', '4.27');
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__));