User Role Editor - Version 4.58

Version Description

Download this release

Release Info

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

Code changes from version 4.57.1 to 4.58

includes/classes/advertisement.php CHANGED
@@ -28,7 +28,7 @@ class URE_Advertisement {
28
  *
29
  * @return int
30
  */
31
- private function rand_unique( $used = array(-1), $max_ind ) {
32
  if ( $max_ind<0 ) {
33
  $max_ind = 0;
34
  }
@@ -49,7 +49,7 @@ class URE_Advertisement {
49
  $this->slots = array();
50
  $used = array(-1);
51
  $max_ind = $this->slots_quantity - 1;
52
- $index = $this->rand_unique( $used, $max_ind );
53
  $this->slots[$index] = $this->admin_menu_editor();
54
  /*
55
  $used[] = $index;
28
  *
29
  * @return int
30
  */
31
+ private function rand_unique( $max_ind, $used = array(-1) ) {
32
  if ( $max_ind<0 ) {
33
  $max_ind = 0;
34
  }
49
  $this->slots = array();
50
  $used = array(-1);
51
  $max_ind = $this->slots_quantity - 1;
52
+ $index = $this->rand_unique( $max_ind, $used );
53
  $this->slots[$index] = $this->admin_menu_editor();
54
  /*
55
  $used[] = $index;
includes/classes/ajax-processor.php CHANGED
@@ -96,6 +96,23 @@ class URE_Ajax_Processor {
96
  // end of add_role()
97
 
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  protected function add_capability() {
100
 
101
  $notification = URE_Capability::add( 'role' );
@@ -105,8 +122,11 @@ class URE_Ajax_Processor {
105
  if (empty( $message ) ) {
106
  $view = new URE_View();
107
  $html = $view->_show_capabilities( true, true );
 
108
  } else {
109
  $html = '';
 
 
110
  }
111
 
112
  $answer = array('result'=>'success', 'html'=>$html, 'message'=>$notification);
@@ -281,6 +301,9 @@ class URE_Ajax_Processor {
281
  protected function _dispatch() {
282
 
283
  switch ($this->action) {
 
 
 
284
  case 'add_role':
285
  $answer = $this->add_role();
286
  break;
96
  // end of add_role()
97
 
98
 
99
+ protected function update_role() {
100
+
101
+ $editor = URE_Editor::get_instance();
102
+ $response = $editor->update_role();
103
+
104
+ $answer = array(
105
+ 'result'=>$response['result'],
106
+ 'role_id'=>$response['role_id'],
107
+ 'role_name'=>$response['role_name'],
108
+ 'message'=>$response['message']
109
+ );
110
+
111
+ return $answer;
112
+ }
113
+ // end of add_role()
114
+
115
+
116
  protected function add_capability() {
117
 
118
  $notification = URE_Capability::add( 'role' );
122
  if (empty( $message ) ) {
123
  $view = new URE_View();
124
  $html = $view->_show_capabilities( true, true );
125
+ $result = 'success';
126
  } else {
127
  $html = '';
128
+ $result = 'error';
129
+ $notification = $message;
130
  }
131
 
132
  $answer = array('result'=>'success', 'html'=>$html, 'message'=>$notification);
301
  protected function _dispatch() {
302
 
303
  switch ($this->action) {
304
+ case 'update_role':
305
+ $answer = $this->update_role();
306
+ break;
307
  case 'add_role':
308
  $answer = $this->add_role();
309
  break;
includes/classes/editor.php CHANGED
@@ -75,24 +75,29 @@ class URE_Editor {
75
 
76
 
77
 
78
- // validate information about user we intend to edit
79
  protected function check_user_to_edit() {
80
 
81
- if ( $this->ure_object ==='user' ) {
82
- if ( !isset($_REQUEST['user_id'] ) ) {
83
- return false; // user_id value is missed
84
- }
85
- $user_id = filter_var( $_REQUEST['user_id'], FILTER_VALIDATE_INT );
86
- if ( empty( $user_id ) ) {
87
- return false;
88
- }
89
- $this->user_to_edit = get_user_to_edit( $user_id );
90
- if ( empty( $this->user_to_edit ) ) {
91
- return false;
92
- }
93
-
94
  }
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  return true;
97
  }
98
  // end of check_user_to_edit()
@@ -114,8 +119,36 @@ class URE_Editor {
114
  }
115
  // end of get_caps_columns_quant()
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
 
 
 
 
 
118
  protected function init0() {
 
 
 
 
 
119
  $this->caps_readable = get_site_transient( 'ure_caps_readable' );
120
  if ( false === $this->caps_readable ) {
121
  $this->caps_readable = $this->lib->get_option( 'ure_caps_readable' );
@@ -128,20 +161,9 @@ class URE_Editor {
128
  }
129
 
130
  $this->hide_pro_banner = $this->lib->get_option( 'ure_hide_pro_banner', 0 );
131
- $this->wp_default_role = get_option( 'default_role' );
132
-
133
- // could be sent as via POST, as via GET
134
- if ( isset( $_REQUEST['object'] ) ) {
135
- $this->ure_object = $_REQUEST['object'];
136
- if ( !$this->check_user_to_edit() ) {
137
- return false;
138
- }
139
- } else {
140
- $this->ure_object = 'role';
141
- }
142
-
143
- $this->apply_to_all = $this->lib->get_request_var('ure_apply_to_all', 'post', 'checkbox');
144
  $this->caps_columns_quant = $this->get_caps_columns_quant();
 
145
 
146
  return true;
147
  }
@@ -184,17 +206,34 @@ class URE_Editor {
184
  // end of set_show_deprecated_caps()
185
 
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  public function init_current_role_name() {
188
 
 
189
  $this->current_role = '';
190
  $this->current_role_name = '';
191
- if ( !isset( $_POST['user_role'] ) ) {
192
  $mess = esc_html__('Error: ', 'user-role-editor') . esc_html__('Wrong request!', 'user-role-editor');
193
- } else if ( !isset($this->roles[$_POST['user_role']]) ) {
194
- $mess = esc_html__('Error: ', 'user-role-editor') . esc_html__('Role', 'user-role-editor') . ' <em>' . esc_html($_POST['user_role']) . '</em> ' .
195
- esc_html__('does not exist', 'user-role-editor');
196
  } else {
197
- $this->current_role = $_POST['user_role'];
198
  $this->current_role_name = $this->roles[$this->current_role]['name'];
199
  $mess = '';
200
  }
@@ -235,7 +274,7 @@ class URE_Editor {
235
 
236
  foreach ( $this->full_capabilities as $cap ) {
237
  $cap_id_esc = URE_Capability::escape( $cap['inner'] );
238
- if ( isset( $_POST[$cap_id_esc] ) ) {
239
  $this->capabilities_to_save[ $cap['inner'] ] = true;
240
  }
241
  }
@@ -676,7 +715,8 @@ class URE_Editor {
676
 
677
  if ( !empty( $mess ) ) {
678
  $mess .= '<br/>';
679
- }
 
680
  if ( $this->ure_object === 'role' ) { // save role changes to database
681
  if ($this->update_roles()) {
682
  if (!$this->apply_to_all) {
@@ -700,20 +740,6 @@ class URE_Editor {
700
  // end of permissions_object_update()
701
 
702
 
703
- protected function update() {
704
-
705
- $this->roles = $this->lib->get_user_roles();
706
- $this->full_capabilities = $this->lib->init_full_capabilities( $this->ure_object );
707
- if ( isset( $_POST['user_role'] ) ) {
708
- $this->notification = $this->init_current_role_name();
709
- }
710
- $this->prepare_capabilities_to_save();
711
- $this->notification = $this->permissions_object_update( $this->notification );
712
-
713
- }
714
- // end of update()
715
-
716
-
717
  /**
718
  * Return WordPress user roles to its initial state, just like after installation
719
  * @global WP_Roles $wp_roles
@@ -804,7 +830,7 @@ class URE_Editor {
804
  /**
805
  * Process new role creation request
806
  *
807
- * @return string - message about operation result
808
  *
809
  */
810
  public function add_new_role() {
@@ -857,7 +883,44 @@ class URE_Editor {
857
  }
858
  // end of add_new_role()
859
 
860
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
861
  /**
862
  * process rename role request
863
  *
75
 
76
 
77
 
78
+ // Validate information about user we intend to edit
79
  protected function check_user_to_edit() {
80
 
81
+ if ( $this->ure_object !=='user' ) {
82
+ return true;
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
 
85
+ if ( isset( $_REQUEST['user_id'] ) ) {
86
+ $user_id = filter_var( $_REQUEST['user_id'], FILTER_VALIDATE_INT );
87
+ } elseif ( isset( $_POST['values']['user_id'] ) ) {
88
+ $user_id = filter_var( $_POST['values']['user_id'], FILTER_VALIDATE_INT );
89
+ } else {
90
+ return false; // user_id value is missed
91
+ }
92
+ if ( empty( $user_id ) ) {
93
+ return false;
94
+ }
95
+
96
+ $this->user_to_edit = get_user_to_edit( $user_id );
97
+ if ( empty( $this->user_to_edit ) ) {
98
+ return false;
99
+ }
100
+
101
  return true;
102
  }
103
  // end of check_user_to_edit()
119
  }
120
  // end of get_caps_columns_quant()
121
 
122
+
123
+ protected function _init0() {
124
+ // could be sent as via POST, as via GET
125
+ if ( isset( $_REQUEST['object'] ) ) {
126
+ $this->ure_object = $_REQUEST['object'];
127
+ } elseif ( isset( $_POST['values']['object'] ) ) { // AJAX POST
128
+ $this->ure_object = $_POST['values']['object'];
129
+ } else {
130
+ $this->ure_object = 'role';
131
+ }
132
+
133
+ if ( $this->ure_object=='user') {
134
+ if ( !$this->check_user_to_edit() ) {
135
+ return false;
136
+ }
137
+ }
138
+
139
+ $this->apply_to_all = isset( $_POST['values']['ure_apply_to_all']) ? true : false;
140
 
141
+ return true;
142
+ }
143
+ // end of _init0()
144
+
145
+
146
  protected function init0() {
147
+
148
+ if ( !$this->_init0() ) {
149
+ return false;
150
+ }
151
+
152
  $this->caps_readable = get_site_transient( 'ure_caps_readable' );
153
  if ( false === $this->caps_readable ) {
154
  $this->caps_readable = $this->lib->get_option( 'ure_caps_readable' );
161
  }
162
 
163
  $this->hide_pro_banner = $this->lib->get_option( 'ure_hide_pro_banner', 0 );
164
+ $this->wp_default_role = get_option( 'default_role' );
 
 
 
 
 
 
 
 
 
 
 
 
165
  $this->caps_columns_quant = $this->get_caps_columns_quant();
166
+
167
 
168
  return true;
169
  }
206
  // end of set_show_deprecated_caps()
207
 
208
 
209
+ private function get_role_id() {
210
+
211
+ if ( isset( $_POST['values']['user_role'] ) ) {
212
+ $role_id = $_POST['values']['user_role'];
213
+ } elseif ( isset( $_POST['user_role'] ) ) {
214
+ $role_id = $_POST['user_role'];
215
+ } else {
216
+ $role_id = false;
217
+ }
218
+
219
+ return $role_id;
220
+
221
+ }
222
+ // end of get_role_id()
223
+
224
+
225
  public function init_current_role_name() {
226
 
227
+ $role_id = $this->get_role_id();
228
  $this->current_role = '';
229
  $this->current_role_name = '';
230
+ if ( empty( $role_id ) ) {
231
  $mess = esc_html__('Error: ', 'user-role-editor') . esc_html__('Wrong request!', 'user-role-editor');
232
+ } else if ( !isset( $this->roles[$role_id] ) ) {
233
+ $mess = esc_html__('Error: ', 'user-role-editor') . esc_html__('Role', 'user-role-editor') . ' <em>' . esc_html( $role_id ) . '</em> ' .
234
+ esc_html__('does not exist', 'user-role-editor');
235
  } else {
236
+ $this->current_role = $role_id;
237
  $this->current_role_name = $this->roles[$this->current_role]['name'];
238
  $mess = '';
239
  }
274
 
275
  foreach ( $this->full_capabilities as $cap ) {
276
  $cap_id_esc = URE_Capability::escape( $cap['inner'] );
277
+ if ( isset( $_POST['values'][$cap_id_esc] ) ) {
278
  $this->capabilities_to_save[ $cap['inner'] ] = true;
279
  }
280
  }
715
 
716
  if ( !empty( $mess ) ) {
717
  $mess .= '<br/>';
718
+ }
719
+
720
  if ( $this->ure_object === 'role' ) { // save role changes to database
721
  if ($this->update_roles()) {
722
  if (!$this->apply_to_all) {
740
  // end of permissions_object_update()
741
 
742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
743
  /**
744
  * Return WordPress user roles to its initial state, just like after installation
745
  * @global WP_Roles $wp_roles
830
  /**
831
  * Process new role creation request
832
  *
833
+ * @return array - operation result data
834
  *
835
  */
836
  public function add_new_role() {
883
  }
884
  // end of add_new_role()
885
 
886
+
887
+ public function update_role() {
888
+
889
+ $response = array('result'=>'error', 'role_id'=>'', 'role_name'=>'', 'message'=>'');
890
+ if ( !current_user_can( 'ure_edit_roles' ) ) {
891
+ $response['message'] = esc_html__( 'Insufficient permissions to work with User Role Editor','user-role-editor' );
892
+ return $response;
893
+ }
894
+
895
+ $this->_init0();
896
+ if ( $this->ure_object==='role') {
897
+ $result = $this->get_role_id_from_post();
898
+ if ( !empty( $result['message'] ) ) {
899
+ $response['message'] = $result['message'];
900
+ return $response;
901
+ }
902
+ }
903
+
904
+ $this->roles = $this->lib->get_user_roles();
905
+ $this->full_capabilities = $this->lib->init_full_capabilities( $this->ure_object );
906
+ if ( isset( $_POST['values']['user_role'] ) ) {
907
+ $this->notification = $this->init_current_role_name();
908
+ }
909
+ $this->prepare_capabilities_to_save();
910
+ $this->notification = $this->permissions_object_update( $this->notification );
911
+
912
+ $response['result'] = 'success';
913
+ if ( $this->ure_object==='role') {
914
+ $response['role_id'] = $result['role_id'];
915
+ $response['role_name'] = $this->current_role_name;
916
+ }
917
+ $response['message'] = $this->notification;
918
+
919
+ return $response;
920
+ }
921
+ // end of update_role()
922
+
923
+
924
  /**
925
  * process rename role request
926
  *
includes/classes/user-other-roles.php CHANGED
@@ -38,7 +38,7 @@ class URE_User_Other_Roles {
38
  add_action( 'wpmu_activate_user', array($this, 'add_other_roles'), 10, 1 );
39
  add_action( 'added_existing_user', array($this, 'add_other_roles'), 10, 1);
40
  }
41
- add_action( 'user_register', array($this, 'add_other_roles'), 10, 1 );
42
 
43
  }
44
  // end of set_hooks()
@@ -341,14 +341,11 @@ class URE_User_Other_Roles {
341
  // end of update()
342
 
343
 
344
- private function add_default_other_roles($user_id) {
345
- if ( !current_user_can('edit_users') ) {
346
- return false;
347
- }
348
- if ( !current_user_can('edit_user', $user_id) ) {
349
  return false;
350
  }
351
-
352
  $user = get_user_by('id', $user_id );
353
  if ( empty( $user->ID ) ) {
354
  return true;
38
  add_action( 'wpmu_activate_user', array($this, 'add_other_roles'), 10, 1 );
39
  add_action( 'added_existing_user', array($this, 'add_other_roles'), 10, 1);
40
  }
41
+ add_action( 'user_register', array($this, 'add_default_other_roles'), 10, 1 );
42
 
43
  }
44
  // end of set_hooks()
341
  // end of update()
342
 
343
 
344
+ public function add_default_other_roles( $user_id ) {
345
+
346
+ if ( empty( $user_id ) ) {
 
 
347
  return false;
348
  }
 
349
  $user = get_user_by('id', $user_id );
350
  if ( empty( $user->ID ) ) {
351
  return true;
js/ure.js CHANGED
@@ -25,49 +25,49 @@ jQuery(function() {
25
 
26
  jQuery( '#ure_add_role' ).button({
27
  label: ure_data.add_role
28
- }).click(function ( event ) {
29
  event.preventDefault();
30
  ure_main.show_add_role_dialog();
31
- });
32
 
33
  jQuery( '#ure_add_capability' ).button({
34
  label: ure_data.add_capability
35
- }).click( function ( event ) {
36
  event.preventDefault();
37
  ure_main.show_add_capability_dialog();
38
- });
39
 
40
  var del_cap = jQuery( '#ure_delete_capability' );
41
  if ( del_cap.length > 0 ) {
42
  del_cap.button({
43
  label: ure_data.delete_capability
44
- }).click(function ( event ) {
45
  event.preventDefault();
46
  jQuery.ajax( ure_main.get_caps_to_remove );
47
- });
48
  }
49
 
50
  var del_role = jQuery( '#ure_delete_role' );
51
  if ( del_role.length>0 ) {
52
  del_role.button({
53
  label: ure_data.delete_role
54
- }).click(function ( event ) {
55
  event.preventDefault();
56
  ure_main.show_delete_role_dialog();
57
- });
58
  }
59
 
60
  jQuery('#ure_rename_role').button({
61
  label: ure_data.rename_role
62
- }).click(function (event) {
63
  event.preventDefault();
64
  ure_main.show_rename_role_dialog();
65
- });
66
 
67
 
68
 
69
  if ( jQuery('#ure_select_all_caps').length>0 ) {
70
- jQuery('#ure_select_all_caps').click( ure_main.auto_select_caps );
71
  }
72
 
73
  ure_main.count_caps_in_groups();
@@ -80,7 +80,7 @@ jQuery(function() {
80
  }
81
  });
82
  ure_main.select_selectable_element( jQuery('#ure_caps_groups_list'), jQuery('#ure_caps_group_all') );
83
- jQuery('#granted_only').click( ure_main.show_granted_caps_only );
84
 
85
  });
86
 
@@ -192,9 +192,9 @@ var ure_main = {
192
  var selected_index = parseInt( jQuery('#caps_columns_quant').val() );
193
  var columns = ure_main.validate_columns( selected_index );
194
  var el = jQuery('#ure_caps_list');
195
- el.css('-moz-column-count', columns);
196
- el.css('-webkit-column-count', columns);
197
- el.css('column-count', columns);
198
 
199
  },
200
 
@@ -687,7 +687,7 @@ var ure_main = {
687
  jQuery('#dialog-delete-capability-button').html(this.ui_button_text(ure_data.delete_capability));
688
  jQuery('.ui-dialog-buttonpane button:contains("CancelDeleteCapability")').attr('id', 'delete-capability-dialog-cancel-button');
689
  jQuery('#delete-capability-dialog-cancel-button').html(this.ui_button_text(ure_data.cancel));
690
- jQuery('#ure_remove_caps_select_all').click(this.remove_caps_auto_select);
691
  },
692
 
693
 
@@ -958,6 +958,43 @@ var ure_main = {
958
  event.target.checked = true;
959
  }
960
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
961
  }
962
 
963
 
@@ -976,19 +1013,22 @@ jQuery(function ($) {
976
 
977
  $('#ure_update_role').button({
978
  label: ure_data.update
979
- }).click(function () {
980
  if (ure_data.confirm_role_update == 1) {
981
  event.preventDefault();
982
- ure_confirm(ure_data.confirm_submit, ure_form_submit);
 
983
  }
984
- });
985
-
986
 
 
987
  function ure_form_submit() {
988
  $('#ure_form').submit();
989
  }
 
990
 
991
 
 
992
  function ure_show_default_role_dialog() {
993
  $('#ure_default_role_dialog').dialog({
994
  dialogClass: 'wp-dialog',
@@ -1022,10 +1062,10 @@ jQuery(function ($) {
1022
  if ($('#ure_default_role').length > 0) {
1023
  $('#ure_default_role').button({
1024
  label: ure_data.default_role
1025
- }).click(function (event) {
1026
  event.preventDefault();
1027
  ure_show_default_role_dialog();
1028
- });
1029
  }
1030
 
1031
 
@@ -1091,6 +1131,6 @@ function ure_turn_deprecated_caps(user_id) {
1091
  // ure_turn_deprecated_caps()
1092
 
1093
 
1094
- jQuery(window).resize(function () {
1095
  ure_main.sizes_update();
1096
- });
25
 
26
  jQuery( '#ure_add_role' ).button({
27
  label: ure_data.add_role
28
+ }).on('click', (function ( event ) {
29
  event.preventDefault();
30
  ure_main.show_add_role_dialog();
31
+ }));
32
 
33
  jQuery( '#ure_add_capability' ).button({
34
  label: ure_data.add_capability
35
+ }).on('click', ( function ( event ) {
36
  event.preventDefault();
37
  ure_main.show_add_capability_dialog();
38
+ }));
39
 
40
  var del_cap = jQuery( '#ure_delete_capability' );
41
  if ( del_cap.length > 0 ) {
42
  del_cap.button({
43
  label: ure_data.delete_capability
44
+ }).on('click', (function ( event ) {
45
  event.preventDefault();
46
  jQuery.ajax( ure_main.get_caps_to_remove );
47
+ }));
48
  }
49
 
50
  var del_role = jQuery( '#ure_delete_role' );
51
  if ( del_role.length>0 ) {
52
  del_role.button({
53
  label: ure_data.delete_role
54
+ }).on('click', (function ( event ) {
55
  event.preventDefault();
56
  ure_main.show_delete_role_dialog();
57
+ }));
58
  }
59
 
60
  jQuery('#ure_rename_role').button({
61
  label: ure_data.rename_role
62
+ }).on('click', (function (event) {
63
  event.preventDefault();
64
  ure_main.show_rename_role_dialog();
65
+ }));
66
 
67
 
68
 
69
  if ( jQuery('#ure_select_all_caps').length>0 ) {
70
+ jQuery('#ure_select_all_caps').on('click', ( ure_main.auto_select_caps ) );
71
  }
72
 
73
  ure_main.count_caps_in_groups();
80
  }
81
  });
82
  ure_main.select_selectable_element( jQuery('#ure_caps_groups_list'), jQuery('#ure_caps_group_all') );
83
+ jQuery('#granted_only').on('click', ( ure_main.show_granted_caps_only ) );
84
 
85
  });
86
 
192
  var selected_index = parseInt( jQuery('#caps_columns_quant').val() );
193
  var columns = ure_main.validate_columns( selected_index );
194
  var el = jQuery('#ure_caps_list');
195
+ el.css('-moz-column-count', String( columns ) );
196
+ el.css('-webkit-column-count', String( columns ) );
197
+ el.css('column-count', String( columns ) );
198
 
199
  },
200
 
687
  jQuery('#dialog-delete-capability-button').html(this.ui_button_text(ure_data.delete_capability));
688
  jQuery('.ui-dialog-buttonpane button:contains("CancelDeleteCapability")').attr('id', 'delete-capability-dialog-cancel-button');
689
  jQuery('#delete-capability-dialog-cancel-button').html(this.ui_button_text(ure_data.cancel));
690
+ jQuery('#ure_remove_caps_select_all').on('click', (this.remove_caps_auto_select) );
691
  },
692
 
693
 
958
  event.target.checked = true;
959
  }
960
 
961
+ },
962
+
963
+ update_role: function() {
964
+
965
+ var values = {};
966
+ jQuery.each( jQuery('#ure_form').serializeArray(), function( i, field ) {
967
+ values[field.name] = field.value;
968
+ });
969
+ jQuery('#ure_task_status').show();
970
+ jQuery.ajax( {
971
+ url: ajaxurl,
972
+ type: 'POST',
973
+ dataType: 'json',
974
+ async: true,
975
+ data: {
976
+ action: 'ure_ajax',
977
+ sub_action: 'update_role',
978
+ values: values,
979
+ user_role_id: values['user_role'],
980
+ network_admin: ure_data.network_admin,
981
+ wp_nonce: ure_data.wp_nonce
982
+ },
983
+ success: ure_main.update_role_success,
984
+ error: ure_main.ajax_error
985
+ } );
986
+
987
+ },
988
+
989
+ update_role_success: function( data ) {
990
+
991
+ jQuery('#ure_task_status').hide();
992
+ if ( data.result=='success' ) {
993
+ ure_main.count_caps_in_groups();
994
+ ure_main.show_notice( data.message, 'success' );
995
+ } else {
996
+ ure_main.show_notice( data.message, 'error' );
997
+ }
998
  }
999
 
1000
 
1013
 
1014
  $('#ure_update_role').button({
1015
  label: ure_data.update
1016
+ }).on('click', (function () {
1017
  if (ure_data.confirm_role_update == 1) {
1018
  event.preventDefault();
1019
+ //ure_confirm(ure_data.confirm_submit, ure_form_submit);
1020
+ ure_confirm( ure_data.confirm_submit, ure_main.update_role );
1021
  }
1022
+ }));
 
1023
 
1024
+ /*
1025
  function ure_form_submit() {
1026
  $('#ure_form').submit();
1027
  }
1028
+ */
1029
 
1030
 
1031
+
1032
  function ure_show_default_role_dialog() {
1033
  $('#ure_default_role_dialog').dialog({
1034
  dialogClass: 'wp-dialog',
1062
  if ($('#ure_default_role').length > 0) {
1063
  $('#ure_default_role').button({
1064
  label: ure_data.default_role
1065
+ }).on('click', (function (event) {
1066
  event.preventDefault();
1067
  ure_show_default_role_dialog();
1068
+ }));
1069
  }
1070
 
1071
 
1131
  // ure_turn_deprecated_caps()
1132
 
1133
 
1134
+ jQuery(window).on('resize', (function () {
1135
  ure_main.sizes_update();
1136
+ }));
lang/user-role-editor.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.51\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2020-03-20 14:42+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,7 +14,7 @@ msgstr ""
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 2.0.6\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  #: ../includes/classes/capabilities-groups-manager.php:44
@@ -22,9 +22,9 @@ msgid "Custom Post Types"
22
  msgstr ""
23
 
24
  #: ../includes/classes/capabilities-groups-manager.php:75
25
- #: ../includes/classes/editor.php:1226
26
- #: ../includes/classes/user-role-editor.php:566
27
- #: ../includes/classes/user-role-editor.php:597
28
  msgid "User Role Editor"
29
  msgstr ""
30
 
@@ -42,7 +42,7 @@ msgid "All"
42
  msgstr ""
43
 
44
  #: ../includes/classes/capabilities-groups-manager.php:112
45
- #: ../includes/classes/user-role-editor.php:538
46
  #: ../includes/settings-template.php:20
47
  msgid "General"
48
  msgstr ""
@@ -68,7 +68,7 @@ msgid "Users"
68
  msgstr ""
69
 
70
  #: ../includes/classes/capabilities-groups-manager.php:121
71
- #: ../includes/classes/user-role-editor.php:556
72
  #: ../includes/settings-template.php:36
73
  msgid "Multisite"
74
  msgstr ""
@@ -94,10 +94,10 @@ msgid "Error: this word is used by WordPress as a role ID"
94
  msgstr ""
95
 
96
  #: ../includes/classes/capability.php:79 ../includes/classes/capability.php:190
97
- #: ../includes/classes/editor.php:742 ../includes/classes/editor.php:811
98
- #: ../includes/classes/editor.php:871 ../includes/classes/editor.php:1017
99
- #: ../includes/classes/editor.php:1059
100
- #: ../includes/classes/user-role-editor.php:650
101
  msgid "Insufficient permissions to work with User Role Editor"
102
  msgstr ""
103
 
@@ -129,406 +129,406 @@ msgstr ""
129
  msgid "capabilities were removed successfully"
130
  msgstr ""
131
 
132
- #: ../includes/classes/editor.php:192 ../includes/classes/editor.php:194
133
  msgid "Error: "
134
  msgstr ""
135
 
136
- #: ../includes/classes/editor.php:192
137
  msgid "Wrong request!"
138
  msgstr ""
139
 
140
- #: ../includes/classes/editor.php:194
141
  msgid "Role"
142
  msgstr ""
143
 
144
- #: ../includes/classes/editor.php:195
145
  msgid "does not exist"
146
  msgstr ""
147
 
148
- #: ../includes/classes/editor.php:680
149
  msgid "Role is updated successfully"
150
  msgstr ""
151
 
152
- #: ../includes/classes/editor.php:682
153
  msgid "Roles are updated for all network"
154
  msgstr ""
155
 
156
- #: ../includes/classes/editor.php:685
157
  msgid "Error occurred during role(s) update"
158
  msgstr ""
159
 
160
- #: ../includes/classes/editor.php:689
161
  msgid "User capabilities are updated successfully"
162
  msgstr ""
163
 
164
- #: ../includes/classes/editor.php:691
165
  msgid "Error occurred during user update"
166
  msgstr ""
167
 
168
- #: ../includes/classes/editor.php:775
169
  msgid "Error: Role ID is empty!"
170
  msgstr ""
171
 
172
- #: ../includes/classes/editor.php:784
173
  msgid ""
174
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
175
  "only!"
176
  msgstr ""
177
 
178
- #: ../includes/classes/editor.php:790
179
  msgid ""
180
  "Error: WordPress does not support numeric Role name (ID). Add latin "
181
  "characters to it."
182
  msgstr ""
183
 
184
- #: ../includes/classes/editor.php:824
185
  #, php-format
186
  msgid "Role %s exists already"
187
  msgstr ""
188
 
189
- #: ../includes/classes/editor.php:843
190
  msgid "Error is encountered during new role create operation"
191
  msgstr ""
192
 
193
- #: ../includes/classes/editor.php:850
194
  #, php-format
195
  msgid "Role %s is created successfully"
196
  msgstr ""
197
 
198
- #: ../includes/classes/editor.php:883
199
  msgid "Error: Empty role display name is not allowed."
200
  msgstr ""
201
 
202
- #: ../includes/classes/editor.php:890
203
  #, php-format
204
  msgid "Role %s does not exists"
205
  msgstr ""
206
 
207
- #: ../includes/classes/editor.php:903
208
  #, php-format
209
  msgid "Role %s is renamed to %s successfully"
210
  msgstr ""
211
 
212
- #: ../includes/classes/editor.php:968
213
  msgid "Role does not exist"
214
  msgstr ""
215
 
216
- #: ../includes/classes/editor.php:972
217
  msgid "You can not delete role"
218
  msgstr ""
219
 
220
- #: ../includes/classes/editor.php:998
221
  msgid "There are no roles for deletion"
222
  msgstr ""
223
 
224
- #: ../includes/classes/editor.php:1026
225
  msgid "Wrong role ID"
226
  msgstr ""
227
 
228
- #: ../includes/classes/editor.php:1035
229
  msgid "Unused roles are deleted successfully"
230
  msgstr ""
231
 
232
- #: ../includes/classes/editor.php:1037
233
  #, php-format
234
  msgid "Role %s is deleted successfully"
235
  msgstr ""
236
 
237
- #: ../includes/classes/editor.php:1065
238
  msgid ""
239
  "This method is only for a single site of WordPress multisite installation."
240
  msgstr ""
241
 
242
- #: ../includes/classes/editor.php:1069
243
  msgid "Wrong request. Default role can not be empty"
244
  msgstr ""
245
 
246
- #: ../includes/classes/editor.php:1081
247
  #, php-format
248
  msgid "Default role for new users is set to %s successfully"
249
  msgstr ""
250
 
251
- #: ../includes/classes/editor.php:1083
252
  msgid "Error encountered during default role change operation"
253
  msgstr ""
254
 
255
- #: ../includes/classes/editor.php:1086
256
  msgid "Can not set Administrator role as a default one"
257
  msgstr ""
258
 
259
- #: ../includes/classes/editor.php:1088
260
  msgid "This role does not exist - "
261
  msgstr ""
262
 
263
- #: ../includes/classes/editor.php:1133
264
  msgid "User Roles are restored to WordPress default values. "
265
  msgstr ""
266
 
267
- #: ../includes/classes/editor.php:1265
268
  msgid "Error: wrong request"
269
  msgstr ""
270
 
271
- #: ../includes/classes/editor.php:1294
272
  msgid "Editor"
273
  msgstr ""
274
 
275
- #: ../includes/classes/editor.php:1295
276
  msgid "Author"
277
  msgstr ""
278
 
279
- #: ../includes/classes/editor.php:1296
280
  msgid "Contributor"
281
  msgstr ""
282
 
283
- #: ../includes/classes/editor.php:1297
284
  msgid "Subscriber"
285
  msgstr ""
286
 
287
- #: ../includes/classes/editor.php:1299
288
  msgid "Switch themes"
289
  msgstr ""
290
 
291
- #: ../includes/classes/editor.php:1300
292
  msgid "Edit themes"
293
  msgstr ""
294
 
295
- #: ../includes/classes/editor.php:1301
296
  msgid "Activate plugins"
297
  msgstr ""
298
 
299
- #: ../includes/classes/editor.php:1302
300
  msgid "Edit plugins"
301
  msgstr ""
302
 
303
- #: ../includes/classes/editor.php:1303
304
  msgid "Edit users"
305
  msgstr ""
306
 
307
- #: ../includes/classes/editor.php:1304
308
  msgid "Edit files"
309
  msgstr ""
310
 
311
- #: ../includes/classes/editor.php:1305
312
  msgid "Manage options"
313
  msgstr ""
314
 
315
- #: ../includes/classes/editor.php:1306
316
  msgid "Moderate comments"
317
  msgstr ""
318
 
319
- #: ../includes/classes/editor.php:1307
320
  msgid "Manage categories"
321
  msgstr ""
322
 
323
- #: ../includes/classes/editor.php:1308
324
  msgid "Manage links"
325
  msgstr ""
326
 
327
- #: ../includes/classes/editor.php:1309
328
  msgid "Upload files"
329
  msgstr ""
330
 
331
- #: ../includes/classes/editor.php:1310
332
  msgid "Import"
333
  msgstr ""
334
 
335
- #: ../includes/classes/editor.php:1311
336
  msgid "Unfiltered html"
337
  msgstr ""
338
 
339
- #: ../includes/classes/editor.php:1312
340
  msgid "Edit posts"
341
  msgstr ""
342
 
343
- #: ../includes/classes/editor.php:1313
344
  msgid "Edit others posts"
345
  msgstr ""
346
 
347
- #: ../includes/classes/editor.php:1314
348
  msgid "Edit published posts"
349
  msgstr ""
350
 
351
- #: ../includes/classes/editor.php:1315
352
  msgid "Publish posts"
353
  msgstr ""
354
 
355
- #: ../includes/classes/editor.php:1316
356
  msgid "Edit pages"
357
  msgstr ""
358
 
359
- #: ../includes/classes/editor.php:1317
360
  msgid "Read"
361
  msgstr ""
362
 
363
- #: ../includes/classes/editor.php:1318
364
  msgid "Level 10"
365
  msgstr ""
366
 
367
- #: ../includes/classes/editor.php:1319
368
  msgid "Level 9"
369
  msgstr ""
370
 
371
- #: ../includes/classes/editor.php:1320
372
  msgid "Level 8"
373
  msgstr ""
374
 
375
- #: ../includes/classes/editor.php:1321
376
  msgid "Level 7"
377
  msgstr ""
378
 
379
- #: ../includes/classes/editor.php:1322
380
  msgid "Level 6"
381
  msgstr ""
382
 
383
- #: ../includes/classes/editor.php:1323
384
  msgid "Level 5"
385
  msgstr ""
386
 
387
- #: ../includes/classes/editor.php:1324
388
  msgid "Level 4"
389
  msgstr ""
390
 
391
- #: ../includes/classes/editor.php:1325
392
  msgid "Level 3"
393
  msgstr ""
394
 
395
- #: ../includes/classes/editor.php:1326
396
  msgid "Level 2"
397
  msgstr ""
398
 
399
- #: ../includes/classes/editor.php:1327
400
  msgid "Level 1"
401
  msgstr ""
402
 
403
- #: ../includes/classes/editor.php:1328
404
  msgid "Level 0"
405
  msgstr ""
406
 
407
- #: ../includes/classes/editor.php:1329
408
  msgid "Edit others pages"
409
  msgstr ""
410
 
411
- #: ../includes/classes/editor.php:1330
412
  msgid "Edit published pages"
413
  msgstr ""
414
 
415
- #: ../includes/classes/editor.php:1331
416
  msgid "Publish pages"
417
  msgstr ""
418
 
419
- #: ../includes/classes/editor.php:1332
420
  msgid "Delete pages"
421
  msgstr ""
422
 
423
- #: ../includes/classes/editor.php:1333
424
  msgid "Delete others pages"
425
  msgstr ""
426
 
427
- #: ../includes/classes/editor.php:1334
428
  msgid "Delete published pages"
429
  msgstr ""
430
 
431
- #: ../includes/classes/editor.php:1335
432
  msgid "Delete posts"
433
  msgstr ""
434
 
435
- #: ../includes/classes/editor.php:1336
436
  msgid "Delete others posts"
437
  msgstr ""
438
 
439
- #: ../includes/classes/editor.php:1337
440
  msgid "Delete published posts"
441
  msgstr ""
442
 
443
- #: ../includes/classes/editor.php:1338
444
  msgid "Delete private posts"
445
  msgstr ""
446
 
447
- #: ../includes/classes/editor.php:1339
448
  msgid "Edit private posts"
449
  msgstr ""
450
 
451
- #: ../includes/classes/editor.php:1340
452
  msgid "Read private posts"
453
  msgstr ""
454
 
455
- #: ../includes/classes/editor.php:1341
456
  msgid "Delete private pages"
457
  msgstr ""
458
 
459
- #: ../includes/classes/editor.php:1342
460
  msgid "Edit private pages"
461
  msgstr ""
462
 
463
- #: ../includes/classes/editor.php:1343
464
  msgid "Read private pages"
465
  msgstr ""
466
 
467
- #: ../includes/classes/editor.php:1344
468
  msgid "Delete users"
469
  msgstr ""
470
 
471
- #: ../includes/classes/editor.php:1345
472
  msgid "Create users"
473
  msgstr ""
474
 
475
- #: ../includes/classes/editor.php:1346
476
  msgid "Unfiltered upload"
477
  msgstr ""
478
 
479
- #: ../includes/classes/editor.php:1347
480
  msgid "Edit dashboard"
481
  msgstr ""
482
 
483
- #: ../includes/classes/editor.php:1348
484
  msgid "Update plugins"
485
  msgstr ""
486
 
487
- #: ../includes/classes/editor.php:1349
488
  msgid "Delete plugins"
489
  msgstr ""
490
 
491
- #: ../includes/classes/editor.php:1350
492
  msgid "Install plugins"
493
  msgstr ""
494
 
495
- #: ../includes/classes/editor.php:1351
496
  msgid "Update themes"
497
  msgstr ""
498
 
499
- #: ../includes/classes/editor.php:1352
500
  msgid "Install themes"
501
  msgstr ""
502
 
503
- #: ../includes/classes/editor.php:1353
504
  msgid "Update core"
505
  msgstr ""
506
 
507
- #: ../includes/classes/editor.php:1354
508
  msgid "List users"
509
  msgstr ""
510
 
511
- #: ../includes/classes/editor.php:1355
512
  msgid "Remove users"
513
  msgstr ""
514
 
515
- #: ../includes/classes/editor.php:1356
516
  msgid "Add users"
517
  msgstr ""
518
 
519
- #: ../includes/classes/editor.php:1357
520
  msgid "Promote users"
521
  msgstr ""
522
 
523
- #: ../includes/classes/editor.php:1358
524
  msgid "Edit theme options"
525
  msgstr ""
526
 
527
- #: ../includes/classes/editor.php:1359
528
  msgid "Delete themes"
529
  msgstr ""
530
 
531
- #: ../includes/classes/editor.php:1360
532
  msgid "Export"
533
  msgstr ""
534
 
@@ -623,7 +623,7 @@ msgstr ""
623
  msgid "Plugin download"
624
  msgstr ""
625
 
626
- #: ../includes/classes/lib.php:384 ../includes/classes/user-role-editor.php:515
627
  msgid "Changelog"
628
  msgstr ""
629
 
@@ -819,7 +819,7 @@ msgid "Reset Roles to its original state"
819
  msgstr ""
820
 
821
  #: ../includes/classes/tools.php:36
822
- #: ../includes/classes/user-role-editor.php:787
823
  msgid "Reset"
824
  msgstr ""
825
 
@@ -827,191 +827,191 @@ msgstr ""
827
  msgid "Tools: Reset: User Roles were initialized"
828
  msgstr ""
829
 
830
- #: ../includes/classes/user-other-roles.php:85
831
- #: ../includes/classes/user-other-roles.php:221
832
  msgid "Other Roles"
833
  msgstr ""
834
 
835
- #: ../includes/classes/user-other-roles.php:86
836
  msgid "Select additional roles for this user"
837
  msgstr ""
838
 
839
- #: ../includes/classes/user-other-roles.php:183
840
  #, php-format
841
  msgid "Denied: %s"
842
  msgstr ""
843
 
844
- #: ../includes/classes/user-other-roles.php:200
845
- #: ../includes/classes/user-role-editor.php:391
846
  msgid "Capabilities"
847
  msgstr ""
848
 
849
- #: ../includes/classes/user-other-roles.php:207
850
  msgid "Edit"
851
  msgstr ""
852
 
853
- #: ../includes/classes/user-other-roles.php:265
854
  msgid "Additional Capabilities"
855
  msgstr ""
856
 
857
- #: ../includes/classes/user-role-editor.php:288
858
  msgid "Change role for users without role"
859
  msgstr ""
860
 
861
- #: ../includes/classes/user-role-editor.php:289
862
  msgid "To:"
863
  msgstr ""
864
 
865
- #: ../includes/classes/user-role-editor.php:290
866
  msgid "No rights"
867
  msgstr ""
868
 
869
- #: ../includes/classes/user-role-editor.php:291
870
  msgid "Provide new role"
871
  msgstr ""
872
 
873
- #: ../includes/classes/user-role-editor.php:363
874
- #: ../includes/classes/user-role-editor.php:365
875
  msgid "You do not have permission to edit this user."
876
  msgstr ""
877
 
878
- #: ../includes/classes/user-role-editor.php:489
879
- #: ../includes/classes/user-role-editor.php:502
880
  msgid "Settings"
881
  msgstr ""
882
 
883
- #: ../includes/classes/user-role-editor.php:544
884
  #: ../includes/settings-template.php:26
885
  msgid "Additional Modules"
886
  msgstr ""
887
 
888
- #: ../includes/classes/user-role-editor.php:550
889
  #: ../includes/settings-template.php:31
890
  msgid "Default Roles"
891
  msgstr ""
892
 
893
- #: ../includes/classes/user-role-editor.php:617
894
  msgid ""
895
  "You do not have sufficient permissions to manage options for User Role "
896
  "Editor."
897
  msgstr ""
898
 
899
- #: ../includes/classes/user-role-editor.php:737
900
- #: ../includes/classes/user-role-editor.php:784
901
  msgid "Confirm"
902
  msgstr ""
903
 
904
- #: ../includes/classes/user-role-editor.php:738
905
- #: ../includes/classes/user-role-editor.php:785
906
  msgid "Yes"
907
  msgstr ""
908
 
909
- #: ../includes/classes/user-role-editor.php:739
910
- #: ../includes/classes/user-role-editor.php:786
911
  msgid "No"
912
  msgstr ""
913
 
914
- #: ../includes/classes/user-role-editor.php:740
915
  msgid "Update"
916
  msgstr ""
917
 
918
- #: ../includes/classes/user-role-editor.php:741
919
  msgid "Please confirm permissions update"
920
  msgstr ""
921
 
922
- #: ../includes/classes/user-role-editor.php:742
923
  msgid "Add New Role"
924
  msgstr ""
925
 
926
- #: ../includes/classes/user-role-editor.php:743
927
- #: ../includes/classes/user-role-editor.php:748
928
  msgid "Rename Role"
929
  msgstr ""
930
 
931
- #: ../includes/classes/user-role-editor.php:744
932
  msgid " Role name (ID) can not be empty!"
933
  msgstr ""
934
 
935
- #: ../includes/classes/user-role-editor.php:745
936
  msgid ""
937
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
938
  "only!"
939
  msgstr ""
940
 
941
- #: ../includes/classes/user-role-editor.php:746
942
  msgid ""
943
  " WordPress does not support numeric Role name (ID). Add latin characters to "
944
  "it."
945
  msgstr ""
946
 
947
- #: ../includes/classes/user-role-editor.php:747
948
  msgid "Add Role"
949
  msgstr ""
950
 
951
- #: ../includes/classes/user-role-editor.php:749
952
  msgid "Delete Role"
953
  msgstr ""
954
 
955
- #: ../includes/classes/user-role-editor.php:750
956
  msgid "Cancel"
957
  msgstr ""
958
 
959
- #: ../includes/classes/user-role-editor.php:751
960
  msgid "Add Capability"
961
  msgstr ""
962
 
963
- #: ../includes/classes/user-role-editor.php:752
964
- #: ../includes/classes/user-role-editor.php:756
965
  msgid "Delete Capability"
966
  msgstr ""
967
 
968
- #: ../includes/classes/user-role-editor.php:753
969
- #: ../includes/classes/user-role-editor.php:793
970
  msgid "Continue?"
971
  msgstr ""
972
 
973
- #: ../includes/classes/user-role-editor.php:754
974
  msgid "Default Role"
975
  msgstr ""
976
 
977
- #: ../includes/classes/user-role-editor.php:755
978
  msgid "Set New Default Role"
979
  msgstr ""
980
 
981
- #: ../includes/classes/user-role-editor.php:757
982
  msgid ""
983
  "Warning! Be careful - removing critical capability could crash some plugin "
984
  "or other custom code"
985
  msgstr ""
986
 
987
- #: ../includes/classes/user-role-editor.php:758
988
  msgid " Capability name (ID) can not be empty!"
989
  msgstr ""
990
 
991
- #: ../includes/classes/user-role-editor.php:759
992
  msgid ""
993
  " Capability name (ID) must contain latin characters, digits, hyphens or "
994
  "underscore only!"
995
  msgstr ""
996
 
997
- #: ../includes/classes/user-role-editor.php:788
998
  msgid "DANGER!"
999
  msgstr ""
1000
 
1001
- #: ../includes/classes/user-role-editor.php:789
1002
  msgid ""
1003
  " Resetting will restore default user roles and capabilities from WordPress "
1004
  "core."
1005
  msgstr ""
1006
 
1007
- #: ../includes/classes/user-role-editor.php:790
1008
  msgid ""
1009
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
1010
  "user roles and capabilities during installation, all those changes will be "
1011
  "LOST!"
1012
  msgstr ""
1013
 
1014
- #: ../includes/classes/user-role-editor.php:791
1015
  msgid ""
1016
  "For more information on how to undo undesired changes and restore plugin "
1017
  "capabilities go to"
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.51\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2021-01-11 10:45+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 2.3\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  #: ../includes/classes/capabilities-groups-manager.php:44
22
  msgstr ""
23
 
24
  #: ../includes/classes/capabilities-groups-manager.php:75
25
+ #: ../includes/classes/editor.php:1292
26
+ #: ../includes/classes/user-role-editor.php:565
27
+ #: ../includes/classes/user-role-editor.php:596
28
  msgid "User Role Editor"
29
  msgstr ""
30
 
42
  msgstr ""
43
 
44
  #: ../includes/classes/capabilities-groups-manager.php:112
45
+ #: ../includes/classes/user-role-editor.php:537
46
  #: ../includes/settings-template.php:20
47
  msgid "General"
48
  msgstr ""
68
  msgstr ""
69
 
70
  #: ../includes/classes/capabilities-groups-manager.php:121
71
+ #: ../includes/classes/user-role-editor.php:555
72
  #: ../includes/settings-template.php:36
73
  msgid "Multisite"
74
  msgstr ""
94
  msgstr ""
95
 
96
  #: ../includes/classes/capability.php:79 ../includes/classes/capability.php:190
97
+ #: ../includes/classes/editor.php:771 ../includes/classes/editor.php:840
98
+ #: ../includes/classes/editor.php:891 ../includes/classes/editor.php:937
99
+ #: ../includes/classes/editor.php:1083 ../includes/classes/editor.php:1125
100
+ #: ../includes/classes/user-role-editor.php:649
101
  msgid "Insufficient permissions to work with User Role Editor"
102
  msgstr ""
103
 
129
  msgid "capabilities were removed successfully"
130
  msgstr ""
131
 
132
+ #: ../includes/classes/editor.php:231 ../includes/classes/editor.php:233
133
  msgid "Error: "
134
  msgstr ""
135
 
136
+ #: ../includes/classes/editor.php:231
137
  msgid "Wrong request!"
138
  msgstr ""
139
 
140
+ #: ../includes/classes/editor.php:233
141
  msgid "Role"
142
  msgstr ""
143
 
144
+ #: ../includes/classes/editor.php:234
145
  msgid "does not exist"
146
  msgstr ""
147
 
148
+ #: ../includes/classes/editor.php:723
149
  msgid "Role is updated successfully"
150
  msgstr ""
151
 
152
+ #: ../includes/classes/editor.php:725
153
  msgid "Roles are updated for all network"
154
  msgstr ""
155
 
156
+ #: ../includes/classes/editor.php:728
157
  msgid "Error occurred during role(s) update"
158
  msgstr ""
159
 
160
+ #: ../includes/classes/editor.php:732
161
  msgid "User capabilities are updated successfully"
162
  msgstr ""
163
 
164
+ #: ../includes/classes/editor.php:734
165
  msgid "Error occurred during user update"
166
  msgstr ""
167
 
168
+ #: ../includes/classes/editor.php:804
169
  msgid "Error: Role ID is empty!"
170
  msgstr ""
171
 
172
+ #: ../includes/classes/editor.php:813
173
  msgid ""
174
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
175
  "only!"
176
  msgstr ""
177
 
178
+ #: ../includes/classes/editor.php:819
179
  msgid ""
180
  "Error: WordPress does not support numeric Role name (ID). Add latin "
181
  "characters to it."
182
  msgstr ""
183
 
184
+ #: ../includes/classes/editor.php:853
185
  #, php-format
186
  msgid "Role %s exists already"
187
  msgstr ""
188
 
189
+ #: ../includes/classes/editor.php:872
190
  msgid "Error is encountered during new role create operation"
191
  msgstr ""
192
 
193
+ #: ../includes/classes/editor.php:879
194
  #, php-format
195
  msgid "Role %s is created successfully"
196
  msgstr ""
197
 
198
+ #: ../includes/classes/editor.php:949
199
  msgid "Error: Empty role display name is not allowed."
200
  msgstr ""
201
 
202
+ #: ../includes/classes/editor.php:956
203
  #, php-format
204
  msgid "Role %s does not exists"
205
  msgstr ""
206
 
207
+ #: ../includes/classes/editor.php:969
208
  #, php-format
209
  msgid "Role %s is renamed to %s successfully"
210
  msgstr ""
211
 
212
+ #: ../includes/classes/editor.php:1034
213
  msgid "Role does not exist"
214
  msgstr ""
215
 
216
+ #: ../includes/classes/editor.php:1038
217
  msgid "You can not delete role"
218
  msgstr ""
219
 
220
+ #: ../includes/classes/editor.php:1064
221
  msgid "There are no roles for deletion"
222
  msgstr ""
223
 
224
+ #: ../includes/classes/editor.php:1092
225
  msgid "Wrong role ID"
226
  msgstr ""
227
 
228
+ #: ../includes/classes/editor.php:1101
229
  msgid "Unused roles are deleted successfully"
230
  msgstr ""
231
 
232
+ #: ../includes/classes/editor.php:1103
233
  #, php-format
234
  msgid "Role %s is deleted successfully"
235
  msgstr ""
236
 
237
+ #: ../includes/classes/editor.php:1131
238
  msgid ""
239
  "This method is only for a single site of WordPress multisite installation."
240
  msgstr ""
241
 
242
+ #: ../includes/classes/editor.php:1135
243
  msgid "Wrong request. Default role can not be empty"
244
  msgstr ""
245
 
246
+ #: ../includes/classes/editor.php:1147
247
  #, php-format
248
  msgid "Default role for new users is set to %s successfully"
249
  msgstr ""
250
 
251
+ #: ../includes/classes/editor.php:1149
252
  msgid "Error encountered during default role change operation"
253
  msgstr ""
254
 
255
+ #: ../includes/classes/editor.php:1152
256
  msgid "Can not set Administrator role as a default one"
257
  msgstr ""
258
 
259
+ #: ../includes/classes/editor.php:1154
260
  msgid "This role does not exist - "
261
  msgstr ""
262
 
263
+ #: ../includes/classes/editor.php:1199
264
  msgid "User Roles are restored to WordPress default values. "
265
  msgstr ""
266
 
267
+ #: ../includes/classes/editor.php:1331
268
  msgid "Error: wrong request"
269
  msgstr ""
270
 
271
+ #: ../includes/classes/editor.php:1360
272
  msgid "Editor"
273
  msgstr ""
274
 
275
+ #: ../includes/classes/editor.php:1361
276
  msgid "Author"
277
  msgstr ""
278
 
279
+ #: ../includes/classes/editor.php:1362
280
  msgid "Contributor"
281
  msgstr ""
282
 
283
+ #: ../includes/classes/editor.php:1363
284
  msgid "Subscriber"
285
  msgstr ""
286
 
287
+ #: ../includes/classes/editor.php:1365
288
  msgid "Switch themes"
289
  msgstr ""
290
 
291
+ #: ../includes/classes/editor.php:1366
292
  msgid "Edit themes"
293
  msgstr ""
294
 
295
+ #: ../includes/classes/editor.php:1367
296
  msgid "Activate plugins"
297
  msgstr ""
298
 
299
+ #: ../includes/classes/editor.php:1368
300
  msgid "Edit plugins"
301
  msgstr ""
302
 
303
+ #: ../includes/classes/editor.php:1369
304
  msgid "Edit users"
305
  msgstr ""
306
 
307
+ #: ../includes/classes/editor.php:1370
308
  msgid "Edit files"
309
  msgstr ""
310
 
311
+ #: ../includes/classes/editor.php:1371
312
  msgid "Manage options"
313
  msgstr ""
314
 
315
+ #: ../includes/classes/editor.php:1372
316
  msgid "Moderate comments"
317
  msgstr ""
318
 
319
+ #: ../includes/classes/editor.php:1373
320
  msgid "Manage categories"
321
  msgstr ""
322
 
323
+ #: ../includes/classes/editor.php:1374
324
  msgid "Manage links"
325
  msgstr ""
326
 
327
+ #: ../includes/classes/editor.php:1375
328
  msgid "Upload files"
329
  msgstr ""
330
 
331
+ #: ../includes/classes/editor.php:1376
332
  msgid "Import"
333
  msgstr ""
334
 
335
+ #: ../includes/classes/editor.php:1377
336
  msgid "Unfiltered html"
337
  msgstr ""
338
 
339
+ #: ../includes/classes/editor.php:1378
340
  msgid "Edit posts"
341
  msgstr ""
342
 
343
+ #: ../includes/classes/editor.php:1379
344
  msgid "Edit others posts"
345
  msgstr ""
346
 
347
+ #: ../includes/classes/editor.php:1380
348
  msgid "Edit published posts"
349
  msgstr ""
350
 
351
+ #: ../includes/classes/editor.php:1381
352
  msgid "Publish posts"
353
  msgstr ""
354
 
355
+ #: ../includes/classes/editor.php:1382
356
  msgid "Edit pages"
357
  msgstr ""
358
 
359
+ #: ../includes/classes/editor.php:1383
360
  msgid "Read"
361
  msgstr ""
362
 
363
+ #: ../includes/classes/editor.php:1384
364
  msgid "Level 10"
365
  msgstr ""
366
 
367
+ #: ../includes/classes/editor.php:1385
368
  msgid "Level 9"
369
  msgstr ""
370
 
371
+ #: ../includes/classes/editor.php:1386
372
  msgid "Level 8"
373
  msgstr ""
374
 
375
+ #: ../includes/classes/editor.php:1387
376
  msgid "Level 7"
377
  msgstr ""
378
 
379
+ #: ../includes/classes/editor.php:1388
380
  msgid "Level 6"
381
  msgstr ""
382
 
383
+ #: ../includes/classes/editor.php:1389
384
  msgid "Level 5"
385
  msgstr ""
386
 
387
+ #: ../includes/classes/editor.php:1390
388
  msgid "Level 4"
389
  msgstr ""
390
 
391
+ #: ../includes/classes/editor.php:1391
392
  msgid "Level 3"
393
  msgstr ""
394
 
395
+ #: ../includes/classes/editor.php:1392
396
  msgid "Level 2"
397
  msgstr ""
398
 
399
+ #: ../includes/classes/editor.php:1393
400
  msgid "Level 1"
401
  msgstr ""
402
 
403
+ #: ../includes/classes/editor.php:1394
404
  msgid "Level 0"
405
  msgstr ""
406
 
407
+ #: ../includes/classes/editor.php:1395
408
  msgid "Edit others pages"
409
  msgstr ""
410
 
411
+ #: ../includes/classes/editor.php:1396
412
  msgid "Edit published pages"
413
  msgstr ""
414
 
415
+ #: ../includes/classes/editor.php:1397
416
  msgid "Publish pages"
417
  msgstr ""
418
 
419
+ #: ../includes/classes/editor.php:1398
420
  msgid "Delete pages"
421
  msgstr ""
422
 
423
+ #: ../includes/classes/editor.php:1399
424
  msgid "Delete others pages"
425
  msgstr ""
426
 
427
+ #: ../includes/classes/editor.php:1400
428
  msgid "Delete published pages"
429
  msgstr ""
430
 
431
+ #: ../includes/classes/editor.php:1401
432
  msgid "Delete posts"
433
  msgstr ""
434
 
435
+ #: ../includes/classes/editor.php:1402
436
  msgid "Delete others posts"
437
  msgstr ""
438
 
439
+ #: ../includes/classes/editor.php:1403
440
  msgid "Delete published posts"
441
  msgstr ""
442
 
443
+ #: ../includes/classes/editor.php:1404
444
  msgid "Delete private posts"
445
  msgstr ""
446
 
447
+ #: ../includes/classes/editor.php:1405
448
  msgid "Edit private posts"
449
  msgstr ""
450
 
451
+ #: ../includes/classes/editor.php:1406
452
  msgid "Read private posts"
453
  msgstr ""
454
 
455
+ #: ../includes/classes/editor.php:1407
456
  msgid "Delete private pages"
457
  msgstr ""
458
 
459
+ #: ../includes/classes/editor.php:1408
460
  msgid "Edit private pages"
461
  msgstr ""
462
 
463
+ #: ../includes/classes/editor.php:1409
464
  msgid "Read private pages"
465
  msgstr ""
466
 
467
+ #: ../includes/classes/editor.php:1410
468
  msgid "Delete users"
469
  msgstr ""
470
 
471
+ #: ../includes/classes/editor.php:1411
472
  msgid "Create users"
473
  msgstr ""
474
 
475
+ #: ../includes/classes/editor.php:1412
476
  msgid "Unfiltered upload"
477
  msgstr ""
478
 
479
+ #: ../includes/classes/editor.php:1413
480
  msgid "Edit dashboard"
481
  msgstr ""
482
 
483
+ #: ../includes/classes/editor.php:1414
484
  msgid "Update plugins"
485
  msgstr ""
486
 
487
+ #: ../includes/classes/editor.php:1415
488
  msgid "Delete plugins"
489
  msgstr ""
490
 
491
+ #: ../includes/classes/editor.php:1416
492
  msgid "Install plugins"
493
  msgstr ""
494
 
495
+ #: ../includes/classes/editor.php:1417
496
  msgid "Update themes"
497
  msgstr ""
498
 
499
+ #: ../includes/classes/editor.php:1418
500
  msgid "Install themes"
501
  msgstr ""
502
 
503
+ #: ../includes/classes/editor.php:1419
504
  msgid "Update core"
505
  msgstr ""
506
 
507
+ #: ../includes/classes/editor.php:1420
508
  msgid "List users"
509
  msgstr ""
510
 
511
+ #: ../includes/classes/editor.php:1421
512
  msgid "Remove users"
513
  msgstr ""
514
 
515
+ #: ../includes/classes/editor.php:1422
516
  msgid "Add users"
517
  msgstr ""
518
 
519
+ #: ../includes/classes/editor.php:1423
520
  msgid "Promote users"
521
  msgstr ""
522
 
523
+ #: ../includes/classes/editor.php:1424
524
  msgid "Edit theme options"
525
  msgstr ""
526
 
527
+ #: ../includes/classes/editor.php:1425
528
  msgid "Delete themes"
529
  msgstr ""
530
 
531
+ #: ../includes/classes/editor.php:1426
532
  msgid "Export"
533
  msgstr ""
534
 
623
  msgid "Plugin download"
624
  msgstr ""
625
 
626
+ #: ../includes/classes/lib.php:384 ../includes/classes/user-role-editor.php:514
627
  msgid "Changelog"
628
  msgstr ""
629
 
819
  msgstr ""
820
 
821
  #: ../includes/classes/tools.php:36
822
+ #: ../includes/classes/user-role-editor.php:786
823
  msgid "Reset"
824
  msgstr ""
825
 
827
  msgid "Tools: Reset: User Roles were initialized"
828
  msgstr ""
829
 
830
+ #: ../includes/classes/user-other-roles.php:96
831
+ #: ../includes/classes/user-other-roles.php:232
832
  msgid "Other Roles"
833
  msgstr ""
834
 
835
+ #: ../includes/classes/user-other-roles.php:97
836
  msgid "Select additional roles for this user"
837
  msgstr ""
838
 
839
+ #: ../includes/classes/user-other-roles.php:194
840
  #, php-format
841
  msgid "Denied: %s"
842
  msgstr ""
843
 
844
+ #: ../includes/classes/user-other-roles.php:211
845
+ #: ../includes/classes/user-role-editor.php:390
846
  msgid "Capabilities"
847
  msgstr ""
848
 
849
+ #: ../includes/classes/user-other-roles.php:218
850
  msgid "Edit"
851
  msgstr ""
852
 
853
+ #: ../includes/classes/user-other-roles.php:276
854
  msgid "Additional Capabilities"
855
  msgstr ""
856
 
857
+ #: ../includes/classes/user-role-editor.php:287
858
  msgid "Change role for users without role"
859
  msgstr ""
860
 
861
+ #: ../includes/classes/user-role-editor.php:288
862
  msgid "To:"
863
  msgstr ""
864
 
865
+ #: ../includes/classes/user-role-editor.php:289
866
  msgid "No rights"
867
  msgstr ""
868
 
869
+ #: ../includes/classes/user-role-editor.php:290
870
  msgid "Provide new role"
871
  msgstr ""
872
 
873
+ #: ../includes/classes/user-role-editor.php:362
874
+ #: ../includes/classes/user-role-editor.php:364
875
  msgid "You do not have permission to edit this user."
876
  msgstr ""
877
 
878
+ #: ../includes/classes/user-role-editor.php:488
879
+ #: ../includes/classes/user-role-editor.php:501
880
  msgid "Settings"
881
  msgstr ""
882
 
883
+ #: ../includes/classes/user-role-editor.php:543
884
  #: ../includes/settings-template.php:26
885
  msgid "Additional Modules"
886
  msgstr ""
887
 
888
+ #: ../includes/classes/user-role-editor.php:549
889
  #: ../includes/settings-template.php:31
890
  msgid "Default Roles"
891
  msgstr ""
892
 
893
+ #: ../includes/classes/user-role-editor.php:616
894
  msgid ""
895
  "You do not have sufficient permissions to manage options for User Role "
896
  "Editor."
897
  msgstr ""
898
 
899
+ #: ../includes/classes/user-role-editor.php:736
900
+ #: ../includes/classes/user-role-editor.php:783
901
  msgid "Confirm"
902
  msgstr ""
903
 
904
+ #: ../includes/classes/user-role-editor.php:737
905
+ #: ../includes/classes/user-role-editor.php:784
906
  msgid "Yes"
907
  msgstr ""
908
 
909
+ #: ../includes/classes/user-role-editor.php:738
910
+ #: ../includes/classes/user-role-editor.php:785
911
  msgid "No"
912
  msgstr ""
913
 
914
+ #: ../includes/classes/user-role-editor.php:739
915
  msgid "Update"
916
  msgstr ""
917
 
918
+ #: ../includes/classes/user-role-editor.php:740
919
  msgid "Please confirm permissions update"
920
  msgstr ""
921
 
922
+ #: ../includes/classes/user-role-editor.php:741
923
  msgid "Add New Role"
924
  msgstr ""
925
 
926
+ #: ../includes/classes/user-role-editor.php:742
927
+ #: ../includes/classes/user-role-editor.php:747
928
  msgid "Rename Role"
929
  msgstr ""
930
 
931
+ #: ../includes/classes/user-role-editor.php:743
932
  msgid " Role name (ID) can not be empty!"
933
  msgstr ""
934
 
935
+ #: ../includes/classes/user-role-editor.php:744
936
  msgid ""
937
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
938
  "only!"
939
  msgstr ""
940
 
941
+ #: ../includes/classes/user-role-editor.php:745
942
  msgid ""
943
  " WordPress does not support numeric Role name (ID). Add latin characters to "
944
  "it."
945
  msgstr ""
946
 
947
+ #: ../includes/classes/user-role-editor.php:746
948
  msgid "Add Role"
949
  msgstr ""
950
 
951
+ #: ../includes/classes/user-role-editor.php:748
952
  msgid "Delete Role"
953
  msgstr ""
954
 
955
+ #: ../includes/classes/user-role-editor.php:749
956
  msgid "Cancel"
957
  msgstr ""
958
 
959
+ #: ../includes/classes/user-role-editor.php:750
960
  msgid "Add Capability"
961
  msgstr ""
962
 
963
+ #: ../includes/classes/user-role-editor.php:751
964
+ #: ../includes/classes/user-role-editor.php:755
965
  msgid "Delete Capability"
966
  msgstr ""
967
 
968
+ #: ../includes/classes/user-role-editor.php:752
969
+ #: ../includes/classes/user-role-editor.php:792
970
  msgid "Continue?"
971
  msgstr ""
972
 
973
+ #: ../includes/classes/user-role-editor.php:753
974
  msgid "Default Role"
975
  msgstr ""
976
 
977
+ #: ../includes/classes/user-role-editor.php:754
978
  msgid "Set New Default Role"
979
  msgstr ""
980
 
981
+ #: ../includes/classes/user-role-editor.php:756
982
  msgid ""
983
  "Warning! Be careful - removing critical capability could crash some plugin "
984
  "or other custom code"
985
  msgstr ""
986
 
987
+ #: ../includes/classes/user-role-editor.php:757
988
  msgid " Capability name (ID) can not be empty!"
989
  msgstr ""
990
 
991
+ #: ../includes/classes/user-role-editor.php:758
992
  msgid ""
993
  " Capability name (ID) must contain latin characters, digits, hyphens or "
994
  "underscore only!"
995
  msgstr ""
996
 
997
+ #: ../includes/classes/user-role-editor.php:787
998
  msgid "DANGER!"
999
  msgstr ""
1000
 
1001
+ #: ../includes/classes/user-role-editor.php:788
1002
  msgid ""
1003
  " Resetting will restore default user roles and capabilities from WordPress "
1004
  "core."
1005
  msgstr ""
1006
 
1007
+ #: ../includes/classes/user-role-editor.php:789
1008
  msgid ""
1009
  "If any plugins (such as WooCommerce, S2Member and many others) have changed "
1010
  "user roles and capabilities during installation, all those changes will be "
1011
  "LOST!"
1012
  msgstr ""
1013
 
1014
+ #: ../includes/classes/user-role-editor.php:790
1015
  msgid ""
1016
  "For more information on how to undo undesired changes and restore plugin "
1017
  "capabilities go to"
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: 5.6
7
- Stable tag: 4.57.1
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -80,6 +80,14 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
80
 
81
 
82
  == Changelog =
 
 
 
 
 
 
 
 
83
  = [4.57.1] 10.12.2020 =
84
  * Fix: Nextgen Gallery's user capabilities were not shown as granted after current role change via roles selection dropdown list.
85
  * Fix: PHP Warning: The magic method __wakeup() must have public visibility. __wakeup() method was defined as private as a part of the Singleton design partern. Method was redefined as public but with exception inside to prevent its usage.
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
+ Stable tag: 4.58
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
80
 
81
 
82
  == Changelog =
83
+ = [4.58] 11.01.2021 =
84
+ * Update: Users->User Role Editor: Update button saves changes via AJAX without full page reload.
85
+ * Fix: New user registered via frontend (wp-login.php?action=register) automatically receives additional (other) default role(s) according to selection made at User Role Editor settings "Other default roles" tab.
86
+ * Fix: "PHP Deprecated: Required parameter $max_ind follows optional parameter $used in ..\wp-content\plugins\user-role-editor\includes\classes\advertisement.php on line 31" PHP 8.0 notice was fixed.
87
+ * Fix: "JQMIGRATE: jquery.fn.resize() event shorthand is deprecated" notice was fixed.
88
+ * Fix: "JQMIGRATE: jQuery.fn.click() event shorthand is deprecated" notice was fixed.
89
+ * Fix: "JQMIGRATE: Number-typed values are deprecated for jQuery.fn.css( (property name), value )" notice was fixed.
90
+
91
  = [4.57.1] 10.12.2020 =
92
  * Fix: Nextgen Gallery's user capabilities were not shown as granted after current role change via roles selection dropdown list.
93
  * Fix: PHP Warning: The magic method __wakeup() must have public visibility. __wakeup() method was defined as private as a part of the Singleton design partern. Method was redefined as public but with exception inside to prevent its usage.
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.57.1
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
@@ -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.57.1' );
27
  define( 'URE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
28
  define( 'URE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
29
  define( 'URE_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
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.58
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
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.58' );
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__ ) );