Version Description
Download this release
Release Info
Developer | shinephp |
Plugin | User Role Editor |
Version | 4.62 |
Comparing to | |
See all releases |
Code changes from version 4.61.2 to 4.62
- changelog.txt +7 -0
- includes/classes/editor.php +7 -3
- includes/classes/grant-roles.php +0 -1
- includes/classes/lib.php +28 -6
- includes/classes/role-view.php +8 -24
- includes/classes/settings.php +2 -3
- includes/classes/user-role-editor.php +73 -16
- includes/classes/user-view.php +1 -1
- js/users-grant-roles.js +1 -1
- lang/user-role-editor.pot +199 -196
- readme.txt +16 -12
- user-role-editor.php +2 -2
changelog.txt
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
= [4.61.2] 01.03.2022 =
|
5 |
* Fix: "Users->Add New" page - other selected roles were not saved.
|
6 |
* Update: URE uses WordPress notification styles for own operation result output.
|
1 |
CHANGES LOG (full version).
|
2 |
===========================
|
3 |
|
4 |
+
= [4.62] 05.05.2022 =
|
5 |
+
* Update: Marked as compatible with WordPress 6.0
|
6 |
+
* New: It's possible to translate custom role names using [PolyLang](https://wordpress.org/plugins/polylang/) plugin.
|
7 |
+
* Update: URE does not sort roles in WordPress dropdown lists. In order to sort roles by name return 'name' from 'ure_sort_wp_roles_list' filter.
|
8 |
+
* Update: User capabilities view page minor CSS enhancements.
|
9 |
+
* Update: Settings->About: "Donate" link was removed.
|
10 |
+
|
11 |
= [4.61.2] 01.03.2022 =
|
12 |
* Fix: "Users->Add New" page - other selected roles were not saved.
|
13 |
* Update: URE uses WordPress notification styles for own operation result output.
|
includes/classes/editor.php
CHANGED
@@ -237,7 +237,8 @@ class URE_Editor {
|
|
237 |
esc_html__('does not exist', 'user-role-editor');
|
238 |
} else {
|
239 |
$this->current_role = $role_id;
|
240 |
-
$
|
|
|
241 |
$mess = '';
|
242 |
}
|
243 |
|
@@ -1438,7 +1439,8 @@ class URE_Editor {
|
|
1438 |
} else {
|
1439 |
$this->current_role = $this->get_last_role_id();
|
1440 |
}
|
1441 |
-
$
|
|
|
1442 |
}
|
1443 |
|
1444 |
}
|
@@ -1497,9 +1499,11 @@ class URE_Editor {
|
|
1497 |
?>
|
1498 |
</div>
|
1499 |
<?php
|
|
|
1500 |
if (!$this->lib->is_pro()) {
|
1501 |
$view->advertise_commercials();
|
1502 |
-
}
|
|
|
1503 |
$view->display_edit_dialogs();
|
1504 |
do_action( 'ure_dialogs_html' );
|
1505 |
URE_Role_View::output_confirmation_dialog();
|
237 |
esc_html__('does not exist', 'user-role-editor');
|
238 |
} else {
|
239 |
$this->current_role = $role_id;
|
240 |
+
$roles = $this->lib->get_user_roles();
|
241 |
+
$this->current_role_name = $roles[$this->current_role]['name'];
|
242 |
$mess = '';
|
243 |
}
|
244 |
|
1439 |
} else {
|
1440 |
$this->current_role = $this->get_last_role_id();
|
1441 |
}
|
1442 |
+
$roles = $this->lib->get_user_roles();
|
1443 |
+
$this->current_role_name = $roles[$this->current_role]['name'];
|
1444 |
}
|
1445 |
|
1446 |
}
|
1499 |
?>
|
1500 |
</div>
|
1501 |
<?php
|
1502 |
+
/*
|
1503 |
if (!$this->lib->is_pro()) {
|
1504 |
$view->advertise_commercials();
|
1505 |
+
}
|
1506 |
+
*/
|
1507 |
$view->display_edit_dialogs();
|
1508 |
do_action( 'ure_dialogs_html' );
|
1509 |
URE_Role_View::output_confirmation_dialog();
|
includes/classes/grant-roles.php
CHANGED
@@ -401,7 +401,6 @@ class URE_Grant_Roles {
|
|
401 |
<?php
|
402 |
$show_admin_role = $this->lib->show_admin_role_allowed();
|
403 |
$roles = $this->lib->get_all_editable_roles();
|
404 |
-
ksort( $roles );
|
405 |
foreach ($roles as $role_id => $role) {
|
406 |
if (!$show_admin_role && $role_id=='administrator') {
|
407 |
continue;
|
401 |
<?php
|
402 |
$show_admin_role = $this->lib->show_admin_role_allowed();
|
403 |
$roles = $this->lib->get_all_editable_roles();
|
|
|
404 |
foreach ($roles as $role_id => $role) {
|
405 |
if (!$show_admin_role && $role_id=='administrator') {
|
406 |
continue;
|
includes/classes/lib.php
CHANGED
@@ -224,20 +224,20 @@ class URE_Lib extends URE_Base_Lib {
|
|
224 |
* Respect 'editable_roles' filter, when needed
|
225 |
* @return array
|
226 |
*/
|
227 |
-
public function get_editable_user_roles( $roles ) {
|
228 |
|
229 |
-
if (empty($roles)) {
|
230 |
$roles = $this->get_user_roles();
|
231 |
}
|
232 |
$bbpress = $this->get_bbpress();
|
233 |
if ($bbpress->is_active()) {
|
234 |
remove_filter('editable_roles', 'bbp_filter_blog_editable_roles');
|
235 |
}
|
236 |
-
$roles = apply_filters('editable_roles', $roles);
|
237 |
-
if ($bbpress->is_active()) {
|
238 |
add_filter('editable_roles', 'bbp_filter_blog_editable_roles');
|
239 |
}
|
240 |
-
|
241 |
return $roles;
|
242 |
}
|
243 |
// end of get_editable_user_roles()
|
@@ -386,6 +386,8 @@ class URE_Lib extends URE_Base_Lib {
|
|
386 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/user-role-editor-icon.png'; ?>);" target="_blank" href="https://www.role-editor.com/download-plugin"><?php _e('Plugin download', 'user-role-editor'); ?></a><br/>
|
387 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/changelog-icon.png'; ?>);" target="_blank" href="https://www.role-editor.com/changelog"><?php _e('Changelog', 'user-role-editor'); ?></a><br/>
|
388 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/faq-icon.png'; ?>);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/#faq"><?php _e('FAQ', 'user-role-editor'); ?></a><br/>
|
|
|
|
|
389 |
<hr />
|
390 |
<div style="text-align: center;">
|
391 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
@@ -396,6 +398,9 @@ class URE_Lib extends URE_Base_Lib {
|
|
396 |
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
397 |
</form>
|
398 |
</div>
|
|
|
|
|
|
|
399 |
<?php
|
400 |
}
|
401 |
// end of about()
|
@@ -529,6 +534,23 @@ class URE_Lib extends URE_Base_Lib {
|
|
529 |
}
|
530 |
// end of is_right_admin_path()
|
531 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
/*
|
533 |
* It's overriden in Pro version to add bbPress roles
|
534 |
*/
|
@@ -560,4 +582,4 @@ class URE_Lib extends URE_Base_Lib {
|
|
560 |
// end of get_custom_taxonomies()
|
561 |
|
562 |
}
|
563 |
-
// end of URE_Lib class
|
224 |
* Respect 'editable_roles' filter, when needed
|
225 |
* @return array
|
226 |
*/
|
227 |
+
public function get_editable_user_roles( $roles = array() ) {
|
228 |
|
229 |
+
if ( empty( $roles ) ) {
|
230 |
$roles = $this->get_user_roles();
|
231 |
}
|
232 |
$bbpress = $this->get_bbpress();
|
233 |
if ($bbpress->is_active()) {
|
234 |
remove_filter('editable_roles', 'bbp_filter_blog_editable_roles');
|
235 |
}
|
236 |
+
$roles = apply_filters('editable_roles', $roles );
|
237 |
+
if ( $bbpress->is_active() ) {
|
238 |
add_filter('editable_roles', 'bbp_filter_blog_editable_roles');
|
239 |
}
|
240 |
+
|
241 |
return $roles;
|
242 |
}
|
243 |
// end of get_editable_user_roles()
|
386 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/user-role-editor-icon.png'; ?>);" target="_blank" href="https://www.role-editor.com/download-plugin"><?php _e('Plugin download', 'user-role-editor'); ?></a><br/>
|
387 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/changelog-icon.png'; ?>);" target="_blank" href="https://www.role-editor.com/changelog"><?php _e('Changelog', 'user-role-editor'); ?></a><br/>
|
388 |
<a class="ure_rsb_link" style="background-image:url(<?php echo URE_PLUGIN_URL . 'images/faq-icon.png'; ?>);" target="_blank" href="http://www.shinephp.com/user-role-editor-wordpress-plugin/#faq"><?php _e('FAQ', 'user-role-editor'); ?></a><br/>
|
389 |
+
<?php
|
390 |
+
/*
|
391 |
<hr />
|
392 |
<div style="text-align: center;">
|
393 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
398 |
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
399 |
</form>
|
400 |
</div>
|
401 |
+
*/
|
402 |
+
?>
|
403 |
+
|
404 |
<?php
|
405 |
}
|
406 |
// end of about()
|
534 |
}
|
535 |
// end of is_right_admin_path()
|
536 |
|
537 |
+
|
538 |
+
public function is_wp_built_in_role( $role ) {
|
539 |
+
|
540 |
+
$wp_built_in_roles = array(
|
541 |
+
'administrator',
|
542 |
+
'editor',
|
543 |
+
'author',
|
544 |
+
'contributor',
|
545 |
+
'subscriber');
|
546 |
+
|
547 |
+
$result = in_array( $role, $wp_built_in_roles );
|
548 |
+
|
549 |
+
return $result;
|
550 |
+
}
|
551 |
+
// end of is_wp_built_in_role()
|
552 |
+
|
553 |
+
|
554 |
/*
|
555 |
* It's overriden in Pro version to add bbPress roles
|
556 |
*/
|
582 |
// end of get_custom_taxonomies()
|
583 |
|
584 |
}
|
585 |
+
// end of URE_Lib class
|
includes/classes/role-view.php
CHANGED
@@ -27,14 +27,8 @@ class URE_Role_View extends URE_View {
|
|
27 |
|
28 |
|
29 |
public function role_default_prepare_html($select_width=200) {
|
30 |
-
|
31 |
-
$roles = $this->
|
32 |
-
if (!isset($roles) || !$roles) {
|
33 |
-
// get roles data from database
|
34 |
-
$roles = $this->lib->get_user_roles();
|
35 |
-
}
|
36 |
-
ksort( $roles );
|
37 |
-
|
38 |
$caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
|
39 |
$show_admin_role = $this->lib->show_admin_role_allowed();
|
40 |
if ($select_width>0) {
|
@@ -48,12 +42,7 @@ class URE_Role_View extends URE_View {
|
|
48 |
$selected = selected($key, $wp_default_role, false);
|
49 |
$disabled = ($key==='administrator' && $caps_access_restrict_for_simple_admin && !$this->lib->is_super_admin()) ? 'disabled' : '';
|
50 |
if ($show_admin_role || $key != 'administrator') {
|
51 |
-
$
|
52 |
-
if ($translated_name === $value['name']) { // get WordPress internal translation
|
53 |
-
$translated_name = translate_user_role($translated_name);
|
54 |
-
}
|
55 |
-
$translated_name .= ' (' . $key . ')';
|
56 |
-
$this->role_default_html .= '<option value="' . $key . '" ' . $selected .' '. $disabled .'>' . $translated_name . '</option>';
|
57 |
}
|
58 |
}
|
59 |
$this->role_default_html .= '</select>';
|
@@ -75,9 +64,8 @@ class URE_Role_View extends URE_View {
|
|
75 |
<option value="none" selected="selected">' . esc_html__('None', 'user-role-editor') . '</option>';
|
76 |
$this->role_select_html = '<select id="user_role" name="user_role" onchange="ure_main.role_change( this.value );">';
|
77 |
$current_role = $this->editor->get( 'current_role' );
|
78 |
-
$all_roles = $this->editor->get( 'roles' );
|
79 |
$roles = $this->lib->get_editable_user_roles( $all_roles );
|
80 |
-
ksort( $roles );
|
81 |
foreach ($roles as $key => $value) {
|
82 |
if ( $key===$role_to_skip ) { // skip role of current user if he does not have full access to URE
|
83 |
continue;
|
@@ -85,13 +73,9 @@ class URE_Role_View extends URE_View {
|
|
85 |
$selected1 = selected( $key, $current_role, false );
|
86 |
$disabled = ( $key==='administrator' && $caps_access_restrict_for_simple_admin && !$this->lib->is_super_admin()) ? 'disabled' : '';
|
87 |
if ( $show_admin_role || $key != 'administrator' ) {
|
88 |
-
$
|
89 |
-
|
90 |
-
|
91 |
-
}
|
92 |
-
$translated_name .= ' (' . $key . ')';
|
93 |
-
$this->role_select_html .= '<option value="' . $key . '" ' . $selected1 .' '. $disabled .'>' . $translated_name . '</option>';
|
94 |
-
$this->role_to_copy_html .= '<option value="' . $key .'" '. $disabled .'>' . $translated_name . '</option>';
|
95 |
}
|
96 |
}
|
97 |
$this->role_select_html .= '</select>';
|
@@ -429,4 +413,4 @@ if ($multisite && !is_network_admin()) {
|
|
429 |
// end of display()
|
430 |
|
431 |
}
|
432 |
-
// end of class URE_Role_View
|
27 |
|
28 |
|
29 |
public function role_default_prepare_html($select_width=200) {
|
30 |
+
|
31 |
+
$roles = $this->lib->get_editable_user_roles();
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
$caps_access_restrict_for_simple_admin = $this->lib->get_option('caps_access_restrict_for_simple_admin', 0);
|
33 |
$show_admin_role = $this->lib->show_admin_role_allowed();
|
34 |
if ($select_width>0) {
|
42 |
$selected = selected($key, $wp_default_role, false);
|
43 |
$disabled = ($key==='administrator' && $caps_access_restrict_for_simple_admin && !$this->lib->is_super_admin()) ? 'disabled' : '';
|
44 |
if ($show_admin_role || $key != 'administrator') {
|
45 |
+
$this->role_default_html .= '<option value="' . $key . '" ' . $selected .' '. $disabled .'>'. $value['name'] .' (' . $key . ')</option>';
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
}
|
48 |
$this->role_default_html .= '</select>';
|
64 |
<option value="none" selected="selected">' . esc_html__('None', 'user-role-editor') . '</option>';
|
65 |
$this->role_select_html = '<select id="user_role" name="user_role" onchange="ure_main.role_change( this.value );">';
|
66 |
$current_role = $this->editor->get( 'current_role' );
|
67 |
+
$all_roles = $this->editor->get( 'roles' );
|
68 |
$roles = $this->lib->get_editable_user_roles( $all_roles );
|
|
|
69 |
foreach ($roles as $key => $value) {
|
70 |
if ( $key===$role_to_skip ) { // skip role of current user if he does not have full access to URE
|
71 |
continue;
|
73 |
$selected1 = selected( $key, $current_role, false );
|
74 |
$disabled = ( $key==='administrator' && $caps_access_restrict_for_simple_admin && !$this->lib->is_super_admin()) ? 'disabled' : '';
|
75 |
if ( $show_admin_role || $key != 'administrator' ) {
|
76 |
+
$role_name = $value['name'] .' (' . $key . ')';
|
77 |
+
$this->role_select_html .= '<option value="' . $key . '" ' . $selected1 .' '. $disabled .'>' . $role_name . '</option>';
|
78 |
+
$this->role_to_copy_html .= '<option value="' . $key .'" '. $disabled .'>' . $role_name . '</option>';
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
}
|
81 |
$this->role_select_html .= '</select>';
|
413 |
// end of display()
|
414 |
|
415 |
}
|
416 |
+
// end of class URE_Role_View
|
includes/classes/settings.php
CHANGED
@@ -189,8 +189,7 @@ class URE_Settings {
|
|
189 |
|
190 |
$lib = URE_Lib::get_instance();
|
191 |
$other_default_roles = $lib->get_option('other_default_roles', array());
|
192 |
-
$roles = $lib->
|
193 |
-
ksort( $roles );
|
194 |
$wp_default_role = get_option('default_role');
|
195 |
foreach ($roles as $role_id => $role) {
|
196 |
if ( $role_id=='administrator' || $role_id==$wp_default_role ) {
|
@@ -203,7 +202,7 @@ class URE_Settings {
|
|
203 |
}
|
204 |
echo '<label for="wp_role_' . $role_id .'"><input type="checkbox" id="wp_role_' . $role_id .
|
205 |
'" name="wp_role_' . $role_id . '" value="' . $role_id . '"' . $checked .' /> ' .
|
206 |
-
|
207 |
}
|
208 |
|
209 |
}
|
189 |
|
190 |
$lib = URE_Lib::get_instance();
|
191 |
$other_default_roles = $lib->get_option('other_default_roles', array());
|
192 |
+
$roles = $lib->get_editable_user_roles();
|
|
|
193 |
$wp_default_role = get_option('default_role');
|
194 |
foreach ($roles as $role_id => $role) {
|
195 |
if ( $role_id=='administrator' || $role_id==$wp_default_role ) {
|
202 |
}
|
203 |
echo '<label for="wp_role_' . $role_id .'"><input type="checkbox" id="wp_role_' . $role_id .
|
204 |
'" name="wp_role_' . $role_id . '" value="' . $role_id . '"' . $checked .' /> ' .
|
205 |
+
$role['name'] . '</label><br />';
|
206 |
}
|
207 |
|
208 |
}
|
includes/classes/user-role-editor.php
CHANGED
@@ -193,7 +193,7 @@ class User_Role_Editor {
|
|
193 |
|
194 |
if ( $pagenow=='site-users.php' ) {
|
195 |
// Try to execute before any other function linked to this filter
|
196 |
-
add_filter(
|
197 |
}
|
198 |
|
199 |
} else {
|
@@ -210,6 +210,8 @@ class User_Role_Editor {
|
|
210 |
|
211 |
add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
|
212 |
|
|
|
|
|
213 |
// Input parameter $roles_sorting_order = false by default
|
214 |
// Acceptable values:
|
215 |
// true - sort by role ID (for backward compatibility),
|
@@ -218,7 +220,7 @@ class User_Role_Editor {
|
|
218 |
$roles_sorting_order = apply_filters( 'ure_sort_wp_roles_list', false);
|
219 |
if ( !empty( $roles_sorting_order ) ) {
|
220 |
$this->lib->set('roles_sorting_order', $roles_sorting_order );
|
221 |
-
add_filter(
|
222 |
}
|
223 |
}
|
224 |
// end of plugin_init()
|
@@ -480,6 +482,16 @@ class User_Role_Editor {
|
|
480 |
|
481 |
load_plugin_textdomain('user-role-editor', '', dirname( plugin_basename( URE_PLUGIN_FULL_PATH ) ) .'/lang');
|
482 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
}
|
484 |
// end of ure_load_translation()
|
485 |
|
@@ -568,12 +580,11 @@ class User_Role_Editor {
|
|
568 |
|
569 |
public function plugin_menu() {
|
570 |
|
571 |
-
$translated_title = esc_html__('User Role Editor', 'user-role-editor');
|
572 |
if (function_exists('add_submenu_page')) {
|
573 |
$ure_page = add_submenu_page(
|
574 |
'users.php',
|
575 |
-
|
576 |
-
|
577 |
'ure_edit_roles',
|
578 |
'users-' . URE_PLUGIN_FILE,
|
579 |
array($this, 'edit_roles'));
|
@@ -585,8 +596,8 @@ class User_Role_Editor {
|
|
585 |
if ( !$multisite || ($multisite && !$active_for_network) ) {
|
586 |
$settings_capability = URE_Own_Capabilities::get_settings_capability();
|
587 |
$this->settings_page_hook = add_options_page(
|
588 |
-
|
589 |
-
|
590 |
$settings_capability,
|
591 |
'settings-' . URE_PLUGIN_FILE,
|
592 |
array($this, 'settings'));
|
@@ -599,11 +610,10 @@ class User_Role_Editor {
|
|
599 |
|
600 |
public function network_plugin_menu() {
|
601 |
if (is_multisite()) {
|
602 |
-
$translated_title = esc_html__('User Role Editor', 'user-role-editor');
|
603 |
$this->settings_page_hook = add_submenu_page(
|
604 |
'settings.php',
|
605 |
-
|
606 |
-
|
607 |
$this->key_capability,
|
608 |
'settings-' . URE_PLUGIN_FILE,
|
609 |
array(&$this, 'settings'));
|
@@ -843,6 +853,24 @@ class User_Role_Editor {
|
|
843 |
}
|
844 |
// end of set_role_additional_options_hooks()
|
845 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
846 |
|
847 |
/**
|
848 |
* Sort roles array alphabetically
|
@@ -855,24 +883,26 @@ class User_Role_Editor {
|
|
855 |
if ( $roles_sorting_order==='id' || $roles_sorting_order===true ) {
|
856 |
// sort by role ID
|
857 |
ksort( $roles );
|
|
|
858 |
} else if ( $roles_sorting_order==='name') {
|
859 |
// sort by role name
|
860 |
-
|
|
|
861 |
} else {
|
862 |
// change nothing
|
863 |
return $roles;
|
864 |
}
|
865 |
-
// wp-admin/includes/template
|
866 |
// $editable_roles = array_reverse( get_editable_roles() );
|
867 |
-
// so we
|
868 |
-
|
869 |
|
870 |
return $roles;
|
871 |
}
|
872 |
// end of sort_wp_roles_list()
|
873 |
|
874 |
|
875 |
-
/** Currently WordPress (tested up to version 5.
|
876 |
/* but should use roles list from the selected site. This function replaces roles list with roles from the selected site and
|
877 |
* excludes error messsage "Sorry, you are not allowed to give users that role.", when you try to grant to a user a role which does not exist at the selected site.
|
878 |
*
|
@@ -903,13 +933,40 @@ class User_Role_Editor {
|
|
903 |
return $roles1;
|
904 |
}
|
905 |
// end of fix_network_admin_roles_dropdown()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
906 |
|
907 |
|
908 |
// execute on plugin deactivation
|
909 |
public function cleanup() {
|
910 |
|
911 |
}
|
912 |
-
// end of
|
913 |
|
914 |
|
915 |
// excute on plugin uninstall via WordPress->Plugins->Delete
|
193 |
|
194 |
if ( $pagenow=='site-users.php' ) {
|
195 |
// Try to execute before any other function linked to this filter
|
196 |
+
add_filter('editable_roles', array($this, 'fix_network_admin_roles_dropdown'), 9 );
|
197 |
}
|
198 |
|
199 |
} else {
|
210 |
|
211 |
add_action('wp_ajax_ure_ajax', array($this, 'ure_ajax'));
|
212 |
|
213 |
+
add_action('editable_roles', array( $this, 'translate_custom_roles' ), 10, 1 );
|
214 |
+
|
215 |
// Input parameter $roles_sorting_order = false by default
|
216 |
// Acceptable values:
|
217 |
// true - sort by role ID (for backward compatibility),
|
220 |
$roles_sorting_order = apply_filters( 'ure_sort_wp_roles_list', false);
|
221 |
if ( !empty( $roles_sorting_order ) ) {
|
222 |
$this->lib->set('roles_sorting_order', $roles_sorting_order );
|
223 |
+
add_filter('editable_roles', array( $this, 'sort_wp_roles_list' ), 11, 1 );
|
224 |
}
|
225 |
}
|
226 |
// end of plugin_init()
|
482 |
|
483 |
load_plugin_textdomain('user-role-editor', '', dirname( plugin_basename( URE_PLUGIN_FULL_PATH ) ) .'/lang');
|
484 |
|
485 |
+
if ( function_exists('pll_register_string') ) {
|
486 |
+
// Integration with PolyLang plugin (https://wordpress.org/plugins/polylang/)
|
487 |
+
$all_roles = wp_roles()->roles;
|
488 |
+
foreach( $all_roles as $role_id=>$role ) {
|
489 |
+
if ( !$this->lib->is_wp_built_in_role( $role_id ) ) {
|
490 |
+
pll_register_string( $role_id, $role['name'], 'user-role-editor' );
|
491 |
+
}
|
492 |
+
}
|
493 |
+
}
|
494 |
+
|
495 |
}
|
496 |
// end of ure_load_translation()
|
497 |
|
580 |
|
581 |
public function plugin_menu() {
|
582 |
|
|
|
583 |
if (function_exists('add_submenu_page')) {
|
584 |
$ure_page = add_submenu_page(
|
585 |
'users.php',
|
586 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
587 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
588 |
'ure_edit_roles',
|
589 |
'users-' . URE_PLUGIN_FILE,
|
590 |
array($this, 'edit_roles'));
|
596 |
if ( !$multisite || ($multisite && !$active_for_network) ) {
|
597 |
$settings_capability = URE_Own_Capabilities::get_settings_capability();
|
598 |
$this->settings_page_hook = add_options_page(
|
599 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
600 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
601 |
$settings_capability,
|
602 |
'settings-' . URE_PLUGIN_FILE,
|
603 |
array($this, 'settings'));
|
610 |
|
611 |
public function network_plugin_menu() {
|
612 |
if (is_multisite()) {
|
|
|
613 |
$this->settings_page_hook = add_submenu_page(
|
614 |
'settings.php',
|
615 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
616 |
+
esc_html__('User Role Editor', 'user-role-editor'),
|
617 |
$this->key_capability,
|
618 |
'settings-' . URE_PLUGIN_FILE,
|
619 |
array(&$this, 'settings'));
|
853 |
}
|
854 |
// end of set_role_additional_options_hooks()
|
855 |
|
856 |
+
|
857 |
+
private function sort_roles_by_name( $roles ) {
|
858 |
+
|
859 |
+
$role_names = array();
|
860 |
+
foreach( $roles as $role_id=>$role ) {
|
861 |
+
$role_names[$role_id] = $role['name'];
|
862 |
+
}
|
863 |
+
asort( $role_names );
|
864 |
+
|
865 |
+
$roles1 = array();
|
866 |
+
foreach( $role_names as $role_id=>$role_name ) {
|
867 |
+
$roles1[$role_id] = $roles[$role_id];
|
868 |
+
}
|
869 |
+
|
870 |
+
return $roles1;
|
871 |
+
}
|
872 |
+
// end of sort_roles_by_name()
|
873 |
+
|
874 |
|
875 |
/**
|
876 |
* Sort roles array alphabetically
|
883 |
if ( $roles_sorting_order==='id' || $roles_sorting_order===true ) {
|
884 |
// sort by role ID
|
885 |
ksort( $roles );
|
886 |
+
return $roles;
|
887 |
} else if ( $roles_sorting_order==='name') {
|
888 |
// sort by role name
|
889 |
+
$roles1 = $this->sort_roles_by_name( $roles );
|
890 |
+
return $roles1;
|
891 |
} else {
|
892 |
// change nothing
|
893 |
return $roles;
|
894 |
}
|
895 |
+
// wp-admin/includes/template.php: wp_dropdown_roles() showed roles returned by get_editable_roles() in reversed order, #932:
|
896 |
// $editable_roles = array_reverse( get_editable_roles() );
|
897 |
+
// so we may need to reverse them 1st, in order they will be reversed back to the ascending order
|
898 |
+
//$roles = array_reverse( $roles );
|
899 |
|
900 |
return $roles;
|
901 |
}
|
902 |
// end of sort_wp_roles_list()
|
903 |
|
904 |
|
905 |
+
/** Currently WordPress (tested up to version 5.9.3) shows "Change role to..." drop-down list at Network admin->Sites->selected site->Users with roles filled from the main site,
|
906 |
/* but should use roles list from the selected site. This function replaces roles list with roles from the selected site and
|
907 |
* excludes error messsage "Sorry, you are not allowed to give users that role.", when you try to grant to a user a role which does not exist at the selected site.
|
908 |
*
|
933 |
return $roles1;
|
934 |
}
|
935 |
// end of fix_network_admin_roles_dropdown()
|
936 |
+
|
937 |
+
|
938 |
+
/*
|
939 |
+
* Translate user role names, inluding custom roles added by user
|
940 |
+
*
|
941 |
+
*/
|
942 |
+
function translate_custom_roles( $roles ) {
|
943 |
+
|
944 |
+
foreach ($roles as $key => $value) {
|
945 |
+
$translated_name = esc_html__( $value['name'], 'user-role-editor' ); // get translation from URE language file, if exists
|
946 |
+
if ( $translated_name === $value['name'] ) {
|
947 |
+
if ( $this->lib->is_wp_built_in_role( $key ) ) {
|
948 |
+
// get WordPress internal translation
|
949 |
+
$translated_name = translate_user_role( $translated_name );
|
950 |
+
} elseif ( function_exists('pll_register_string') ) {
|
951 |
+
// Integration with PolyLang plugin (https://wordpress.org/plugins/polylang/)
|
952 |
+
$translated_name = pll__( $translated_name );
|
953 |
+
}
|
954 |
+
}
|
955 |
+
$roles[$key]['name'] = $translated_name;
|
956 |
+
}
|
957 |
+
|
958 |
+
$roles = apply_filters('ure_editable_roles', $roles );
|
959 |
+
|
960 |
+
return $roles;
|
961 |
+
}
|
962 |
+
// end of translate_custom_roles()
|
963 |
|
964 |
|
965 |
// execute on plugin deactivation
|
966 |
public function cleanup() {
|
967 |
|
968 |
}
|
969 |
+
// end of cleanup()
|
970 |
|
971 |
|
972 |
// excute on plugin uninstall via WordPress->Plugins->Delete
|
includes/classes/user-view.php
CHANGED
@@ -192,7 +192,7 @@ class URE_User_View extends URE_View {
|
|
192 |
$this->show_secondary_roles();
|
193 |
?>
|
194 |
</td>
|
195 |
-
<td style="padding-left: 5px; padding-top: 5px; border-top: 1px solid #ccc;">
|
196 |
<?php $this->display_caps(false, $edit_user_caps_mode ); ?>
|
197 |
</td>
|
198 |
</tr>
|
192 |
$this->show_secondary_roles();
|
193 |
?>
|
194 |
</td>
|
195 |
+
<td style="padding-left: 5px; padding-top: 5px; border-top: 1px solid #ccc; vertical-align: top;">
|
196 |
<?php $this->display_caps(false, $edit_user_caps_mode ); ?>
|
197 |
</td>
|
198 |
</tr>
|
js/users-grant-roles.js
CHANGED
@@ -93,7 +93,7 @@ function ure_show_grant_roles_dialog() {
|
|
93 |
modal: true,
|
94 |
autoOpen: true,
|
95 |
closeOnEscape: true,
|
96 |
-
width:
|
97 |
height: 400,
|
98 |
resizable: false,
|
99 |
title: ure_users_grant_roles_data.dialog_title,
|
93 |
modal: true,
|
94 |
autoOpen: true,
|
95 |
closeOnEscape: true,
|
96 |
+
width: 600,
|
97 |
height: 400,
|
98 |
resizable: false,
|
99 |
title: ure_users_grant_roles_data.dialog_title,
|
lang/user-role-editor.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: User Role Editor 4.59.1\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date:
|
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"
|
@@ -17,67 +17,71 @@ msgstr ""
|
|
17 |
"X-Generator: Poedit 2.3\n"
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
|
20 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
21 |
msgid "Custom Post Types"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
25 |
-
#: ../includes/classes/editor.php:
|
26 |
-
#: ../includes/classes/user-role-editor.php:
|
27 |
-
#: ../includes/classes/user-role-editor.php:
|
|
|
|
|
|
|
|
|
28 |
msgid "User Role Editor"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
32 |
msgid "WooCommerce"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
36 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
37 |
msgid "Core"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
41 |
msgid "All"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
45 |
-
#: ../includes/classes/user-role-editor.php:
|
46 |
#: ../includes/settings-template.php:20
|
47 |
msgid "General"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
51 |
msgid "Themes"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
55 |
msgid "Posts"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
59 |
msgid "Pages"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
63 |
msgid "Plugins"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
67 |
msgid "Users"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
71 |
-
#: ../includes/classes/user-role-editor.php:
|
72 |
#: ../includes/settings-template.php:36
|
73 |
msgid "Multisite"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
77 |
msgid "Deprecated"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: ../includes/classes/capabilities-groups-manager.php:
|
81 |
msgid "Custom capabilities"
|
82 |
msgstr ""
|
83 |
|
@@ -85,47 +89,47 @@ msgstr ""
|
|
85 |
msgid "Error: Capability name must contain latin characters and digits only!"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: ../includes/classes/capability.php:
|
89 |
msgid "Error: this capability is used internally by WordPress"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: ../includes/classes/capability.php:
|
93 |
msgid "Error: this word is used by WordPress as a role ID"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: ../includes/classes/capability.php:
|
97 |
-
#: ../includes/classes/editor.php:
|
98 |
-
#: ../includes/classes/editor.php:
|
99 |
-
#: ../includes/classes/editor.php:
|
100 |
-
#: ../includes/classes/user-role-editor.php:
|
101 |
msgid "Insufficient permissions to work with User Role Editor"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: ../includes/classes/capability.php:
|
105 |
msgid "Wrong Request"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: ../includes/classes/capability.php:
|
109 |
#, php-format
|
110 |
msgid "Capability %s was added successfully"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: ../includes/classes/capability.php:
|
114 |
#, php-format
|
115 |
msgid "Capability %s exists already"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../includes/classes/capability.php:
|
119 |
-
#: ../includes/classes/capability.php:
|
120 |
msgid "There are no capabilities available for deletion!"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: ../includes/classes/capability.php:
|
124 |
#, php-format
|
125 |
msgid "Capability %s was removed successfully"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: ../includes/classes/capability.php:
|
129 |
msgid "capabilities were removed successfully"
|
130 |
msgstr ""
|
131 |
|
@@ -145,390 +149,390 @@ msgstr ""
|
|
145 |
msgid "does not exist"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: ../includes/classes/editor.php:
|
149 |
msgid "Role is updated successfully"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: ../includes/classes/editor.php:
|
153 |
msgid "Roles are updated for all network"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: ../includes/classes/editor.php:
|
157 |
msgid "Error occurred during role(s) update"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: ../includes/classes/editor.php:
|
161 |
msgid "User capabilities are updated successfully"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: ../includes/classes/editor.php:
|
165 |
msgid "Error occurred during user update"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: ../includes/classes/editor.php:
|
169 |
msgid "Error: Role ID is empty!"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: ../includes/classes/editor.php:
|
173 |
msgid ""
|
174 |
"Error: Role ID must contain latin characters, digits, hyphens or underscore "
|
175 |
"only!"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: ../includes/classes/editor.php:
|
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:
|
185 |
#, php-format
|
186 |
msgid "Role %s exists already"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: ../includes/classes/editor.php:
|
190 |
msgid "Error is encountered during new role create operation"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: ../includes/classes/editor.php:
|
194 |
#, php-format
|
195 |
msgid "Role %s is created successfully"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: ../includes/classes/editor.php:
|
199 |
msgid "Error: Empty role display name is not allowed."
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: ../includes/classes/editor.php:
|
203 |
#, php-format
|
204 |
msgid "Role %s does not exists"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../includes/classes/editor.php:
|
208 |
#, php-format
|
209 |
msgid "Role %s is renamed to %s successfully"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: ../includes/classes/editor.php:
|
213 |
msgid "Role does not exist"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: ../includes/classes/editor.php:
|
217 |
msgid "You can not delete role"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: ../includes/classes/editor.php:
|
221 |
msgid "There are no roles for deletion"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: ../includes/classes/editor.php:
|
225 |
msgid "Wrong role ID"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: ../includes/classes/editor.php:
|
229 |
msgid "Unused roles are deleted successfully"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: ../includes/classes/editor.php:
|
233 |
#, php-format
|
234 |
msgid "Role %s is deleted successfully"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: ../includes/classes/editor.php:
|
238 |
msgid ""
|
239 |
"This method is only for a single site of WordPress multisite installation."
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../includes/classes/editor.php:
|
243 |
msgid "Wrong request. Default role can not be empty"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../includes/classes/editor.php:
|
247 |
#, php-format
|
248 |
msgid "Default role for new users is set to %s successfully"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: ../includes/classes/editor.php:
|
252 |
msgid "Error encountered during default role change operation"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: ../includes/classes/editor.php:
|
256 |
msgid "Can not set Administrator role as a default one"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: ../includes/classes/editor.php:
|
260 |
msgid "This role does not exist - "
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: ../includes/classes/editor.php:
|
264 |
msgid "User Roles are restored to WordPress default values. "
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: ../includes/classes/editor.php:
|
268 |
msgid "Error: wrong request"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: ../includes/classes/editor.php:
|
272 |
msgid "Editor"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: ../includes/classes/editor.php:
|
276 |
msgid "Author"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: ../includes/classes/editor.php:
|
280 |
msgid "Contributor"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: ../includes/classes/editor.php:
|
284 |
msgid "Subscriber"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: ../includes/classes/editor.php:
|
288 |
msgid "Switch themes"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../includes/classes/editor.php:
|
292 |
msgid "Edit themes"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: ../includes/classes/editor.php:
|
296 |
msgid "Activate plugins"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: ../includes/classes/editor.php:
|
300 |
msgid "Edit plugins"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: ../includes/classes/editor.php:
|
304 |
msgid "Edit users"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../includes/classes/editor.php:
|
308 |
msgid "Edit files"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: ../includes/classes/editor.php:
|
312 |
msgid "Manage options"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: ../includes/classes/editor.php:
|
316 |
msgid "Moderate comments"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: ../includes/classes/editor.php:
|
320 |
msgid "Manage categories"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: ../includes/classes/editor.php:
|
324 |
msgid "Manage links"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: ../includes/classes/editor.php:
|
328 |
msgid "Upload files"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: ../includes/classes/editor.php:
|
332 |
msgid "Import"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: ../includes/classes/editor.php:
|
336 |
msgid "Unfiltered html"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: ../includes/classes/editor.php:
|
340 |
msgid "Edit posts"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: ../includes/classes/editor.php:
|
344 |
msgid "Edit others posts"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: ../includes/classes/editor.php:
|
348 |
msgid "Edit published posts"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: ../includes/classes/editor.php:
|
352 |
msgid "Publish posts"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: ../includes/classes/editor.php:
|
356 |
msgid "Edit pages"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: ../includes/classes/editor.php:
|
360 |
msgid "Read"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: ../includes/classes/editor.php:
|
364 |
msgid "Level 10"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: ../includes/classes/editor.php:
|
368 |
msgid "Level 9"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../includes/classes/editor.php:
|
372 |
msgid "Level 8"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../includes/classes/editor.php:
|
376 |
msgid "Level 7"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: ../includes/classes/editor.php:
|
380 |
msgid "Level 6"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: ../includes/classes/editor.php:
|
384 |
msgid "Level 5"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: ../includes/classes/editor.php:
|
388 |
msgid "Level 4"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: ../includes/classes/editor.php:
|
392 |
msgid "Level 3"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: ../includes/classes/editor.php:
|
396 |
msgid "Level 2"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: ../includes/classes/editor.php:
|
400 |
msgid "Level 1"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: ../includes/classes/editor.php:
|
404 |
msgid "Level 0"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: ../includes/classes/editor.php:
|
408 |
msgid "Edit others pages"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: ../includes/classes/editor.php:
|
412 |
msgid "Edit published pages"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: ../includes/classes/editor.php:
|
416 |
msgid "Publish pages"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: ../includes/classes/editor.php:
|
420 |
msgid "Delete pages"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: ../includes/classes/editor.php:
|
424 |
msgid "Delete others pages"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: ../includes/classes/editor.php:
|
428 |
msgid "Delete published pages"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../includes/classes/editor.php:
|
432 |
msgid "Delete posts"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: ../includes/classes/editor.php:
|
436 |
msgid "Delete others posts"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: ../includes/classes/editor.php:
|
440 |
msgid "Delete published posts"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: ../includes/classes/editor.php:
|
444 |
msgid "Delete private posts"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: ../includes/classes/editor.php:
|
448 |
msgid "Edit private posts"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: ../includes/classes/editor.php:
|
452 |
msgid "Read private posts"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: ../includes/classes/editor.php:
|
456 |
msgid "Delete private pages"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: ../includes/classes/editor.php:
|
460 |
msgid "Edit private pages"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: ../includes/classes/editor.php:
|
464 |
msgid "Read private pages"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: ../includes/classes/editor.php:
|
468 |
msgid "Delete users"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: ../includes/classes/editor.php:
|
472 |
msgid "Create users"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: ../includes/classes/editor.php:
|
476 |
msgid "Unfiltered upload"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: ../includes/classes/editor.php:
|
480 |
msgid "Edit dashboard"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: ../includes/classes/editor.php:
|
484 |
msgid "Update plugins"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: ../includes/classes/editor.php:
|
488 |
msgid "Delete plugins"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: ../includes/classes/editor.php:
|
492 |
msgid "Install plugins"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: ../includes/classes/editor.php:
|
496 |
msgid "Update themes"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: ../includes/classes/editor.php:
|
500 |
msgid "Install themes"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: ../includes/classes/editor.php:
|
504 |
msgid "Update core"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: ../includes/classes/editor.php:
|
508 |
msgid "List users"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: ../includes/classes/editor.php:
|
512 |
msgid "Remove users"
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: ../includes/classes/editor.php:
|
516 |
msgid "Add users"
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: ../includes/classes/editor.php:
|
520 |
msgid "Promote users"
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: ../includes/classes/editor.php:
|
524 |
msgid "Edit theme options"
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: ../includes/classes/editor.php:
|
528 |
msgid "Delete themes"
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: ../includes/classes/editor.php:
|
532 |
msgid "Export"
|
533 |
msgstr ""
|
534 |
|
@@ -623,7 +627,7 @@ msgstr ""
|
|
623 |
msgid "Plugin download"
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: ../includes/classes/lib.php:387 ../includes/classes/user-role-editor.php:
|
627 |
msgid "Changelog"
|
628 |
msgstr ""
|
629 |
|
@@ -639,52 +643,52 @@ msgstr ""
|
|
639 |
msgid "Additional Options"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: ../includes/classes/role-view.php:
|
643 |
msgid "None"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: ../includes/classes/role-view.php:
|
647 |
msgid "Delete All Unused Roles"
|
648 |
msgstr ""
|
649 |
|
650 |
-
#: ../includes/classes/role-view.php:
|
651 |
msgid "Role name (ID): "
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: ../includes/classes/role-view.php:
|
655 |
msgid "Display Role Name: "
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: ../includes/classes/role-view.php:
|
659 |
msgid "Make copy of: "
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: ../includes/classes/role-view.php:
|
663 |
msgid "Select Role:"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: ../includes/classes/role-view.php:
|
667 |
msgid "Capability name (ID): "
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: ../includes/classes/role-view.php:
|
671 |
msgid "Show capabilities in human readable form"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: ../includes/classes/role-view.php:
|
675 |
#: ../includes/classes/user-view.php:164 ../includes/settings-template.php:78
|
676 |
msgid "Show deprecated capabilities"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: ../includes/classes/role-view.php:
|
680 |
msgid "If checked, then apply action to ALL sites of this Network"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: ../includes/classes/role-view.php:
|
684 |
msgid "Apply to All Sites"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: ../includes/classes/role-view.php:
|
688 |
msgid "Select Role and change its capabilities:"
|
689 |
msgstr ""
|
690 |
|
@@ -787,43 +791,43 @@ msgstr ""
|
|
787 |
msgid "Default Roles are updated"
|
788 |
msgstr ""
|
789 |
|
790 |
-
#: ../includes/classes/tools.php:
|
791 |
msgid "WARNING!"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: ../includes/classes/tools.php:
|
795 |
msgid ""
|
796 |
"Resetting will setup default user roles and capabilities from WordPress core."
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: ../includes/classes/tools.php:
|
800 |
msgid ""
|
801 |
"If any plugins (such as WooCommerce, S2Member and many others) have changed "
|
802 |
"user roles and capabilities during installation, those changes will be LOST!"
|
803 |
msgstr ""
|
804 |
|
805 |
-
#: ../includes/classes/tools.php:
|
806 |
msgid ""
|
807 |
"For more information on how to undo undesired changes and restore plugins "
|
808 |
"capabilities in case you lost them by mistake go to: "
|
809 |
msgstr ""
|
810 |
|
811 |
-
#: ../includes/classes/tools.php:
|
812 |
msgid ""
|
813 |
"If checked, then apply action to ALL sites. Main site only is affected in "
|
814 |
"other case."
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: ../includes/classes/tools.php:
|
818 |
msgid "Reset Roles to its original state"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: ../includes/classes/tools.php:
|
822 |
-
#: ../includes/classes/user-role-editor.php:
|
823 |
msgid "Reset"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: ../includes/classes/tools.php:
|
827 |
msgid "Tools: Reset: User Roles were initialized"
|
828 |
msgstr ""
|
829 |
|
@@ -842,7 +846,7 @@ msgid "Denied: %s"
|
|
842 |
msgstr ""
|
843 |
|
844 |
#: ../includes/classes/user-other-roles.php:238
|
845 |
-
#: ../includes/classes/user-role-editor.php:
|
846 |
msgid "Capabilities"
|
847 |
msgstr ""
|
848 |
|
@@ -854,169 +858,168 @@ msgstr ""
|
|
854 |
msgid "Additional Capabilities"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: ../includes/classes/user-role-editor.php:
|
858 |
msgid "Change role for users without role"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: ../includes/classes/user-role-editor.php:
|
862 |
msgid "To:"
|
863 |
msgstr ""
|
864 |
|
865 |
-
#: ../includes/classes/user-role-editor.php:
|
866 |
msgid "No rights"
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: ../includes/classes/user-role-editor.php:
|
870 |
msgid "Provide new role"
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: ../includes/classes/user-role-editor.php:368
|
874 |
#: ../includes/classes/user-role-editor.php:370
|
|
|
875 |
msgid "You do not have permission to edit this user."
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: ../includes/classes/user-role-editor.php:
|
879 |
-
#: ../includes/classes/user-role-editor.php:
|
880 |
msgid "Settings"
|
881 |
msgstr ""
|
882 |
|
883 |
-
#: ../includes/classes/user-role-editor.php:
|
884 |
#: ../includes/settings-template.php:26
|
885 |
msgid "Additional Modules"
|
886 |
msgstr ""
|
887 |
|
888 |
-
#: ../includes/classes/user-role-editor.php:
|
889 |
#: ../includes/settings-template.php:31
|
890 |
msgid "Default Roles"
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: ../includes/classes/user-role-editor.php:
|
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:
|
900 |
-
#: ../includes/classes/user-role-editor.php:
|
901 |
msgid "Confirm"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: ../includes/classes/user-role-editor.php:
|
905 |
-
#: ../includes/classes/user-role-editor.php:
|
906 |
msgid "Yes"
|
907 |
msgstr ""
|
908 |
|
909 |
-
#: ../includes/classes/user-role-editor.php:
|
910 |
-
#: ../includes/classes/user-role-editor.php:
|
911 |
msgid "No"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: ../includes/classes/user-role-editor.php:
|
915 |
msgid "Update"
|
916 |
msgstr ""
|
917 |
|
918 |
-
#: ../includes/classes/user-role-editor.php:
|
919 |
msgid "Please confirm permissions update"
|
920 |
msgstr ""
|
921 |
|
922 |
-
#: ../includes/classes/user-role-editor.php:
|
923 |
msgid "Add New Role"
|
924 |
msgstr ""
|
925 |
|
926 |
-
#: ../includes/classes/user-role-editor.php:
|
927 |
-
#: ../includes/classes/user-role-editor.php:
|
928 |
msgid "Rename Role"
|
929 |
msgstr ""
|
930 |
|
931 |
-
#: ../includes/classes/user-role-editor.php:
|
932 |
msgid " Role name (ID) can not be empty!"
|
933 |
msgstr ""
|
934 |
|
935 |
-
#: ../includes/classes/user-role-editor.php:
|
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:
|
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:
|
948 |
msgid "Add Role"
|
949 |
msgstr ""
|
950 |
|
951 |
-
#: ../includes/classes/user-role-editor.php:
|
952 |
msgid "Delete Role"
|
953 |
msgstr ""
|
954 |
|
955 |
-
#: ../includes/classes/user-role-editor.php:
|
956 |
msgid "Cancel"
|
957 |
msgstr ""
|
958 |
|
959 |
-
#: ../includes/classes/user-role-editor.php:
|
960 |
msgid "Add Capability"
|
961 |
msgstr ""
|
962 |
|
963 |
-
#: ../includes/classes/user-role-editor.php:
|
964 |
-
#: ../includes/classes/user-role-editor.php:
|
965 |
msgid "Delete Capability"
|
966 |
msgstr ""
|
967 |
|
968 |
-
#: ../includes/classes/user-role-editor.php:
|
969 |
-
#: ../includes/classes/user-role-editor.php:798
|
970 |
-
msgid "Continue?"
|
971 |
-
msgstr ""
|
972 |
-
|
973 |
-
#: ../includes/classes/user-role-editor.php:759
|
974 |
msgid "Default Role"
|
975 |
msgstr ""
|
976 |
|
977 |
-
#: ../includes/classes/user-role-editor.php:
|
978 |
msgid "Set New Default Role"
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: ../includes/classes/user-role-editor.php:
|
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:
|
988 |
msgid " Capability name (ID) can not be empty!"
|
989 |
msgstr ""
|
990 |
|
991 |
-
#: ../includes/classes/user-role-editor.php:
|
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:
|
998 |
msgid "DANGER!"
|
999 |
msgstr ""
|
1000 |
|
1001 |
-
#: ../includes/classes/user-role-editor.php:
|
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:
|
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:
|
1015 |
msgid ""
|
1016 |
"For more information on how to undo undesired changes and restore plugin "
|
1017 |
"capabilities go to"
|
1018 |
msgstr ""
|
1019 |
|
|
|
|
|
|
|
|
|
1020 |
#: ../includes/classes/user-view.php:59
|
1021 |
msgid "Switch To"
|
1022 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: User Role Editor 4.59.1\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2022-04-27 10:29+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"
|
17 |
"X-Generator: Poedit 2.3\n"
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
|
20 |
+
#: ../includes/classes/capabilities-groups-manager.php:45
|
21 |
msgid "Custom Post Types"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: ../includes/classes/capabilities-groups-manager.php:84
|
25 |
+
#: ../includes/classes/editor.php:1483
|
26 |
+
#: ../includes/classes/user-role-editor.php:586
|
27 |
+
#: ../includes/classes/user-role-editor.php:587
|
28 |
+
#: ../includes/classes/user-role-editor.php:599
|
29 |
+
#: ../includes/classes/user-role-editor.php:600
|
30 |
+
#: ../includes/classes/user-role-editor.php:615
|
31 |
+
#: ../includes/classes/user-role-editor.php:616
|
32 |
msgid "User Role Editor"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../includes/classes/capabilities-groups-manager.php:103
|
36 |
msgid "WooCommerce"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../includes/classes/capabilities-groups-manager.php:108
|
40 |
+
#: ../includes/classes/capabilities-groups-manager.php:135
|
41 |
msgid "Core"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../includes/classes/capabilities-groups-manager.php:130
|
45 |
msgid "All"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: ../includes/classes/capabilities-groups-manager.php:140
|
49 |
+
#: ../includes/classes/user-role-editor.php:555
|
50 |
#: ../includes/settings-template.php:20
|
51 |
msgid "General"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: ../includes/classes/capabilities-groups-manager.php:145
|
55 |
msgid "Themes"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: ../includes/classes/capabilities-groups-manager.php:150
|
59 |
msgid "Posts"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: ../includes/classes/capabilities-groups-manager.php:155
|
63 |
msgid "Pages"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: ../includes/classes/capabilities-groups-manager.php:160
|
67 |
msgid "Plugins"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: ../includes/classes/capabilities-groups-manager.php:165
|
71 |
msgid "Users"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: ../includes/classes/capabilities-groups-manager.php:187
|
75 |
+
#: ../includes/classes/user-role-editor.php:573
|
76 |
#: ../includes/settings-template.php:36
|
77 |
msgid "Multisite"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: ../includes/classes/capabilities-groups-manager.php:194
|
81 |
msgid "Deprecated"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: ../includes/classes/capabilities-groups-manager.php:201
|
85 |
msgid "Custom capabilities"
|
86 |
msgstr ""
|
87 |
|
89 |
msgid "Error: Capability name must contain latin characters and digits only!"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../includes/classes/capability.php:48
|
93 |
msgid "Error: this capability is used internally by WordPress"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: ../includes/classes/capability.php:56
|
97 |
msgid "Error: this word is used by WordPress as a role ID"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../includes/classes/capability.php:89 ../includes/classes/capability.php:209
|
101 |
+
#: ../includes/classes/editor.php:950 ../includes/classes/editor.php:1019
|
102 |
+
#: ../includes/classes/editor.php:1070 ../includes/classes/editor.php:1131
|
103 |
+
#: ../includes/classes/editor.php:1277 ../includes/classes/editor.php:1319
|
104 |
+
#: ../includes/classes/user-role-editor.php:665
|
105 |
msgid "Insufficient permissions to work with User Role Editor"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../includes/classes/capability.php:95
|
109 |
msgid "Wrong Request"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../includes/classes/capability.php:115
|
113 |
#, php-format
|
114 |
msgid "Capability %s was added successfully"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../includes/classes/capability.php:117
|
118 |
#, php-format
|
119 |
msgid "Capability %s exists already"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: ../includes/classes/capability.php:216
|
123 |
+
#: ../includes/classes/capability.php:221
|
124 |
msgid "There are no capabilities available for deletion!"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: ../includes/classes/capability.php:227
|
128 |
#, php-format
|
129 |
msgid "Capability %s was removed successfully"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: ../includes/classes/capability.php:231
|
133 |
msgid "capabilities were removed successfully"
|
134 |
msgstr ""
|
135 |
|
149 |
msgid "does not exist"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../includes/classes/editor.php:902
|
153 |
msgid "Role is updated successfully"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../includes/classes/editor.php:904
|
157 |
msgid "Roles are updated for all network"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: ../includes/classes/editor.php:907
|
161 |
msgid "Error occurred during role(s) update"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: ../includes/classes/editor.php:911
|
165 |
msgid "User capabilities are updated successfully"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: ../includes/classes/editor.php:913
|
169 |
msgid "Error occurred during user update"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: ../includes/classes/editor.php:983
|
173 |
msgid "Error: Role ID is empty!"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: ../includes/classes/editor.php:992
|
177 |
msgid ""
|
178 |
"Error: Role ID must contain latin characters, digits, hyphens or underscore "
|
179 |
"only!"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: ../includes/classes/editor.php:998
|
183 |
msgid ""
|
184 |
"Error: WordPress does not support numeric Role name (ID). Add latin "
|
185 |
"characters to it."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: ../includes/classes/editor.php:1032
|
189 |
#, php-format
|
190 |
msgid "Role %s exists already"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../includes/classes/editor.php:1051
|
194 |
msgid "Error is encountered during new role create operation"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../includes/classes/editor.php:1058
|
198 |
#, php-format
|
199 |
msgid "Role %s is created successfully"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: ../includes/classes/editor.php:1143
|
203 |
msgid "Error: Empty role display name is not allowed."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: ../includes/classes/editor.php:1150
|
207 |
#, php-format
|
208 |
msgid "Role %s does not exists"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../includes/classes/editor.php:1163
|
212 |
#, php-format
|
213 |
msgid "Role %s is renamed to %s successfully"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: ../includes/classes/editor.php:1228
|
217 |
msgid "Role does not exist"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: ../includes/classes/editor.php:1232
|
221 |
msgid "You can not delete role"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: ../includes/classes/editor.php:1258
|
225 |
msgid "There are no roles for deletion"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: ../includes/classes/editor.php:1286
|
229 |
msgid "Wrong role ID"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: ../includes/classes/editor.php:1295
|
233 |
msgid "Unused roles are deleted successfully"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: ../includes/classes/editor.php:1297
|
237 |
#, php-format
|
238 |
msgid "Role %s is deleted successfully"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: ../includes/classes/editor.php:1325
|
242 |
msgid ""
|
243 |
"This method is only for a single site of WordPress multisite installation."
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: ../includes/classes/editor.php:1329
|
247 |
msgid "Wrong request. Default role can not be empty"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: ../includes/classes/editor.php:1341
|
251 |
#, php-format
|
252 |
msgid "Default role for new users is set to %s successfully"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: ../includes/classes/editor.php:1343
|
256 |
msgid "Error encountered during default role change operation"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: ../includes/classes/editor.php:1346
|
260 |
msgid "Can not set Administrator role as a default one"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: ../includes/classes/editor.php:1348
|
264 |
msgid "This role does not exist - "
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: ../includes/classes/editor.php:1393
|
268 |
msgid "User Roles are restored to WordPress default values. "
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: ../includes/classes/editor.php:1522
|
272 |
msgid "Error: wrong request"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: ../includes/classes/editor.php:1551
|
276 |
msgid "Editor"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: ../includes/classes/editor.php:1552
|
280 |
msgid "Author"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: ../includes/classes/editor.php:1553
|
284 |
msgid "Contributor"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: ../includes/classes/editor.php:1554
|
288 |
msgid "Subscriber"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: ../includes/classes/editor.php:1556
|
292 |
msgid "Switch themes"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: ../includes/classes/editor.php:1557
|
296 |
msgid "Edit themes"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: ../includes/classes/editor.php:1558
|
300 |
msgid "Activate plugins"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: ../includes/classes/editor.php:1559
|
304 |
msgid "Edit plugins"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../includes/classes/editor.php:1560
|
308 |
msgid "Edit users"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: ../includes/classes/editor.php:1561
|
312 |
msgid "Edit files"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: ../includes/classes/editor.php:1562
|
316 |
msgid "Manage options"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: ../includes/classes/editor.php:1563
|
320 |
msgid "Moderate comments"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: ../includes/classes/editor.php:1564
|
324 |
msgid "Manage categories"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: ../includes/classes/editor.php:1565
|
328 |
msgid "Manage links"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: ../includes/classes/editor.php:1566
|
332 |
msgid "Upload files"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: ../includes/classes/editor.php:1567
|
336 |
msgid "Import"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: ../includes/classes/editor.php:1568
|
340 |
msgid "Unfiltered html"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: ../includes/classes/editor.php:1569
|
344 |
msgid "Edit posts"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: ../includes/classes/editor.php:1570
|
348 |
msgid "Edit others posts"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: ../includes/classes/editor.php:1571
|
352 |
msgid "Edit published posts"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: ../includes/classes/editor.php:1572
|
356 |
msgid "Publish posts"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: ../includes/classes/editor.php:1573
|
360 |
msgid "Edit pages"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: ../includes/classes/editor.php:1574
|
364 |
msgid "Read"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: ../includes/classes/editor.php:1575
|
368 |
msgid "Level 10"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: ../includes/classes/editor.php:1576
|
372 |
msgid "Level 9"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: ../includes/classes/editor.php:1577
|
376 |
msgid "Level 8"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../includes/classes/editor.php:1578
|
380 |
msgid "Level 7"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../includes/classes/editor.php:1579
|
384 |
msgid "Level 6"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../includes/classes/editor.php:1580
|
388 |
msgid "Level 5"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: ../includes/classes/editor.php:1581
|
392 |
msgid "Level 4"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: ../includes/classes/editor.php:1582
|
396 |
msgid "Level 3"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: ../includes/classes/editor.php:1583
|
400 |
msgid "Level 2"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: ../includes/classes/editor.php:1584
|
404 |
msgid "Level 1"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: ../includes/classes/editor.php:1585
|
408 |
msgid "Level 0"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: ../includes/classes/editor.php:1586
|
412 |
msgid "Edit others pages"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: ../includes/classes/editor.php:1587
|
416 |
msgid "Edit published pages"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: ../includes/classes/editor.php:1588
|
420 |
msgid "Publish pages"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: ../includes/classes/editor.php:1589
|
424 |
msgid "Delete pages"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: ../includes/classes/editor.php:1590
|
428 |
msgid "Delete others pages"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: ../includes/classes/editor.php:1591
|
432 |
msgid "Delete published pages"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: ../includes/classes/editor.php:1592
|
436 |
msgid "Delete posts"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: ../includes/classes/editor.php:1593
|
440 |
msgid "Delete others posts"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: ../includes/classes/editor.php:1594
|
444 |
msgid "Delete published posts"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: ../includes/classes/editor.php:1595
|
448 |
msgid "Delete private posts"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: ../includes/classes/editor.php:1596
|
452 |
msgid "Edit private posts"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: ../includes/classes/editor.php:1597
|
456 |
msgid "Read private posts"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: ../includes/classes/editor.php:1598
|
460 |
msgid "Delete private pages"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: ../includes/classes/editor.php:1599
|
464 |
msgid "Edit private pages"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: ../includes/classes/editor.php:1600
|
468 |
msgid "Read private pages"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: ../includes/classes/editor.php:1601
|
472 |
msgid "Delete users"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: ../includes/classes/editor.php:1602
|
476 |
msgid "Create users"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: ../includes/classes/editor.php:1603
|
480 |
msgid "Unfiltered upload"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: ../includes/classes/editor.php:1604
|
484 |
msgid "Edit dashboard"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: ../includes/classes/editor.php:1605
|
488 |
msgid "Update plugins"
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: ../includes/classes/editor.php:1606
|
492 |
msgid "Delete plugins"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: ../includes/classes/editor.php:1607
|
496 |
msgid "Install plugins"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: ../includes/classes/editor.php:1608
|
500 |
msgid "Update themes"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: ../includes/classes/editor.php:1609
|
504 |
msgid "Install themes"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: ../includes/classes/editor.php:1610
|
508 |
msgid "Update core"
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: ../includes/classes/editor.php:1611
|
512 |
msgid "List users"
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: ../includes/classes/editor.php:1612
|
516 |
msgid "Remove users"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: ../includes/classes/editor.php:1613
|
520 |
msgid "Add users"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: ../includes/classes/editor.php:1614
|
524 |
msgid "Promote users"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: ../includes/classes/editor.php:1615
|
528 |
msgid "Edit theme options"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: ../includes/classes/editor.php:1616
|
532 |
msgid "Delete themes"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: ../includes/classes/editor.php:1617
|
536 |
msgid "Export"
|
537 |
msgstr ""
|
538 |
|
627 |
msgid "Plugin download"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: ../includes/classes/lib.php:387 ../includes/classes/user-role-editor.php:532
|
631 |
msgid "Changelog"
|
632 |
msgstr ""
|
633 |
|
643 |
msgid "Additional Options"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: ../includes/classes/role-view.php:64
|
647 |
msgid "None"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: ../includes/classes/role-view.php:97
|
651 |
msgid "Delete All Unused Roles"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: ../includes/classes/role-view.php:197 ../includes/classes/role-view.php:208
|
655 |
msgid "Role name (ID): "
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: ../includes/classes/role-view.php:199 ../includes/classes/role-view.php:210
|
659 |
msgid "Display Role Name: "
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: ../includes/classes/role-view.php:201
|
663 |
msgid "Make copy of: "
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: ../includes/classes/role-view.php:217
|
667 |
msgid "Select Role:"
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: ../includes/classes/role-view.php:242
|
671 |
msgid "Capability name (ID): "
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: ../includes/classes/role-view.php:354 ../includes/classes/user-view.php:154
|
675 |
msgid "Show capabilities in human readable form"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: ../includes/classes/role-view.php:364 ../includes/classes/screen-help.php:21
|
679 |
#: ../includes/classes/user-view.php:164 ../includes/settings-template.php:78
|
680 |
msgid "Show deprecated capabilities"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: ../includes/classes/role-view.php:368
|
684 |
msgid "If checked, then apply action to ALL sites of this Network"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: ../includes/classes/role-view.php:381 ../includes/classes/tools.php:31
|
688 |
msgid "Apply to All Sites"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: ../includes/classes/role-view.php:398
|
692 |
msgid "Select Role and change its capabilities:"
|
693 |
msgstr ""
|
694 |
|
791 |
msgid "Default Roles are updated"
|
792 |
msgstr ""
|
793 |
|
794 |
+
#: ../includes/classes/tools.php:20
|
795 |
msgid "WARNING!"
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: ../includes/classes/tools.php:22
|
799 |
msgid ""
|
800 |
"Resetting will setup default user roles and capabilities from WordPress core."
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: ../includes/classes/tools.php:23
|
804 |
msgid ""
|
805 |
"If any plugins (such as WooCommerce, S2Member and many others) have changed "
|
806 |
"user roles and capabilities during installation, those changes will be LOST!"
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: ../includes/classes/tools.php:24
|
810 |
msgid ""
|
811 |
"For more information on how to undo undesired changes and restore plugins "
|
812 |
"capabilities in case you lost them by mistake go to: "
|
813 |
msgstr ""
|
814 |
|
815 |
+
#: ../includes/classes/tools.php:32
|
816 |
msgid ""
|
817 |
"If checked, then apply action to ALL sites. Main site only is affected in "
|
818 |
"other case."
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: ../includes/classes/tools.php:40
|
822 |
msgid "Reset Roles to its original state"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: ../includes/classes/tools.php:40
|
826 |
+
#: ../includes/classes/user-role-editor.php:804
|
827 |
msgid "Reset"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: ../includes/classes/tools.php:64
|
831 |
msgid "Tools: Reset: User Roles were initialized"
|
832 |
msgstr ""
|
833 |
|
846 |
msgstr ""
|
847 |
|
848 |
#: ../includes/classes/user-other-roles.php:238
|
849 |
+
#: ../includes/classes/user-role-editor.php:398
|
850 |
msgid "Capabilities"
|
851 |
msgstr ""
|
852 |
|
858 |
msgid "Additional Capabilities"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: ../includes/classes/user-role-editor.php:295
|
862 |
msgid "Change role for users without role"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: ../includes/classes/user-role-editor.php:296
|
866 |
msgid "To:"
|
867 |
msgstr ""
|
868 |
|
869 |
+
#: ../includes/classes/user-role-editor.php:297
|
870 |
msgid "No rights"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: ../includes/classes/user-role-editor.php:298
|
874 |
msgid "Provide new role"
|
875 |
msgstr ""
|
876 |
|
|
|
877 |
#: ../includes/classes/user-role-editor.php:370
|
878 |
+
#: ../includes/classes/user-role-editor.php:372
|
879 |
msgid "You do not have permission to edit this user."
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: ../includes/classes/user-role-editor.php:506
|
883 |
+
#: ../includes/classes/user-role-editor.php:519
|
884 |
msgid "Settings"
|
885 |
msgstr ""
|
886 |
|
887 |
+
#: ../includes/classes/user-role-editor.php:561
|
888 |
#: ../includes/settings-template.php:26
|
889 |
msgid "Additional Modules"
|
890 |
msgstr ""
|
891 |
|
892 |
+
#: ../includes/classes/user-role-editor.php:567
|
893 |
#: ../includes/settings-template.php:31
|
894 |
msgid "Default Roles"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: ../includes/classes/user-role-editor.php:632
|
898 |
msgid ""
|
899 |
"You do not have sufficient permissions to manage options for User Role "
|
900 |
"Editor."
|
901 |
msgstr ""
|
902 |
|
903 |
+
#: ../includes/classes/user-role-editor.php:755
|
904 |
+
#: ../includes/classes/user-role-editor.php:801
|
905 |
msgid "Confirm"
|
906 |
msgstr ""
|
907 |
|
908 |
+
#: ../includes/classes/user-role-editor.php:756
|
909 |
+
#: ../includes/classes/user-role-editor.php:802
|
910 |
msgid "Yes"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: ../includes/classes/user-role-editor.php:757
|
914 |
+
#: ../includes/classes/user-role-editor.php:803
|
915 |
msgid "No"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: ../includes/classes/user-role-editor.php:758
|
919 |
msgid "Update"
|
920 |
msgstr ""
|
921 |
|
922 |
+
#: ../includes/classes/user-role-editor.php:759
|
923 |
msgid "Please confirm permissions update"
|
924 |
msgstr ""
|
925 |
|
926 |
+
#: ../includes/classes/user-role-editor.php:760
|
927 |
msgid "Add New Role"
|
928 |
msgstr ""
|
929 |
|
930 |
+
#: ../includes/classes/user-role-editor.php:761
|
931 |
+
#: ../includes/classes/user-role-editor.php:766
|
932 |
msgid "Rename Role"
|
933 |
msgstr ""
|
934 |
|
935 |
+
#: ../includes/classes/user-role-editor.php:762
|
936 |
msgid " Role name (ID) can not be empty!"
|
937 |
msgstr ""
|
938 |
|
939 |
+
#: ../includes/classes/user-role-editor.php:763
|
940 |
msgid ""
|
941 |
" Role name (ID) must contain latin characters, digits, hyphens or underscore "
|
942 |
"only!"
|
943 |
msgstr ""
|
944 |
|
945 |
+
#: ../includes/classes/user-role-editor.php:764
|
946 |
msgid ""
|
947 |
" WordPress does not support numeric Role name (ID). Add latin characters to "
|
948 |
"it."
|
949 |
msgstr ""
|
950 |
|
951 |
+
#: ../includes/classes/user-role-editor.php:765
|
952 |
msgid "Add Role"
|
953 |
msgstr ""
|
954 |
|
955 |
+
#: ../includes/classes/user-role-editor.php:767
|
956 |
msgid "Delete Role"
|
957 |
msgstr ""
|
958 |
|
959 |
+
#: ../includes/classes/user-role-editor.php:768
|
960 |
msgid "Cancel"
|
961 |
msgstr ""
|
962 |
|
963 |
+
#: ../includes/classes/user-role-editor.php:769
|
964 |
msgid "Add Capability"
|
965 |
msgstr ""
|
966 |
|
967 |
+
#: ../includes/classes/user-role-editor.php:770
|
968 |
+
#: ../includes/classes/user-role-editor.php:773
|
969 |
msgid "Delete Capability"
|
970 |
msgstr ""
|
971 |
|
972 |
+
#: ../includes/classes/user-role-editor.php:771
|
|
|
|
|
|
|
|
|
|
|
973 |
msgid "Default Role"
|
974 |
msgstr ""
|
975 |
|
976 |
+
#: ../includes/classes/user-role-editor.php:772
|
977 |
msgid "Set New Default Role"
|
978 |
msgstr ""
|
979 |
|
980 |
+
#: ../includes/classes/user-role-editor.php:774
|
981 |
msgid ""
|
982 |
"Warning! Be careful - removing critical capability could crash some plugin "
|
983 |
"or other custom code"
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: ../includes/classes/user-role-editor.php:775
|
987 |
msgid " Capability name (ID) can not be empty!"
|
988 |
msgstr ""
|
989 |
|
990 |
+
#: ../includes/classes/user-role-editor.php:776
|
991 |
msgid ""
|
992 |
" Capability name (ID) must contain latin characters, digits, hyphens or "
|
993 |
"underscore only!"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: ../includes/classes/user-role-editor.php:805
|
997 |
msgid "DANGER!"
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: ../includes/classes/user-role-editor.php:806
|
1001 |
msgid ""
|
1002 |
" Resetting will restore default user roles and capabilities from WordPress "
|
1003 |
"core."
|
1004 |
msgstr ""
|
1005 |
|
1006 |
+
#: ../includes/classes/user-role-editor.php:807
|
1007 |
msgid ""
|
1008 |
"If any plugins (such as WooCommerce, S2Member and many others) have changed "
|
1009 |
"user roles and capabilities during installation, all those changes will be "
|
1010 |
"LOST!"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
+
#: ../includes/classes/user-role-editor.php:808
|
1014 |
msgid ""
|
1015 |
"For more information on how to undo undesired changes and restore plugin "
|
1016 |
"capabilities go to"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
+
#: ../includes/classes/user-role-editor.php:810
|
1020 |
+
msgid "Continue?"
|
1021 |
+
msgstr ""
|
1022 |
+
|
1023 |
#: ../includes/classes/user-view.php:59
|
1024 |
msgid "Switch To"
|
1025 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
=== User Role Editor ===
|
2 |
Contributors: shinephp
|
3 |
-
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladimir%40shinephp%2ecom&lc=RU&item_name=ShinePHP%2ecom&item_number=User%20Role%20Editor%20WordPress%20plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: user, role, editor, security, access, permission, capability
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 4.
|
8 |
Requires PHP: 7.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -81,15 +80,17 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
|
|
81 |
|
82 |
== Changelog =
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
= [4.61.2] 01.03.2022 =
|
85 |
* Update: Marked as compatible with WordPress 5.9.1
|
86 |
* Fix: "Users->Add New" page - other selected roles were not saved.
|
87 |
* Update: URE uses WordPress notification styles for own operation result output.
|
88 |
-
|
89 |
-
= [4.61.1] 25.01.2022 =
|
90 |
-
* Update: Marked as compatible with WordPress 5.9.
|
91 |
-
* Update: PHP 7.3 is marked as required.
|
92 |
-
* Update: If installed PHP/WordPress version is lower than required one, script termination ( wp_die() ) was replaced with notice-warning admin notice output.
|
93 |
|
94 |
File changelog.txt contains the full list of changes.
|
95 |
|
@@ -101,8 +102,11 @@ I am ready to answer on your questions about plugin usage. Use [plugin page comm
|
|
101 |
|
102 |
== Upgrade Notice ==
|
103 |
|
104 |
-
= [4.
|
105 |
-
* Update: Marked as compatible with WordPress
|
106 |
-
*
|
107 |
-
* Update: URE
|
|
|
|
|
|
|
108 |
|
1 |
=== User Role Editor ===
|
2 |
Contributors: shinephp
|
|
|
3 |
Tags: user, role, editor, security, access, permission, capability
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 6.0
|
6 |
+
Stable tag: 4.62
|
7 |
Requires PHP: 7.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
80 |
|
81 |
== Changelog =
|
82 |
|
83 |
+
= [4.62] 05.05.2022 =
|
84 |
+
* Update: Marked as compatible with WordPress 6.0
|
85 |
+
* New: It's possible to translate custom role names using [PolyLang](https://wordpress.org/plugins/polylang/) plugin.
|
86 |
+
* Update: URE does not sort roles in WordPress dropdown lists. In order to sort roles by name return 'name' from 'ure_sort_wp_roles_list' filter.
|
87 |
+
* Update: User capabilities view page minor CSS enhancements.
|
88 |
+
* Update: Settings->About: "Donate" link was removed.
|
89 |
+
|
90 |
= [4.61.2] 01.03.2022 =
|
91 |
* Update: Marked as compatible with WordPress 5.9.1
|
92 |
* Fix: "Users->Add New" page - other selected roles were not saved.
|
93 |
* Update: URE uses WordPress notification styles for own operation result output.
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
File changelog.txt contains the full list of changes.
|
96 |
|
102 |
|
103 |
== Upgrade Notice ==
|
104 |
|
105 |
+
= [4.62] 01.05.2022 =
|
106 |
+
* Update: Marked as compatible with WordPress 6.0
|
107 |
+
* New: It's possible to translate custom role names using [PolyLang](https://wordpress.org/plugins/polylang/) plugin.
|
108 |
+
* Update: URE does not sort roles in WordPress dropdown lists. In order to sort roles by name return 'name' from 'ure_sort_wp_roles_list' filter.
|
109 |
+
* Update: User capabilities view page minor CSS enhancements.
|
110 |
+
* Update: Settings->About: "Donate" link was removed.
|
111 |
+
|
112 |
|
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.
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: user-role-editor
|
@@ -31,7 +31,7 @@ if ( defined( 'URE_VERSION' ) ) {
|
|
31 |
return;
|
32 |
}
|
33 |
|
34 |
-
define( 'URE_VERSION', '4.
|
35 |
define( 'URE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
36 |
define( 'URE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
37 |
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.62
|
7 |
Author: Vladimir Garagulya
|
8 |
Author URI: https://www.role-editor.com
|
9 |
Text Domain: user-role-editor
|
31 |
return;
|
32 |
}
|
33 |
|
34 |
+
define( 'URE_VERSION', '4.62' );
|
35 |
define( 'URE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
36 |
define( 'URE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
37 |
define( 'URE_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|