User Role Editor - Version 4.46

Version Description

Download this release

Release Info

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

Code changes from version 4.45 to 4.46

changelog.txt CHANGED
@@ -1,5 +1,23 @@
1
  CHANGES LOG (full version).
2
  ===========================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = [4.43] 05.06.2018 =
4
  * Update: references to non-existed roles are removed from the URE role additional options data storage after any role update.
5
  * Fix: Additional options section view for the current role was not refreshed properly after other current role selection.
@@ -359,7 +377,7 @@ in case no one of the other active plugins load file with this function already
359
 
360
  = 4.11 =
361
  * 06.04.2014
362
- * Single-site: It is possible to bulk move users without role (--No role for this site--) to the selected role or automatically created role "No rights" without any capabilities. Get more details at http://role-editor.com/no-role-for-this-site/
363
  * Plugin uses for dialogs jQuery UI CSS included into WordPress package.
364
 
365
  = 4.10 =
@@ -791,4 +809,4 @@ User with 'edit_users' permission could still use URL request with special param
791
 
792
  = 1.0 =
793
  * 22.03.2010
794
- * 1st release.
1
  CHANGES LOG (full version).
2
  ===========================
3
+ = [4.46] 20.09.2018
4
+ * Update: "Users" page, "Without role" button: underlying SQL queries were replaced with more robust versions (about 10 times faster).
5
+ It is critical for sites with large quant of users.New query does not take into account though some cases with incorrect users data (usually imported from the external sources).
6
+ It's possible to use older (comprehensive but slower) query version defining a PHP constant: "define('URE_COUNT_USERS_WITHOUT_ROLE_THOROUGHLY', true);" or
7
+ return false from a custom 'ure_count_users_without_role_quick' filter.
8
+ * Update: error checking was enhanced after default role change for the subsite under WordPress multisite.
9
+
10
+ = [4.45] 18.08.2018 =
11
+ * Fix: Capability checkbox was shown as turned ON incorrectly for not granted capability included into a role, JSON: "caps":{"sample_cap":"false"}. Bug took place after the changing a currently selected role.
12
+ * Fix: Custom capabilities groups "User Role Editor" and "WooCommerce" were registered at the wrong 3rd tree level - changed to 2.
13
+
14
+ = [4.44] 05.07.2018 =
15
+ * Update: URE had executed 'profile_update' action after update of user permissions from the user permissions editor page: Users->selected user->Capabilities.
16
+ It was replaced with 'ure_user_permissions_update' action now. It will allow to exclude conflicts with other plugins - "WP Members" [lost checkbox fields values](https://wordpress.org/support/topic/conflict-with-wp-members-2/), for example.
17
+ * Update: Additional options for role (like "Hide admin bar" at the bottom of URE page) did not applied to the user with 'ure_edit_roles' capability. This conditon was removed.
18
+ * Update: fix PHP notice 'Undefined offset: 0 in ...' at includes/classes/protect-admin.php, not_edit_admin(), where the 1st element of $caps array not always has index 0.
19
+ * Update: PHP required version was increased up to 5.4.
20
+
21
  = [4.43] 05.06.2018 =
22
  * Update: references to non-existed roles are removed from the URE role additional options data storage after any role update.
23
  * Fix: Additional options section view for the current role was not refreshed properly after other current role selection.
377
 
378
  = 4.11 =
379
  * 06.04.2014
380
+ * Single-site: It is possible to bulk move users without role (--No role for this site--) to the selected role or automatically created role "No rights" without any capabilities. Get more details at https://role-editor.com/no-role-for-this-site/
381
  * Plugin uses for dialogs jQuery UI CSS included into WordPress package.
382
 
383
  = 4.10 =
809
 
810
  = 1.0 =
811
  * 22.03.2010
812
+ * 1st release.
images/clearfy.jpg ADDED
Binary file
includes/classes/advertisement.php CHANGED
@@ -15,10 +15,14 @@ class URE_Advertisement {
15
  function __construct() {
16
 
17
  $used = array(-1);
18
- //$index = $this->rand_unique( $used );
19
- $index = 0;
20
  $this->slots[$index] = $this->admin_menu_editor();
21
  $used[] = $index;
 
 
 
 
22
 
23
  }
24
  // end of __construct
@@ -47,8 +51,9 @@ class URE_Advertisement {
47
 
48
  $output = '
49
  <div style="text-align: center;">
50
- <a href="http://w-shadow.com/admin-menu-editor-pro/?utm_source=UserRoleEditor&utm_medium=banner&utm_campaign=Plugins " target="_new" >
51
- <img src="'. URE_PLUGIN_URL . 'images/admin-menu-editor-pro.jpg' .'" alt="Admin Menu Editor Pro" title="Move, rename, hide, add admin menu items, restrict access"/>
 
52
  </a>
53
  </div>
54
  ';
@@ -56,6 +61,23 @@ class URE_Advertisement {
56
  return $output;
57
  }
58
  // end of admin_menu_editor()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
 
61
  /**
15
  function __construct() {
16
 
17
  $used = array(-1);
18
+
19
+ $index = $this->rand_unique( $used );
20
  $this->slots[$index] = $this->admin_menu_editor();
21
  $used[] = $index;
22
+
23
+ $index = $this->rand_unique( $used );
24
+ $this->slots[$index] = $this->clearfy();
25
+ $used[] = $index;
26
 
27
  }
28
  // end of __construct
51
 
52
  $output = '
53
  <div style="text-align: center;">
54
+ <a href="https://adminmenueditor.com/?utm_source=UserRoleEditor&utm_medium=banner&utm_campaign=Plugins" target="_new" >
55
+ <img src="'. URE_PLUGIN_URL . 'images/admin-menu-editor-pro.jpg' .'" alt="Admin Menu Editor Pro"
56
+ title="Move, rename, hide, add admin menu items, restrict access" width="250" height="250" />
57
  </a>
58
  </div>
59
  ';
61
  return $output;
62
  }
63
  // end of admin_menu_editor()
64
+
65
+
66
+ // content of Clearfy advertisement slot
67
+ private function clearfy() {
68
+
69
+ $output = '
70
+ <div style="text-align: center;">
71
+ <a href="https://clearfy.pro/?utm_source=wordpress.org&utm_campaign=user-role-editor" target="_new" >
72
+ <img src="'. URE_PLUGIN_URL . 'images/clearfy.jpg' .'" alt="Clearfy" title="Disable unused WordPress features"
73
+ width="250" height="250" />
74
+ </a>
75
+ </div>
76
+ ';
77
+
78
+ return $output;
79
+ }
80
+ // end of clearfy()
81
 
82
 
83
  /**
includes/classes/assign-role.php CHANGED
@@ -4,7 +4,7 @@
4
  * Author: Vladimir Garagulya
5
  * Author email: support@role-editor.com
6
  * Author URI: https://www.role-editor.com
7
- * Greetings: some ideas and code samples for long runing cron job was taken from the "Broken Link Checker" plugin (Janis Elst).
8
  * License: GPL v2+
9
  *
10
  * Assign role to the users without role stuff
@@ -15,49 +15,99 @@ class URE_Assign_Role {
15
 
16
  private static $counter = 0;
17
 
18
- protected $lib = null;
 
19
 
20
 
21
  function __construct() {
22
 
23
  $this->lib = URE_Lib::get_instance();
 
24
  }
25
  // end of __construct()
26
 
27
 
28
- public function create_no_rights_role() {
29
- global $wp_roles;
30
 
31
  $role_id = 'no_rights';
32
  $role_name = 'No rights';
33
-
34
- if (!isset($wp_roles)) {
35
- $wp_roles = new WP_Roles();
36
- }
37
  if (isset($wp_roles->roles[$role_id])) {
38
  return;
39
  }
 
40
  add_role($role_id, $role_name, array());
41
 
42
  }
43
- // end of create_no_rights_role()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
 
 
 
 
45
 
46
- private function get_where_condition() {
47
  global $wpdb;
48
 
49
  $usermeta = $this->lib->get_usermeta_table_name();
50
  $id = get_current_blog_id();
51
  $blog_prefix = $wpdb->get_blog_prefix($id);
52
- $where = "where not exists (select user_id from {$usermeta}
53
- where user_id=users.ID and meta_key='{$blog_prefix}capabilities') or
54
- exists (select user_id from {$usermeta}
55
- where user_id=users.ID and meta_key='{$blog_prefix}capabilities' and
56
- (meta_value='a:0:{}' or meta_value is NULL))";
57
 
58
  return $where;
59
  }
60
- // end of get_where_condition()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
 
63
  public function count_users_without_role() {
@@ -66,8 +116,7 @@ class URE_Assign_Role {
66
 
67
  $users_quant = get_transient('ure_users_without_role');
68
  if (empty($users_quant)) {
69
- $where = $this->get_where_condition();
70
- $query = "select count(ID) from {$wpdb->users} users {$where}";
71
  $users_quant = $wpdb->get_var($query);
72
  set_transient('ure_users_without_role', $users_quant, 15);
73
  }
@@ -75,17 +124,23 @@ class URE_Assign_Role {
75
  return $users_quant;
76
  }
77
  // end of count_users_without_role()
78
-
79
-
80
- public function get_users_without_role($new_role='') {
81
 
 
 
82
  global $wpdb;
83
 
84
  $top_limit = self::MAX_USERS_TO_PROCESS;
85
- $where = $this->get_where_condition();
86
- $query = "select ID from {$wpdb->users} users
87
- {$where}
88
- limit 0, {$top_limit}";
 
 
 
 
 
 
 
89
  $users0 = $wpdb->get_col($query);
90
 
91
  return $users0;
4
  * Author: Vladimir Garagulya
5
  * Author email: support@role-editor.com
6
  * Author URI: https://www.role-editor.com
7
+ * Greetings: some ideas and code samples for long running cron job was taken from the "Broken Link Checker" plugin (Janis Elst).
8
  * License: GPL v2+
9
  *
10
  * Assign role to the users without role stuff
15
 
16
  private static $counter = 0;
17
 
18
+ private $lib = null;
19
+ private $quick_count = true;
20
 
21
 
22
  function __construct() {
23
 
24
  $this->lib = URE_Lib::get_instance();
25
+ $this->quick_count = $this->count_quick_or_thoroughly();
26
  }
27
  // end of __construct()
28
 
29
 
30
+ public function create_no_rights_role() {
 
31
 
32
  $role_id = 'no_rights';
33
  $role_name = 'No rights';
34
+
35
+ $wp_roles = wp_roles();
 
 
36
  if (isset($wp_roles->roles[$role_id])) {
37
  return;
38
  }
39
+
40
  add_role($role_id, $role_name, array());
41
 
42
  }
43
+ // end of create_no_rights_role()
44
+
45
+
46
+ private function count_quick_or_thoroughly() {
47
+ $quick_count = true;
48
+ if ( defined('URE_COUNT_USERS_WITHOUT_ROLE_THOROUGHLY') && URE_COUNT_USERS_WITHOUT_ROLE_THOROUGHLY ) {
49
+ $quick_count = false;
50
+ } elseif ( $this->lib->is_pro() ) {
51
+ $count_thoroughly = $this->lib->get_option( 'count_users_without_role_thoroughly', false );
52
+ if ( $count_thoroughly ) {
53
+ $quick_count = false;
54
+ }
55
+ }
56
+
57
+ $quick_count = apply_filters('ure_count_users_without_role_quick', $quick_count);
58
 
59
+ return $quick_count;
60
+ }
61
+ // end of count_quick_or_thoroughly()
62
+
63
 
64
+ private function get_thorougly_where_condition() {
65
  global $wpdb;
66
 
67
  $usermeta = $this->lib->get_usermeta_table_name();
68
  $id = get_current_blog_id();
69
  $blog_prefix = $wpdb->get_blog_prefix($id);
70
+ $where = "WHERE NOT EXISTS (SELECT user_id from {$usermeta} ".
71
+ "WHERE user_id=users.ID AND meta_key='{$blog_prefix}capabilities') OR ".
72
+ "EXISTS (SELECT user_id FROM {$usermeta} ".
73
+ "WHERE user_id=users.ID AND meta_key='{$blog_prefix}capabilities' AND ".
74
+ "(meta_value='a:0:{}' OR meta_value IS NULL))";
75
 
76
  return $where;
77
  }
78
+ // end of get_thoroughly_where_condition()
79
+
80
+
81
+ private function get_quick_query_part2() {
82
+ global $wpdb;
83
+
84
+ $usermeta = $this->lib->get_usermeta_table_name();
85
+ $id = get_current_blog_id();
86
+ $blog_prefix = $wpdb->get_blog_prefix($id);
87
+ $query = "FROM {$usermeta} usermeta ".
88
+ "INNER JOIN {$wpdb->users} users ON usermeta.user_id=users.ID ".
89
+ "WHERE usermeta.meta_key='{$blog_prefix}capabilities' AND ".
90
+ "(usermeta.meta_value = 'a:0:{}' OR usermeta.meta_value is NULL)";
91
+
92
+ return $query;
93
+ }
94
+ // end of get_quick_query_part2()
95
+
96
+
97
+ private function get_users_count_query() {
98
+ global $wpdb;
99
+
100
+ if ( $this->quick_count ) {
101
+ $part2 = $this->get_quick_query_part2();
102
+ $query = "SELECT COUNT(DISTINCT usermeta.user_id) {$part2}";
103
+ } else {
104
+ $where = $this->get_thorougly_where_condition();
105
+ $query = "SELECT count(ID) from {$wpdb->users} users {$where}";
106
+ }
107
+
108
+ return $query;
109
+ }
110
+ // end of get_users_count_query()
111
 
112
 
113
  public function count_users_without_role() {
116
 
117
  $users_quant = get_transient('ure_users_without_role');
118
  if (empty($users_quant)) {
119
+ $query = $this->get_users_count_query();
 
120
  $users_quant = $wpdb->get_var($query);
121
  set_transient('ure_users_without_role', $users_quant, 15);
122
  }
124
  return $users_quant;
125
  }
126
  // end of count_users_without_role()
 
 
 
127
 
128
+
129
+ public function get_users_without_role($new_role='') {
130
  global $wpdb;
131
 
132
  $top_limit = self::MAX_USERS_TO_PROCESS;
133
+
134
+ if ( $this->quick_count ) {
135
+ $part2 = $this->get_quick_query_part2();
136
+ $query = "SELECT DISTINCT usermeta.user_id {$part2}
137
+ LIMIT 0, {$top_limit}";
138
+ } else {
139
+ $where = $this->get_thorougly_where_condition();
140
+ $query = "SELECT users.ID FROM {$wpdb->users} users
141
+ {$where}
142
+ LIMIT 0, {$top_limit}";
143
+ }
144
  $users0 = $wpdb->get_col($query);
145
 
146
  return $users0;
includes/classes/{ure-lib.php → lib.php} RENAMED
@@ -363,7 +363,7 @@ class URE_Lib extends URE_Base_Lib {
363
  if ($mess) {
364
  $mess .= '<br/>';
365
  }
366
- $mess = esc_html__('Error occured during role(s) update', 'user-role-editor');
367
  }
368
  } else {
369
  if ($this->update_user($this->user_to_edit)) {
@@ -375,7 +375,7 @@ class URE_Lib extends URE_Base_Lib {
375
  if ($mess) {
376
  $mess .= '<br/>';
377
  }
378
- $mess = esc_html__('Error occured during user update', 'user-role-editor');
379
  }
380
  }
381
  return $mess;
@@ -1595,25 +1595,26 @@ class URE_Lib extends URE_Base_Lib {
1595
  * @return string
1596
  */
1597
  protected function change_default_role() {
1598
- global $wp_roles;
1599
 
1600
  if (!$this->multisite || is_network_admin()) {
1601
  return 'Try to misuse the plugin functionality';
1602
  }
 
1603
  $mess = '';
1604
  if (!isset($wp_roles)) {
1605
  $wp_roles = new WP_Roles();
 
1606
  }
1607
  if (!empty($_POST['user_role_id'])) {
1608
  $user_role_id = $_POST['user_role_id'];
1609
  unset($_POST['user_role_id']);
1610
  if (isset($wp_roles->role_objects[$user_role_id]) && $user_role_id !== 'administrator') {
1611
- $result = update_option('default_role', $user_role_id);
1612
- if (empty($result)) {
1613
- $mess = 'Error! ' . esc_html__('Error encountered during default role change operation', 'user-role-editor');
1614
- } else {
1615
- $this->get_default_role();
1616
  $mess = sprintf(esc_html__('Default role for new users is set to %s successfully', 'user-role-editor'), $wp_roles->role_names[$user_role_id]);
 
 
1617
  }
1618
  } elseif ($user_role_id === 'administrator') {
1619
  $mess = 'Error! ' . esc_html__('Can not set Administrator role as a default one', 'user-role-editor');
363
  if ($mess) {
364
  $mess .= '<br/>';
365
  }
366
+ $mess = esc_html__('Error occurred during role(s) update', 'user-role-editor');
367
  }
368
  } else {
369
  if ($this->update_user($this->user_to_edit)) {
375
  if ($mess) {
376
  $mess .= '<br/>';
377
  }
378
+ $mess = esc_html__('Error occurred during user update', 'user-role-editor');
379
  }
380
  }
381
  return $mess;
1595
  * @return string
1596
  */
1597
  protected function change_default_role() {
 
1598
 
1599
  if (!$this->multisite || is_network_admin()) {
1600
  return 'Try to misuse the plugin functionality';
1601
  }
1602
+
1603
  $mess = '';
1604
  if (!isset($wp_roles)) {
1605
  $wp_roles = new WP_Roles();
1606
+ $wp_roles = wp_roles();
1607
  }
1608
  if (!empty($_POST['user_role_id'])) {
1609
  $user_role_id = $_POST['user_role_id'];
1610
  unset($_POST['user_role_id']);
1611
  if (isset($wp_roles->role_objects[$user_role_id]) && $user_role_id !== 'administrator') {
1612
+ update_option('default_role', $user_role_id);
1613
+ $this->get_default_role();
1614
+ if ($this->wp_default_role===$user_role_id) {
 
 
1615
  $mess = sprintf(esc_html__('Default role for new users is set to %s successfully', 'user-role-editor'), $wp_roles->role_names[$user_role_id]);
1616
+ } else {
1617
+ $mess = 'Error! ' . esc_html__('Error encountered during default role change operation', 'user-role-editor');
1618
  }
1619
  } elseif ($user_role_id === 'administrator') {
1620
  $mess = 'Error! ' . esc_html__('Can not set Administrator role as a default one', 'user-role-editor');
includes/classes/screen-help.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- * User Role Editor On Screen Help class
5
  *
6
  */
7
 
@@ -78,12 +78,12 @@ class URE_Screen_Help {
78
 
79
 
80
  protected function get_multisite_tab() {
81
- $text = '<h2>'. esc_html__('User Role Editor Options page help', 'user-role-editor') .'</h2>
82
  <p>
83
  <ul>
84
- <li><strong>' . esc_html__('Allow non super-admininstrators to create, edit and delete users', 'user-role-editor').'</strong> - ' .
85
- esc_html__('Super administrator only may create, edit and delete users under WordPress multi-site by default. '
86
- . 'Turn this option on in order to remove this limitation.','user-role-editor') . '</li>';
87
 
88
  $text = apply_filters('ure_get_settings_multisite_tab_help', $text);
89
  $text .='
1
  <?php
2
 
3
  /*
4
+ * User Role Editor Settings page on Screen Help class
5
  *
6
  */
7
 
78
 
79
 
80
  protected function get_multisite_tab() {
81
+ $text = '<h2>'. esc_html__( 'User Role Editor Options page help', 'user-role-editor' ) .'</h2>
82
  <p>
83
  <ul>
84
+ <li><strong>' . esc_html__( 'Allow non super-administrators to create, edit and delete users', 'user-role-editor' ).'</strong> - '.
85
+ esc_html__( 'Super administrator only may create, edit and delete users under WordPress multi-site by default. '.
86
+ 'Turn this option on in order to remove this limitation.','user-role-editor' ) .'</li>';
87
 
88
  $text = apply_filters('ure_get_settings_multisite_tab_help', $text);
89
  $text .='
includes/define-constants.php CHANGED
@@ -1,14 +1,15 @@
1
  <?php
2
 
3
  /*
4
- * Constant definitions for use in User Role Editor WordPress plugin
5
- * Author: Vladimir Garagulya
6
- * Author email: vladimir@shinephp.com
7
- * Author URI: http://shinephp.com
 
8
  *
9
  */
10
 
11
- define('URE_WP_ADMIN_URL', admin_url());
12
- define('URE_ERROR', 'Error is encountered');
13
- define('URE_PARENT', is_network_admin() ? 'network/users.php':'users.php');
14
- define('URE_KEY_CAPABILITY', 'ure_manage_options');
1
  <?php
2
 
3
  /*
4
+ * User Role Editor WordPress plugin constants definitions
5
+ *
6
+ * Author: Vladimir Garagulia
7
+ * Author email: support@role-editor.com
8
+ * Author URI: https://role-editor.com
9
  *
10
  */
11
 
12
+ define( 'URE_WP_ADMIN_URL', admin_url() );
13
+ define( 'URE_ERROR', 'Error was encountered' );
14
+ define( 'URE_PARENT', is_network_admin() ? 'network/users.php' : 'users.php' );
15
+ define( 'URE_KEY_CAPABILITY', 'ure_manage_options' );
includes/loader.php CHANGED
@@ -1,33 +1,32 @@
1
  <?php
2
  /**
3
- * Load related files
4
  * Project: User Role Editor WordPress plugin
5
- *
 
6
  * Author: Vladimir Garagulia
7
  * email: support@role-editor.com
8
  *
9
  **/
10
 
11
- require_once(URE_PLUGIN_DIR .'includes/define-constants.php');
12
- require_once(URE_PLUGIN_DIR .'includes/misc-support-stuff.php');
13
- require_once(URE_PLUGIN_DIR .'includes/classes/task-queue.php');
14
- require_once(URE_PLUGIN_DIR .'includes/classes/own-capabilities.php');
15
- require_once(URE_PLUGIN_DIR .'includes/classes/bbpress.php');
16
- require_once(URE_PLUGIN_DIR .'includes/classes/assign-role.php');
17
- require_once(URE_PLUGIN_DIR .'includes/classes/grant-roles.php');
18
- require_once(URE_PLUGIN_DIR .'includes/classes/user-other-roles.php');
19
- require_once(URE_PLUGIN_DIR .'includes/classes/protect-admin.php');
20
- require_once(URE_PLUGIN_DIR .'includes/classes/ajax-processor.php');
21
- require_once(URE_PLUGIN_DIR .'includes/classes/screen-help.php');
22
- require_once(URE_PLUGIN_DIR .'includes/classes/known-js-css-compatibility-issues.php');
23
- require_once(URE_PLUGIN_DIR .'includes/classes/role-additional-options.php');
24
- require_once(URE_PLUGIN_DIR .'includes/classes/capability.php');
25
- require_once(URE_PLUGIN_DIR .'includes/classes/woocommerce-capabilities.php');
26
- require_once(URE_PLUGIN_DIR .'includes/classes/capabilities-groups-manager.php');
27
- require_once(URE_PLUGIN_DIR .'includes/classes/view.php');
28
- require_once(URE_PLUGIN_DIR .'includes/classes/role-view.php');
29
- require_once(URE_PLUGIN_DIR .'includes/classes/tools.php');
30
- require_once(URE_PLUGIN_DIR .'includes/classes/user-view.php');
31
- require_once(URE_PLUGIN_DIR .'includes/classes/settings.php');
32
- require_once(URE_PLUGIN_DIR .'includes/classes/user-role-editor.php');
33
-
1
  <?php
2
  /**
 
3
  * Project: User Role Editor WordPress plugin
4
+ * Load related files
5
+ *
6
  * Author: Vladimir Garagulia
7
  * email: support@role-editor.com
8
  *
9
  **/
10
 
11
+ require_once( URE_PLUGIN_DIR .'includes/define-constants.php' );
12
+ require_once( URE_PLUGIN_DIR .'includes/misc-support-stuff.php' );
13
+ require_once( URE_PLUGIN_DIR .'includes/classes/task-queue.php' );
14
+ require_once( URE_PLUGIN_DIR .'includes/classes/own-capabilities.php' );
15
+ require_once( URE_PLUGIN_DIR .'includes/classes/bbpress.php' );
16
+ require_once( URE_PLUGIN_DIR .'includes/classes/assign-role.php' );
17
+ require_once( URE_PLUGIN_DIR .'includes/classes/grant-roles.php' );
18
+ require_once( URE_PLUGIN_DIR .'includes/classes/user-other-roles.php' );
19
+ require_once( URE_PLUGIN_DIR .'includes/classes/protect-admin.php' );
20
+ require_once( URE_PLUGIN_DIR .'includes/classes/ajax-processor.php' );
21
+ require_once( URE_PLUGIN_DIR .'includes/classes/screen-help.php' );
22
+ require_once( URE_PLUGIN_DIR .'includes/classes/known-js-css-compatibility-issues.php' );
23
+ require_once( URE_PLUGIN_DIR .'includes/classes/role-additional-options.php' );
24
+ require_once( URE_PLUGIN_DIR .'includes/classes/capability.php' );
25
+ require_once( URE_PLUGIN_DIR .'includes/classes/woocommerce-capabilities.php' );
26
+ require_once( URE_PLUGIN_DIR .'includes/classes/capabilities-groups-manager.php' );
27
+ require_once( URE_PLUGIN_DIR .'includes/classes/view.php' );
28
+ require_once( URE_PLUGIN_DIR .'includes/classes/role-view.php' );
29
+ require_once( URE_PLUGIN_DIR .'includes/classes/tools.php' );
30
+ require_once( URE_PLUGIN_DIR .'includes/classes/user-view.php' );
31
+ require_once( URE_PLUGIN_DIR .'includes/classes/settings.php' );
32
+ require_once( URE_PLUGIN_DIR .'includes/classes/user-role-editor.php' );
 
includes/misc-support-stuff.php CHANGED
@@ -1,41 +1,48 @@
1
  <?php
2
 
3
- /*
 
4
  * Miscellaneous support stuff, which should still be defined beyond of classes
5
  *
6
  * Author: Vladimir Garagulya
7
- * Author email: vladimir@shinephp.com
8
- * Author URI: http://shinephp.com
9
  * License: GPL v3
10
  *
11
  */
12
 
13
- if (class_exists('GFForms') ) { // if Gravity Forms is installed
14
- // Support for Gravity Forms capabilities
15
- // As Gravity Form has integrated support for the Members plugin - let's imitate its presense,
16
- // so GF code, like
17
- // self::has_members_plugin())
18
- // considers that it is has_members_plugin()
19
- if (!function_exists('members_get_capabilities')) {
 
20
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
21
- if (!is_plugin_active('members/members.php')) {
22
- // define stub function to say "Gravity Forms" plugin: 'Hey! While I'm not the "Members" plugin, but I'm "User Role Editor" and
23
- // I'm capable to manage your roles and capabilities too
24
- function members_get_capabilities() {
25
-
 
 
26
  }
27
  }
28
  }
29
  }
30
 
31
 
32
- if (!function_exists('ure_get_post_view_access_users')) {
33
- function ure_get_post_view_access_users($post_id) {
34
- if (!$GLOBALS['user_role_editor']->is_pro()) {
 
 
 
35
  return false;
36
  }
37
 
38
- $result = $GLOBALS['user_role_editor']->get_post_view_access_users($post_id);
39
 
40
  return $result;
41
  }
@@ -44,7 +51,7 @@ if (!function_exists('ure_get_post_view_access_users')) {
44
  }
45
 
46
 
47
- if (!function_exists('ure_hide_admin_bar')) {
48
  function ure_hide_admin_bar() {
49
 
50
  show_admin_bar(false);
@@ -54,7 +61,7 @@ if (!function_exists('ure_hide_admin_bar')) {
54
  }
55
 
56
 
57
- if (!function_exists('wp_roles')) {
58
  /**
59
  * Included for back compatibility with WP 4.0+
60
  * Retrieves the global WP_Roles instance and instantiates it if necessary.
1
  <?php
2
 
3
+ /*
4
+ * User Role Editor WordPress plugin
5
  * Miscellaneous support stuff, which should still be defined beyond of classes
6
  *
7
  * Author: Vladimir Garagulya
8
+ * Author email: suport@role-editor.com
9
+ * Author URI: https://role-editor.com
10
  * License: GPL v3
11
  *
12
  */
13
 
14
+ // if Gravity Forms is installed
15
+ if ( class_exists( 'GFForms' ) ) {
16
+ /*
17
+ * Support for Gravity Forms capabilities
18
+ * As Gravity Form has integrated support for the Members plugin - let's imitate its presense, so GF code, like
19
+ * self::has_members_plugin()) considers that it is has Members plugin
20
+ */
21
+ if ( !function_exists( 'members_get_capabilities' ) ) {
22
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
23
+ if ( ! is_plugin_active( 'members/members.php' ) ) {
24
+ /*
25
+ * Define stub function to say "Gravity Forms" plugin: 'Hey! Yes, I'm not the "Members" plugin, but I'm "User Role Editor" and
26
+ * I'm capable to manage your roles and capabilities too.
27
+ */
28
+ function members_get_capabilities() {
29
+
30
  }
31
  }
32
  }
33
  }
34
 
35
 
36
+ if ( ! function_exists( 'ure_get_post_view_access_users' ) ) {
37
+ /*
38
+ * Returns the list of users with front-end content view restrictions
39
+ */
40
+ function ure_get_post_view_access_users( $post_id ) {
41
+ if ( ! $GLOBALS['user_role_editor']->is_pro() ) {
42
  return false;
43
  }
44
 
45
+ $result = $GLOBALS['user_role_editor']->get_post_view_access_users( $post_id );
46
 
47
  return $result;
48
  }
51
  }
52
 
53
 
54
+ if ( ! function_exists( 'ure_hide_admin_bar' ) ) {
55
  function ure_hide_admin_bar() {
56
 
57
  show_admin_bar(false);
61
  }
62
 
63
 
64
+ if ( ! function_exists( 'wp_roles' ) ) {
65
  /**
66
  * Included for back compatibility with WP 4.0+
67
  * Retrieves the global WP_Roles instance and instantiates it if necessary.
includes/settings-template.php CHANGED
@@ -2,10 +2,9 @@
2
  /*
3
  * User Role Editor WordPress plugin options page
4
  *
5
- * @Author: Vladimir Garagulya
6
- * @URL: http://role-editor.com
7
- * @package UserRoleEditor
8
- *
9
  */
10
 
11
  $tabs_index = array();
@@ -14,37 +13,37 @@ $tabs_index = array();
14
  <a href="http://role-editor.com">
15
  <div id="ure-icon" class="icon32"><br></div>
16
  </a>
17
- <h1><?php esc_html_e('User Role Editor - Options', 'user-role-editor'); ?></h1>
18
 
19
  <div id="ure_tabs" style="clear: left;">
20
  <ul>
21
- <li><a href="#ure_tabs-1"><?php esc_html_e('General', 'user-role-editor');?></a></li>
22
  <?php
23
  $tabs_index['1'] = 0;
24
- if (!$license_key_only) {
25
- if ($lib->is_pro() || !$multisite) {
26
  ?>
27
- <li><a href="#ure_tabs-2"><?php esc_html_e('Additional Modules', 'user-role-editor'); ?></a></li>
28
  <?php
29
  $tabs_index['2'] = 1;
30
  }
31
  ?>
32
- <li><a href="#ure_tabs-3"><?php esc_html_e('Default Roles', 'user-role-editor'); ?></a></li>
33
  <?php
34
- $tabs_index['3'] = count($tabs_index);
35
- if ($multisite && ($lib->is_pro() || $lib->is_super_admin())) {
36
  ?>
37
- <li><a href="#ure_tabs-4"><?php esc_html_e('Multisite', 'user-role-editor'); ?></a></li>
38
  <?php
39
- $tabs_index['4'] = count($tabs_index);
40
  }
41
  }
42
  ?>
43
- <li><a href="#ure_tabs-5"><?php esc_html_e('Tools', 'user-role-editor');?></a></li>
44
  <?php
45
  $tabs_index['5'] = count($tabs_index);
46
  ?>
47
- <li><a href="#ure_tabs-6"><?php esc_html_e('About', 'user-role-editor');?></a></li>
48
 
49
  </ul>
50
 
@@ -53,58 +52,59 @@ if (!$license_key_only) {
53
  <form method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
54
  <table id="ure_settings">
55
  <?php
56
- if (!$license_key_only) {
57
  ?>
58
  <tr>
59
  <td>
60
- <input type="checkbox" name="show_admin_role" id="show_admin_role" value="1"
61
- <?php echo ($show_admin_role == 1) ? 'checked="checked"' : ''; ?>
62
- <?php echo defined('URE_SHOW_ADMIN_ROLE') ? 'disabled="disabled" title="Predefined by \'URE_SHOW_ADMIN_ROLE\' constant at wp-config.php"' : ''; ?> />
63
- <label for="show_admin_role"><?php esc_html_e('Show Administrator role at User Role Editor', 'user-role-editor'); ?></label></td>
64
  <td>
65
  </td>
66
  </tr>
67
  <tr>
68
  <td>
69
  <input type="checkbox" name="caps_readable" id="caps_readable" value="1"
70
- <?php echo ($caps_readable == 1) ? 'checked="checked"' : ''; ?> />
71
- <label for="caps_readable"><?php esc_html_e('Show capabilities in the human readable form', 'user-role-editor'); ?></label></td>
 
72
  <td>
73
  </td>
74
  </tr>
75
  <tr>
76
  <td>
77
- <input type="checkbox" name="show_deprecated_caps" id="show_deprecated_caps" value="1"
78
- <?php echo ($show_deprecated_caps == 1) ? 'checked="checked"' : ''; ?> />
79
- <label for="show_deprecated_caps"><?php esc_html_e('Show deprecated capabilities', 'user-role-editor'); ?></label></td>
80
  <td>
81
  </td>
82
  </tr>
83
  <tr>
84
  <td>
85
- <input type="checkbox" name="confirm_role_update" id="confirm_role_update" value="1"
86
- <?php echo ($confirm_role_update == 1) ? 'checked="checked"' : ''; ?> />
87
- <label for="confirm_role_update"><?php esc_html_e('Confirm role update', 'user-role-editor'); ?></label></td>
88
  <td>
89
  </td>
90
  </tr>
91
  <tr>
92
  <td>
93
- <input type="checkbox" name="edit_user_caps" id="edit_user_caps" value="1"
94
- <?php echo ($edit_user_caps == 1) ? 'checked="checked"' : ''; ?> />
95
- <label for="edit_user_caps"><?php esc_html_e('Edit user capabilities', 'user-role-editor'); ?></label></td>
96
  <td>
97
  </td>
98
  </tr>
99
  <tr>
100
  <td>
101
- <?php esc_html_e('Show capabilities in', 'user-role-editor'); ?>&nbsp;
102
  <select name="caps_columns_quant" id="caps_columns_quant">
103
- <option value="1" <?php selected(1, $caps_columns_quant);?> >1</option>
104
- <option value="2" <?php selected(2, $caps_columns_quant);?> >2</option>
105
- <option value="3" <?php selected(3, $caps_columns_quant);?> >3</option>
106
  </select>
107
- <?php esc_html_e('columns', 'user-role-editor'); ?>
108
  </td>
109
  <td>
110
  </td>
@@ -112,34 +112,33 @@ if (!$license_key_only) {
112
 
113
  <?php
114
  }
115
- do_action('ure_settings_show1');
116
  ?>
117
  </table>
118
- <?php wp_nonce_field('user-role-editor'); ?>
119
  <input type="hidden" name="ure_tab_idx" value="0" />
120
  <p class="submit">
121
- <input type="submit" class="button-primary" name="ure_settings_update" value="<?php _e('Save', 'user-role-editor') ?>" />
122
  </p>
123
 
124
  </form>
125
  </div>
126
  </div> <!-- ure_tabs-1 -->
127
  <?php
128
- if (!$license_key_only) {
129
- if ($lib->is_pro() || !$multisite) {
130
  ?>
131
 
132
  <div id="ure_tabs-2">
133
  <form name="ure_additional_modules" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
134
  <table id="ure_addons">
135
  <?php
136
- if (!$multisite) {
137
  ?>
138
  <tr>
139
  <td>
140
- <input type="checkbox" name="count_users_without_role" id="count_users_without_role" value="1"
141
- <?php echo ($count_users_without_role == 1) ? 'checked="checked"' : ''; ?> />
142
- <label for="count_users_without_role"><?php esc_html_e('Count users without role', 'user-role-editor'); ?></label></td>
143
  <td>
144
  </td>
145
  </tr>
@@ -148,13 +147,13 @@ if (!$multisite) {
148
  ?>
149
 
150
  <?php
151
- do_action('ure_settings_show2');
152
  ?>
153
  </table>
154
- <?php wp_nonce_field('user-role-editor'); ?>
155
  <input type="hidden" name="ure_tab_idx" value="1" />
156
  <p class="submit">
157
- <input type="submit" class="button-primary" name="ure_addons_settings_update" value="<?php _e('Save', 'user-role-editor') ?>" />
158
 
159
  </form>
160
  </div>
@@ -165,60 +164,60 @@ if (!$multisite) {
165
  <div id="ure_tabs-3">
166
  <form name="ure_default_roles" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
167
  <?php
168
- if (!$multisite) {
169
- esc_html_e('Primary default role: ', 'user-role-editor');
170
  echo $view->role_default_html;
171
  ?>
172
  <hr>
173
  <?php
174
  }
175
  ?>
176
- <?php esc_html_e('Other default roles for new registered user: ', 'user-role-editor'); ?>
177
  <div id="other_default_roles">
178
  <?php $lib->show_other_default_roles(); ?>
179
  </div>
180
  <?php
181
- if ($multisite) {
182
- echo '<p>'. esc_html__('Note for multisite environment: take into account that other default roles should exist at the site, in order to be assigned to the new registered users.', 'user-role-editor') .'</p>';
183
  }
184
  ?>
185
  <hr>
186
- <?php wp_nonce_field('user-role-editor'); ?>
187
- <input type="hidden" name="ure_tab_idx" value="<?php echo $tabs_index[3];?>" />
188
  <p class="submit">
189
- <input type="submit" class="button-primary" name="ure_default_roles_update" value="<?php _e('Save', 'user-role-editor') ?>" />
190
  </p>
191
  </form>
192
  </div> <!-- ure_tabs-3 -->
193
 
194
  <?php
195
- if ( $multisite && ($lib->is_pro() || $lib->is_super_admin())) {
196
  ?>
197
  <div id="ure_tabs-4">
198
  <div id="ure-settings-form-ms">
199
  <form name="ure_settings_ms" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
200
  <table id="ure_settings_ms">
201
  <?php
202
- if ($lib->is_super_admin()) {
203
  ?>
204
  <tr>
205
  <td>
206
  <input type="checkbox" name="allow_edit_users_to_not_super_admin" id="allow_edit_users_to_not_super_admin" value="1"
207
- <?php echo ($allow_edit_users_to_not_super_admin == 1) ? 'checked="checked"' : ''; ?> />
208
- <label for="allow_edit_users_to_not_super_admin"><?php esc_html_e('Allow non super administrators to create, edit, and delete users', 'user-role-editor'); ?></label>
209
  </td>
210
  <td>
211
  </td>
212
  </tr>
213
  <?php
214
  }
215
- do_action('ure_settings_ms_show');
216
  ?>
217
  </table>
218
- <?php wp_nonce_field('user-role-editor'); ?>
219
- <input type="hidden" name="ure_tab_idx" value="<?php echo $tabs_index[4];?>" />
220
  <p class="submit">
221
- <input type="submit" class="button-primary" name="ure_settings_ms_update" value="<?php esc_html_e('Save', 'user-role-editor'); ?>" />
222
  </p>
223
  </form>
224
  </div> <!-- ure-settings-form-ms -->
@@ -244,16 +243,16 @@ if (!$multisite) {
244
  URE_View::output_confirmation_dialog();
245
  ?>
246
  <script>
247
- jQuery(function() {
248
- jQuery('#ure_tabs').tabs();
249
  <?php
250
  $ure_tab_idx = (int) $ure_tab_idx;
251
  if ($ure_tab_idx>0 && $ure_tab_idx<=count($tabs_index)) {
252
  ?>
253
- jQuery("#ure_tabs").tabs("option", "active", <?php echo $ure_tab_idx; ?>);
254
  <?php
255
  }
256
  ?>
257
 
258
- });
259
  </script>
2
  /*
3
  * User Role Editor WordPress plugin options page
4
  *
5
+ * @Author: Vladimir Garagulia
6
+ * @URL: https://role-editor.com
7
+ *
 
8
  */
9
 
10
  $tabs_index = array();
13
  <a href="http://role-editor.com">
14
  <div id="ure-icon" class="icon32"><br></div>
15
  </a>
16
+ <h1><?php esc_html_e( 'User Role Editor - Options', 'user-role-editor' ); ?></h1>
17
 
18
  <div id="ure_tabs" style="clear: left;">
19
  <ul>
20
+ <li><a href="#ure_tabs-1"><?php esc_html_e( 'General', 'user-role-editor' );?></a></li>
21
  <?php
22
  $tabs_index['1'] = 0;
23
+ if ( ! $license_key_only ) {
24
+ if ( $lib->is_pro() || ! $multisite ) {
25
  ?>
26
+ <li><a href="#ure_tabs-2"><?php esc_html_e( 'Additional Modules', 'user-role-editor' ); ?></a></li>
27
  <?php
28
  $tabs_index['2'] = 1;
29
  }
30
  ?>
31
+ <li><a href="#ure_tabs-3"><?php esc_html_e( 'Default Roles', 'user-role-editor' ); ?></a></li>
32
  <?php
33
+ $tabs_index['3'] = count( $tabs_index );
34
+ if ( $multisite && ( $lib->is_pro() || $lib->is_super_admin() ) ) {
35
  ?>
36
+ <li><a href="#ure_tabs-4"><?php esc_html_e( 'Multisite', 'user-role-editor' ); ?></a></li>
37
  <?php
38
+ $tabs_index['4'] = count( $tabs_index );
39
  }
40
  }
41
  ?>
42
+ <li><a href="#ure_tabs-5"><?php esc_html_e( 'Tools', 'user-role-editor' );?></a></li>
43
  <?php
44
  $tabs_index['5'] = count($tabs_index);
45
  ?>
46
+ <li><a href="#ure_tabs-6"><?php esc_html_e( 'About', 'user-role-editor' );?></a></li>
47
 
48
  </ul>
49
 
52
  <form method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
53
  <table id="ure_settings">
54
  <?php
55
+ if ( ! $license_key_only ) {
56
  ?>
57
  <tr>
58
  <td>
59
+ <input type="checkbox" name="show_admin_role" id="show_admin_role" value="1" <?php checked( $show_admin_role, 1 ); ?>
60
+ <?php echo defined( 'URE_SHOW_ADMIN_ROLE' ) ? 'disabled="disabled" title="Predefined by \'URE_SHOW_ADMIN_ROLE\' constant at wp-config.php"' : ''; ?> />
61
+ <label for="show_admin_role"><?php esc_html_e( 'Show Administrator role at User Role Editor', 'user-role-editor' ); ?></label>
62
+ </td>
63
  <td>
64
  </td>
65
  </tr>
66
  <tr>
67
  <td>
68
  <input type="checkbox" name="caps_readable" id="caps_readable" value="1"
69
+ <?php checked( $caps_readable, 1); ?> />
70
+ <label for="caps_readable"><?php esc_html_e( 'Show capabilities in the human readable form', 'user-role-editor' ); ?></label>
71
+ </td>
72
  <td>
73
  </td>
74
  </tr>
75
  <tr>
76
  <td>
77
+ <input type="checkbox" name="show_deprecated_caps" id="show_deprecated_caps" value="1" <?php checked( $show_deprecated_caps, 1 ); ?> />
78
+ <label for="show_deprecated_caps"><?php esc_html_e( 'Show deprecated capabilities', 'user-role-editor' ); ?></label>
79
+ </td>
80
  <td>
81
  </td>
82
  </tr>
83
  <tr>
84
  <td>
85
+ <input type="checkbox" name="confirm_role_update" id="confirm_role_update" value="1" <?php checked( $confirm_role_update, 1 ); ?> />
86
+ <label for="confirm_role_update"><?php esc_html_e( 'Confirm role update', 'user-role-editor' ); ?></label>
87
+ </td>
88
  <td>
89
  </td>
90
  </tr>
91
  <tr>
92
  <td>
93
+ <input type="checkbox" name="edit_user_caps" id="edit_user_caps" value="1" <?php checked( $edit_user_caps, 1 ); ?> />
94
+ <label for="edit_user_caps"><?php esc_html_e( 'Edit user capabilities', 'user-role-editor' ); ?></label>
95
+ </td>
96
  <td>
97
  </td>
98
  </tr>
99
  <tr>
100
  <td>
101
+ <?php esc_html_e( 'Show capabilities in', 'user-role-editor' ); ?>&nbsp;
102
  <select name="caps_columns_quant" id="caps_columns_quant">
103
+ <option value="1" <?php selected( $caps_columns_quant, 1 ); ?> >1</option>
104
+ <option value="2" <?php selected( $caps_columns_quant, 2 ); ?> >2</option>
105
+ <option value="3" <?php selected( $caps_columns_quant, 3 ); ?> >3</option>
106
  </select>
107
+ <?php esc_html_e( 'columns', 'user-role-editor' ); ?>
108
  </td>
109
  <td>
110
  </td>
112
 
113
  <?php
114
  }
115
+ do_action( 'ure_settings_show1' );
116
  ?>
117
  </table>
118
+ <?php wp_nonce_field( 'user-role-editor' ); ?>
119
  <input type="hidden" name="ure_tab_idx" value="0" />
120
  <p class="submit">
121
+ <input type="submit" class="button-primary" name="ure_settings_update" value="<?php esc_html_e( 'Save', 'user-role-editor' ) ?>" />
122
  </p>
123
 
124
  </form>
125
  </div>
126
  </div> <!-- ure_tabs-1 -->
127
  <?php
128
+ if ( ! $license_key_only ) {
129
+ if ( $lib->is_pro() || ! $multisite ) {
130
  ?>
131
 
132
  <div id="ure_tabs-2">
133
  <form name="ure_additional_modules" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
134
  <table id="ure_addons">
135
  <?php
136
+ if ( ! $multisite ) {
137
  ?>
138
  <tr>
139
  <td>
140
+ <input type="checkbox" name="count_users_without_role" id="count_users_without_role" value="1" <?php checked( $count_users_without_role, 1 ); ?> />
141
+ <label for="count_users_without_role"><?php esc_html_e( 'Count users without role', 'user-role-editor' ); ?></label></td>
 
142
  <td>
143
  </td>
144
  </tr>
147
  ?>
148
 
149
  <?php
150
+ do_action( 'ure_settings_show2' );
151
  ?>
152
  </table>
153
+ <?php wp_nonce_field( 'user-role-editor' ); ?>
154
  <input type="hidden" name="ure_tab_idx" value="1" />
155
  <p class="submit">
156
+ <input type="submit" class="button-primary" name="ure_addons_settings_update" value="<?php esc_html_e('Save', 'user-role-editor') ?>" />
157
 
158
  </form>
159
  </div>
164
  <div id="ure_tabs-3">
165
  <form name="ure_default_roles" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
166
  <?php
167
+ if ( ! $multisite ) {
168
+ esc_html_e( 'Primary default role: ', 'user-role-editor' );
169
  echo $view->role_default_html;
170
  ?>
171
  <hr>
172
  <?php
173
  }
174
  ?>
175
+ <?php esc_html_e( 'Other default roles for new registered user: ', 'user-role-editor' ); ?>
176
  <div id="other_default_roles">
177
  <?php $lib->show_other_default_roles(); ?>
178
  </div>
179
  <?php
180
+ if ( $multisite ) {
181
+ echo '<p>'. esc_html__( 'Note for multisite environment: take into account that other default roles should exist at the site, in order to be assigned to the new registered users.', 'user-role-editor' ) .'</p>';
182
  }
183
  ?>
184
  <hr>
185
+ <?php wp_nonce_field( 'user-role-editor' ); ?>
186
+ <input type="hidden" name="ure_tab_idx" value="<?php echo $tabs_index[3]; ?>" />
187
  <p class="submit">
188
+ <input type="submit" class="button-primary" name="ure_default_roles_update" value="<?php esc_html_e( 'Save', 'user-role-editor' ) ?>" />
189
  </p>
190
  </form>
191
  </div> <!-- ure_tabs-3 -->
192
 
193
  <?php
194
+ if ( $multisite && ( $lib->is_pro() || $lib->is_super_admin() ) ) {
195
  ?>
196
  <div id="ure_tabs-4">
197
  <div id="ure-settings-form-ms">
198
  <form name="ure_settings_ms" method="post" action="<?php echo $link; ?>?page=settings-<?php echo URE_PLUGIN_FILE; ?>" >
199
  <table id="ure_settings_ms">
200
  <?php
201
+ if ( $lib->is_super_admin() ) {
202
  ?>
203
  <tr>
204
  <td>
205
  <input type="checkbox" name="allow_edit_users_to_not_super_admin" id="allow_edit_users_to_not_super_admin" value="1"
206
+ <?php checked( $allow_edit_users_to_not_super_admin, 1 ); ?> />
207
+ <label for="allow_edit_users_to_not_super_admin"><?php esc_html_e( 'Allow non super administrators to create, edit, and delete users', 'user-role-editor' ); ?></label>
208
  </td>
209
  <td>
210
  </td>
211
  </tr>
212
  <?php
213
  }
214
+ do_action( 'ure_settings_ms_show' );
215
  ?>
216
  </table>
217
+ <?php wp_nonce_field( 'user-role-editor' ); ?>
218
+ <input type="hidden" name="ure_tab_idx" value="<?php echo $tabs_index[4]; ?>" />
219
  <p class="submit">
220
+ <input type="submit" class="button-primary" name="ure_settings_ms_update" value="<?php esc_html_e( 'Save', 'user-role-editor' ); ?>" />
221
  </p>
222
  </form>
223
  </div> <!-- ure-settings-form-ms -->
243
  URE_View::output_confirmation_dialog();
244
  ?>
245
  <script>
246
+ jQuery(function($) {
247
+ $('#ure_tabs').tabs();
248
  <?php
249
  $ure_tab_idx = (int) $ure_tab_idx;
250
  if ($ure_tab_idx>0 && $ure_tab_idx<=count($tabs_index)) {
251
  ?>
252
+ $('#ure_tabs').tabs('option', 'active', <?php echo $ure_tab_idx; ?>);
253
  <?php
254
  }
255
  ?>
256
 
257
+ });
258
  </script>
lang/user-role-editor.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2017-03-04 12:06+0700\n"
7
  "PO-Revision-Date: \n"
8
  "Last-Translator: Vladimir Garagulya <vladimir@shinephp.com>\n"
9
  "Language-Team: https://www.role-editor.com <support@role-editor.com>\n"
@@ -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 1.8.7.1\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
  #: ../includes/classes/capabilities-groups-manager.php:44
@@ -22,9 +22,8 @@ msgid "Custom Post Types"
22
  msgstr ""
23
 
24
  #: ../includes/classes/capabilities-groups-manager.php:75
25
- #: ../includes/classes/ure-lib.php:232
26
- #: ../includes/classes/user-role-editor.php:563
27
- #: ../includes/classes/user-role-editor.php:594
28
  msgid "User Role Editor"
29
  msgstr ""
30
 
@@ -42,8 +41,8 @@ msgid "All"
42
  msgstr ""
43
 
44
  #: ../includes/classes/capabilities-groups-manager.php:112
45
- #: ../includes/classes/user-role-editor.php:535
46
- #: ../includes/settings-template.php:21
47
  msgid "General"
48
  msgstr ""
49
 
@@ -68,8 +67,8 @@ msgid "Users"
68
  msgstr ""
69
 
70
  #: ../includes/classes/capabilities-groups-manager.php:121
71
- #: ../includes/classes/user-role-editor.php:553
72
- #: ../includes/settings-template.php:34
73
  msgid "Multisite"
74
  msgstr ""
75
 
@@ -81,818 +80,889 @@ msgstr ""
81
  msgid "Custom capabilities"
82
  msgstr ""
83
 
84
- #: ../includes/classes/capability.php:56 ../includes/classes/capability.php:164
85
- #: ../includes/classes/ure-lib.php:1225 ../includes/classes/ure-lib.php:1500
86
- #: ../includes/classes/ure-lib.php:1616 ../includes/classes/ure-lib.php:1664
87
- #: ../includes/classes/user-role-editor.php:804
88
- msgid "Insufficient permissions to work with User Role Editor"
89
  msgstr ""
90
 
91
- #: ../includes/classes/capability.php:66
92
- msgid "Error: Capability name must contain latin characters and digits only!"
93
  msgstr ""
94
 
95
- #: ../includes/classes/capability.php:78
 
 
 
 
 
 
 
96
  #, php-format
97
- msgid "Capability %s is added successfully"
98
  msgstr ""
99
 
100
- #: ../includes/classes/capability.php:80
101
  #, php-format
102
  msgid "Capability %s exists already"
103
  msgstr ""
104
 
105
- #: ../includes/classes/capability.php:171
106
- #: ../includes/classes/capability.php:176
107
  msgid "There are no capabilities available for deletion!"
108
  msgstr ""
109
 
110
- #: ../includes/classes/capability.php:182
111
  #, php-format
112
  msgid "Capability %s was removed successfully"
113
  msgstr ""
114
 
115
- #: ../includes/classes/capability.php:185
116
  msgid "capabilities were removed successfully"
117
  msgstr ""
118
 
119
- #: ../includes/classes/grant-roles.php:81
120
- msgid "Invalid data at the users list"
121
- msgstr ""
122
-
123
- #: ../includes/classes/grant-roles.php:87
124
- msgid "Invalid data at the roles list"
125
- msgstr ""
126
-
127
- #: ../includes/classes/grant-roles.php:92
128
- msgid "Not enough permissions"
129
- msgstr ""
130
-
131
- #: ../includes/classes/grant-roles.php:137
132
- msgid "Working..."
133
- msgstr ""
134
-
135
- #: ../includes/classes/grant-roles.php:151
136
- msgid "Grant roles to selected users"
137
- msgstr ""
138
-
139
- #: ../includes/classes/grant-roles.php:152
140
- msgid "Select users to which you wish to grant multiple roles!"
141
- msgstr ""
142
-
143
  #: ../includes/classes/grant-roles.php:153
144
- msgid "Select role(s) which you wish to grant!"
145
- msgstr ""
146
-
147
- #: ../includes/classes/role-additional-options.php:69
148
- msgid "Hide admin bar"
149
- msgstr ""
150
-
151
- #: ../includes/classes/role-additional-options.php:121
152
- msgid "Additional Options"
153
- msgstr ""
154
-
155
- #: ../includes/classes/role-view.php:75
156
- msgid "None"
157
- msgstr ""
158
-
159
- #: ../includes/classes/role-view.php:108
160
- msgid "Delete All Unused Roles"
161
- msgstr ""
162
-
163
- #: ../includes/classes/role-view.php:208 ../includes/classes/role-view.php:219
164
- msgid "Role name (ID): "
165
- msgstr ""
166
-
167
- #: ../includes/classes/role-view.php:210 ../includes/classes/role-view.php:221
168
- msgid "Display Role Name: "
169
- msgstr ""
170
-
171
- #: ../includes/classes/role-view.php:212
172
- msgid "Make copy of: "
173
- msgstr ""
174
-
175
- #: ../includes/classes/role-view.php:228
176
- msgid "Select Role:"
177
- msgstr ""
178
-
179
- #: ../includes/classes/role-view.php:253
180
- msgid "Capability name (ID): "
181
- msgstr ""
182
-
183
- #: ../includes/classes/role-view.php:372 ../includes/classes/user-view.php:154
184
- msgid "Show capabilities in human readable form"
185
- msgstr ""
186
-
187
- #: ../includes/classes/role-view.php:382 ../includes/classes/screen-help.php:21
188
- #: ../includes/classes/user-view.php:164 ../includes/settings-template.php:69
189
- msgid "Show deprecated capabilities"
190
- msgstr ""
191
-
192
- #: ../includes/classes/role-view.php:386
193
- msgid "If checked, then apply action to ALL sites of this Network"
194
- msgstr ""
195
-
196
- #: ../includes/classes/role-view.php:399
197
- msgid "Apply to All Sites"
198
- msgstr ""
199
-
200
- #: ../includes/classes/role-view.php:416
201
- msgid "Select Role and change its capabilities:"
202
- msgstr ""
203
-
204
- #: ../includes/classes/screen-help.php:12
205
- #: ../includes/classes/screen-help.php:41
206
- #: ../includes/classes/screen-help.php:60
207
- #: ../includes/classes/screen-help.php:79
208
- msgid "User Role Editor Options page help"
209
  msgstr ""
210
 
211
- #: ../includes/classes/screen-help.php:15 ../includes/settings-template.php:53
212
- msgid "Show Administrator role at User Role Editor"
213
  msgstr ""
214
 
215
- #: ../includes/classes/screen-help.php:16
216
- msgid ""
217
- "turn this option on in order to make the \"Administrator\" role available at "
218
- "the User Role Editor roles selection drop-down list. It is hidden by default "
219
- "for security reasons."
220
  msgstr ""
221
 
222
- #: ../includes/classes/screen-help.php:18 ../includes/settings-template.php:61
223
- msgid "Show capabilities in the human readable form"
224
  msgstr ""
225
 
226
- #: ../includes/classes/screen-help.php:19
227
- msgid ""
228
- "automatically converts capability names from the technical form for internal "
229
- "use like \"edit_others_posts\" to more user friendly form, e.g. \"Edit "
230
- "others posts\"."
231
  msgstr ""
232
 
233
- #: ../includes/classes/screen-help.php:22
234
- msgid ""
235
- "Capabilities like \"level_0\", \"level_1\" are deprecated and are not used "
236
- "by WordPress. They are left at the user roles for the compatibility purpose "
237
- "with the old themes and plugins code. Turning on this option will show those "
238
- "deprecated capabilities."
239
  msgstr ""
240
 
241
- #: ../includes/classes/screen-help.php:25 ../includes/settings-template.php:85
242
- msgid "Edit user capabilities"
243
  msgstr ""
244
 
245
- #: ../includes/classes/screen-help.php:26
246
- msgid ""
247
- "If turned off - capabilities section of selected user is shown in readonly "
248
- "mode. Administrator can not assign capabilities to the user directly. He "
249
- "should make it using roles only."
250
  msgstr ""
251
 
252
- #: ../includes/classes/screen-help.php:45 ../includes/settings-template.php:119
253
- msgid "Count users without role"
254
  msgstr ""
255
 
256
- #: ../includes/classes/screen-help.php:46
257
- msgid ""
258
- "Show at the \"Users\" page a quant of users without role. Module allows to "
259
- "assign all of them an empty role \"No rights\", in order to look on the "
260
- "users list with role \"No rights\" at the separate tab then."
261
  msgstr ""
262
 
263
- #: ../includes/classes/screen-help.php:63
264
- msgid "Other default roles for new registered user"
265
  msgstr ""
266
 
267
- #: ../includes/classes/screen-help.php:64
268
- msgid ""
269
- "select roles below to assign them to the new user automatically as an "
270
- "addition to the primary role. Note for multisite environment: take into "
271
- "account that other default roles should exist at the site, in order to be "
272
- "assigned to the new registered users."
273
  msgstr ""
274
 
275
- #: ../includes/classes/screen-help.php:82
276
- msgid "Allow non super-admininstrators to create, edit and delete users"
277
  msgstr ""
278
 
279
- #: ../includes/classes/screen-help.php:83
280
- msgid ""
281
- "Super administrator only may create, edit and delete users under WordPress "
282
- "multi-site by default. Turn this option on in order to remove this "
283
- "limitation."
284
  msgstr ""
285
 
286
- #: ../includes/classes/ure-lib.php:209
287
  msgid "Error: wrong request"
288
  msgstr ""
289
 
290
- #: ../includes/classes/ure-lib.php:293
291
  msgid "Error: "
292
  msgstr ""
293
 
294
- #: ../includes/classes/ure-lib.php:293
295
  msgid "Role"
296
  msgstr ""
297
 
298
- #: ../includes/classes/ure-lib.php:294
299
  msgid "does not exist"
300
  msgstr ""
301
 
302
- #: ../includes/classes/ure-lib.php:337
303
  msgid "Role is updated successfully"
304
  msgstr ""
305
 
306
- #: ../includes/classes/ure-lib.php:339
307
  msgid "Roles are updated for all network"
308
  msgstr ""
309
 
310
- #: ../includes/classes/ure-lib.php:345
311
- msgid "Error occured during role(s) update"
312
  msgstr ""
313
 
314
- #: ../includes/classes/ure-lib.php:352
315
  msgid "User capabilities are updated successfully"
316
  msgstr ""
317
 
318
- #: ../includes/classes/ure-lib.php:357
319
- msgid "Error occured during user update"
320
  msgstr ""
321
 
322
- #: ../includes/classes/ure-lib.php:415
323
  msgid "User Roles are restored to WordPress default values. "
324
  msgstr ""
325
 
326
- #: ../includes/classes/ure-lib.php:1463
327
- msgid "Error is occur. Please check the log file."
328
- msgstr ""
329
-
330
- #: ../includes/classes/ure-lib.php:1509 ../includes/classes/ure-lib.php:1576
331
  msgid ""
332
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
333
  "only!"
334
  msgstr ""
335
 
336
- #: ../includes/classes/ure-lib.php:1513 ../includes/classes/ure-lib.php:1580
337
  msgid ""
338
  "Error: WordPress does not support numeric Role name (ID). Add latin "
339
  "characters to it."
340
  msgstr ""
341
 
342
- #: ../includes/classes/ure-lib.php:1528
343
  #, php-format
344
  msgid "Role %s exists already"
345
  msgstr ""
346
 
347
- #: ../includes/classes/ure-lib.php:1543
348
  msgid "Error is encountered during new role create operation"
349
  msgstr ""
350
 
351
- #: ../includes/classes/ure-lib.php:1545
352
  #, php-format
353
  msgid "Role %s is created successfully"
354
  msgstr ""
355
 
356
- #: ../includes/classes/ure-lib.php:1569
357
  msgid "Error: Role ID is empty!"
358
  msgstr ""
359
 
360
- #: ../includes/classes/ure-lib.php:1587
361
  msgid "Error: Empty role display name is not allowed."
362
  msgstr ""
363
 
364
- #: ../includes/classes/ure-lib.php:1594
365
  #, php-format
366
  msgid "Role %s does not exists"
367
  msgstr ""
368
 
369
- #: ../includes/classes/ure-lib.php:1602
370
  #, php-format
371
  msgid "Role %s is renamed to %s successfully"
372
  msgstr ""
373
 
374
- #: ../includes/classes/ure-lib.php:1675
375
  msgid "Error encountered during role delete operation"
376
  msgstr ""
377
 
378
- #: ../includes/classes/ure-lib.php:1677
379
  msgid "Unused roles are deleted successfully"
380
  msgstr ""
381
 
382
- #: ../includes/classes/ure-lib.php:1679
383
  #, php-format
384
  msgid "Role %s is deleted successfully"
385
  msgstr ""
386
 
387
- #: ../includes/classes/ure-lib.php:1710
388
- msgid "Error encountered during default role change operation"
389
- msgstr ""
390
-
391
- #: ../includes/classes/ure-lib.php:1713
392
  #, php-format
393
  msgid "Default role for new users is set to %s successfully"
394
  msgstr ""
395
 
396
- #: ../includes/classes/ure-lib.php:1716
 
 
 
 
397
  msgid "Can not set Administrator role as a default one"
398
  msgstr ""
399
 
400
- #: ../includes/classes/ure-lib.php:1718
401
  msgid "This role does not exist - "
402
  msgstr ""
403
 
404
- #: ../includes/classes/ure-lib.php:1734
405
  msgid "Editor"
406
  msgstr ""
407
 
408
- #: ../includes/classes/ure-lib.php:1735
409
  msgid "Author"
410
  msgstr ""
411
 
412
- #: ../includes/classes/ure-lib.php:1736
413
  msgid "Contributor"
414
  msgstr ""
415
 
416
- #: ../includes/classes/ure-lib.php:1737
417
  msgid "Subscriber"
418
  msgstr ""
419
 
420
- #: ../includes/classes/ure-lib.php:1739
421
  msgid "Switch themes"
422
  msgstr ""
423
 
424
- #: ../includes/classes/ure-lib.php:1740
425
  msgid "Edit themes"
426
  msgstr ""
427
 
428
- #: ../includes/classes/ure-lib.php:1741
429
  msgid "Activate plugins"
430
  msgstr ""
431
 
432
- #: ../includes/classes/ure-lib.php:1742
433
  msgid "Edit plugins"
434
  msgstr ""
435
 
436
- #: ../includes/classes/ure-lib.php:1743
437
  msgid "Edit users"
438
  msgstr ""
439
 
440
- #: ../includes/classes/ure-lib.php:1744
441
  msgid "Edit files"
442
  msgstr ""
443
 
444
- #: ../includes/classes/ure-lib.php:1745
445
  msgid "Manage options"
446
  msgstr ""
447
 
448
- #: ../includes/classes/ure-lib.php:1746
449
  msgid "Moderate comments"
450
  msgstr ""
451
 
452
- #: ../includes/classes/ure-lib.php:1747
453
  msgid "Manage categories"
454
  msgstr ""
455
 
456
- #: ../includes/classes/ure-lib.php:1748
457
  msgid "Manage links"
458
  msgstr ""
459
 
460
- #: ../includes/classes/ure-lib.php:1749
461
  msgid "Upload files"
462
  msgstr ""
463
 
464
- #: ../includes/classes/ure-lib.php:1750
465
  msgid "Import"
466
  msgstr ""
467
 
468
- #: ../includes/classes/ure-lib.php:1751
469
  msgid "Unfiltered html"
470
  msgstr ""
471
 
472
- #: ../includes/classes/ure-lib.php:1752
473
  msgid "Edit posts"
474
  msgstr ""
475
 
476
- #: ../includes/classes/ure-lib.php:1753
477
  msgid "Edit others posts"
478
  msgstr ""
479
 
480
- #: ../includes/classes/ure-lib.php:1754
481
  msgid "Edit published posts"
482
  msgstr ""
483
 
484
- #: ../includes/classes/ure-lib.php:1755
485
  msgid "Publish posts"
486
  msgstr ""
487
 
488
- #: ../includes/classes/ure-lib.php:1756
489
  msgid "Edit pages"
490
  msgstr ""
491
 
492
- #: ../includes/classes/ure-lib.php:1757
493
  msgid "Read"
494
  msgstr ""
495
 
496
- #: ../includes/classes/ure-lib.php:1758
497
  msgid "Level 10"
498
  msgstr ""
499
 
500
- #: ../includes/classes/ure-lib.php:1759
501
  msgid "Level 9"
502
  msgstr ""
503
 
504
- #: ../includes/classes/ure-lib.php:1760
505
  msgid "Level 8"
506
  msgstr ""
507
 
508
- #: ../includes/classes/ure-lib.php:1761
509
  msgid "Level 7"
510
  msgstr ""
511
 
512
- #: ../includes/classes/ure-lib.php:1762
513
  msgid "Level 6"
514
  msgstr ""
515
 
516
- #: ../includes/classes/ure-lib.php:1763
517
  msgid "Level 5"
518
  msgstr ""
519
 
520
- #: ../includes/classes/ure-lib.php:1764
521
  msgid "Level 4"
522
  msgstr ""
523
 
524
- #: ../includes/classes/ure-lib.php:1765
525
  msgid "Level 3"
526
  msgstr ""
527
 
528
- #: ../includes/classes/ure-lib.php:1766
529
  msgid "Level 2"
530
  msgstr ""
531
 
532
- #: ../includes/classes/ure-lib.php:1767
533
  msgid "Level 1"
534
  msgstr ""
535
 
536
- #: ../includes/classes/ure-lib.php:1768
537
  msgid "Level 0"
538
  msgstr ""
539
 
540
- #: ../includes/classes/ure-lib.php:1769
541
  msgid "Edit others pages"
542
  msgstr ""
543
 
544
- #: ../includes/classes/ure-lib.php:1770
545
  msgid "Edit published pages"
546
  msgstr ""
547
 
548
- #: ../includes/classes/ure-lib.php:1771
549
  msgid "Publish pages"
550
  msgstr ""
551
 
552
- #: ../includes/classes/ure-lib.php:1772
553
  msgid "Delete pages"
554
  msgstr ""
555
 
556
- #: ../includes/classes/ure-lib.php:1773
557
  msgid "Delete others pages"
558
  msgstr ""
559
 
560
- #: ../includes/classes/ure-lib.php:1774
561
  msgid "Delete published pages"
562
  msgstr ""
563
 
564
- #: ../includes/classes/ure-lib.php:1775
565
  msgid "Delete posts"
566
  msgstr ""
567
 
568
- #: ../includes/classes/ure-lib.php:1776
569
  msgid "Delete others posts"
570
  msgstr ""
571
 
572
- #: ../includes/classes/ure-lib.php:1777
573
  msgid "Delete published posts"
574
  msgstr ""
575
 
576
- #: ../includes/classes/ure-lib.php:1778
577
  msgid "Delete private posts"
578
  msgstr ""
579
 
580
- #: ../includes/classes/ure-lib.php:1779
581
  msgid "Edit private posts"
582
  msgstr ""
583
 
584
- #: ../includes/classes/ure-lib.php:1780
585
  msgid "Read private posts"
586
  msgstr ""
587
 
588
- #: ../includes/classes/ure-lib.php:1781
589
  msgid "Delete private pages"
590
  msgstr ""
591
 
592
- #: ../includes/classes/ure-lib.php:1782
593
  msgid "Edit private pages"
594
  msgstr ""
595
 
596
- #: ../includes/classes/ure-lib.php:1783
597
  msgid "Read private pages"
598
  msgstr ""
599
 
600
- #: ../includes/classes/ure-lib.php:1784
601
  msgid "Delete users"
602
  msgstr ""
603
 
604
- #: ../includes/classes/ure-lib.php:1785
605
  msgid "Create users"
606
  msgstr ""
607
 
608
- #: ../includes/classes/ure-lib.php:1786
609
  msgid "Unfiltered upload"
610
  msgstr ""
611
 
612
- #: ../includes/classes/ure-lib.php:1787
613
  msgid "Edit dashboard"
614
  msgstr ""
615
 
616
- #: ../includes/classes/ure-lib.php:1788
617
  msgid "Update plugins"
618
  msgstr ""
619
 
620
- #: ../includes/classes/ure-lib.php:1789
621
  msgid "Delete plugins"
622
  msgstr ""
623
 
624
- #: ../includes/classes/ure-lib.php:1790
625
  msgid "Install plugins"
626
  msgstr ""
627
 
628
- #: ../includes/classes/ure-lib.php:1791
629
  msgid "Update themes"
630
  msgstr ""
631
 
632
- #: ../includes/classes/ure-lib.php:1792
633
  msgid "Install themes"
634
  msgstr ""
635
 
636
- #: ../includes/classes/ure-lib.php:1793
637
  msgid "Update core"
638
  msgstr ""
639
 
640
- #: ../includes/classes/ure-lib.php:1794
641
  msgid "List users"
642
  msgstr ""
643
 
644
- #: ../includes/classes/ure-lib.php:1795
645
  msgid "Remove users"
646
  msgstr ""
647
 
648
- #: ../includes/classes/ure-lib.php:1796
649
  msgid "Add users"
650
  msgstr ""
651
 
652
- #: ../includes/classes/ure-lib.php:1797
653
  msgid "Promote users"
654
  msgstr ""
655
 
656
- #: ../includes/classes/ure-lib.php:1798
657
  msgid "Edit theme options"
658
  msgstr ""
659
 
660
- #: ../includes/classes/ure-lib.php:1799
661
  msgid "Delete themes"
662
  msgstr ""
663
 
664
- #: ../includes/classes/ure-lib.php:1800
665
  msgid "Export"
666
  msgstr ""
667
 
668
- #: ../includes/classes/ure-lib.php:1965
669
  msgid "Version:"
670
  msgstr ""
671
 
672
- #: ../includes/classes/ure-lib.php:1966
673
  msgid "Author's website"
674
  msgstr ""
675
 
676
- #: ../includes/classes/ure-lib.php:1967
677
  msgid "Plugin webpage"
678
  msgstr ""
679
 
680
- #: ../includes/classes/ure-lib.php:1968
681
  msgid "Plugin download"
682
  msgstr ""
683
 
684
- #: ../includes/classes/ure-lib.php:1969
685
- #: ../includes/classes/user-role-editor.php:512
686
  msgid "Changelog"
687
  msgstr ""
688
 
689
- #: ../includes/classes/ure-lib.php:1970
690
  msgid "FAQ"
691
  msgstr ""
692
 
693
- #: ../includes/classes/ure-lib.php:2152
694
  #, php-format
695
  msgid "Denied: %s"
696
  msgstr ""
697
 
698
- #: ../includes/classes/user-other-roles.php:81
699
- #: ../includes/classes/user-other-roles.php:182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
700
  msgid "Other Roles"
701
  msgstr ""
702
 
703
- #: ../includes/classes/user-other-roles.php:82
704
  msgid "Select additional roles for this user"
705
  msgstr ""
706
 
707
- #: ../includes/classes/user-other-roles.php:161
708
- #: ../includes/classes/user-role-editor.php:394
709
  msgid "Capabilities"
710
  msgstr ""
711
 
712
- #: ../includes/classes/user-other-roles.php:168
713
  msgid "Edit"
714
  msgstr ""
715
 
716
- #: ../includes/classes/user-other-roles.php:218
717
  msgid "Additional Capabilities"
718
  msgstr ""
719
 
720
- #: ../includes/classes/user-role-editor.php:293
721
  msgid "Change role for users without role"
722
  msgstr ""
723
 
724
- #: ../includes/classes/user-role-editor.php:294
725
  msgid "To:"
726
  msgstr ""
727
 
728
- #: ../includes/classes/user-role-editor.php:295
729
  msgid "No rights"
730
  msgstr ""
731
 
732
- #: ../includes/classes/user-role-editor.php:296
733
  msgid "Provide new role"
734
  msgstr ""
735
 
736
- #: ../includes/classes/user-role-editor.php:368
737
- #: ../includes/classes/user-role-editor.php:370
738
  msgid "You do not have permission to edit this user."
739
  msgstr ""
740
 
741
- #: ../includes/classes/user-role-editor.php:486
742
- #: ../includes/classes/user-role-editor.php:499
743
  msgid "Settings"
744
  msgstr ""
745
 
746
- #: ../includes/classes/user-role-editor.php:541
747
  #: ../includes/settings-template.php:26
748
  msgid "Additional Modules"
749
  msgstr ""
750
 
751
- #: ../includes/classes/user-role-editor.php:547
752
- #: ../includes/settings-template.php:30
753
  msgid "Default Roles"
754
  msgstr ""
755
 
756
- #: ../includes/classes/user-role-editor.php:657
757
- #: ../includes/classes/user-role-editor.php:675
758
- #: ../includes/classes/user-role-editor.php:720
759
- msgid "User Role Editor options are updated"
760
- msgstr ""
761
-
762
- #: ../includes/classes/user-role-editor.php:703
763
- msgid "Default Roles are updated"
764
- msgstr ""
765
-
766
- #: ../includes/classes/user-role-editor.php:729
767
  msgid ""
768
  "You do not have sufficient permissions to manage options for User Role "
769
  "Editor."
770
  msgstr ""
771
 
772
- #: ../includes/classes/user-role-editor.php:842
 
773
  msgid "Confirm"
774
  msgstr ""
775
 
776
- #: ../includes/classes/user-role-editor.php:843
 
777
  msgid "Yes"
778
  msgstr ""
779
 
780
- #: ../includes/classes/user-role-editor.php:844
 
781
  msgid "No"
782
  msgstr ""
783
 
784
- #: ../includes/classes/user-role-editor.php:845
785
- msgid "Select All"
786
- msgstr ""
787
-
788
- #: ../includes/classes/user-role-editor.php:846
789
- msgid "Unselect All"
790
- msgstr ""
791
-
792
- #: ../includes/classes/user-role-editor.php:847
793
- msgid "Reverse"
794
- msgstr ""
795
-
796
- #: ../includes/classes/user-role-editor.php:848
797
  msgid "Update"
798
  msgstr ""
799
 
800
- #: ../includes/classes/user-role-editor.php:849
801
  msgid "Please confirm permissions update"
802
  msgstr ""
803
 
804
- #: ../includes/classes/user-role-editor.php:850
805
  msgid "Add New Role"
806
  msgstr ""
807
 
808
- #: ../includes/classes/user-role-editor.php:851
809
- #: ../includes/classes/user-role-editor.php:856
810
  msgid "Rename Role"
811
  msgstr ""
812
 
813
- #: ../includes/classes/user-role-editor.php:852
814
  msgid " Role name (ID) can not be empty!"
815
  msgstr ""
816
 
817
- #: ../includes/classes/user-role-editor.php:853
818
  msgid ""
819
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
820
  "only!"
821
  msgstr ""
822
 
823
- #: ../includes/classes/user-role-editor.php:854
824
  msgid ""
825
  " WordPress does not support numeric Role name (ID). Add latin characters to "
826
  "it."
827
  msgstr ""
828
 
829
- #: ../includes/classes/user-role-editor.php:855
830
  msgid "Add Role"
831
  msgstr ""
832
 
833
- #: ../includes/classes/user-role-editor.php:857
834
  msgid "Delete Role"
835
  msgstr ""
836
 
837
- #: ../includes/classes/user-role-editor.php:858
838
  msgid "Cancel"
839
  msgstr ""
840
 
841
- #: ../includes/classes/user-role-editor.php:859
842
  msgid "Add Capability"
843
  msgstr ""
844
 
845
- #: ../includes/classes/user-role-editor.php:860
846
- #: ../includes/classes/user-role-editor.php:869
847
  msgid "Delete Capability"
848
  msgstr ""
849
 
850
- #: ../includes/classes/user-role-editor.php:861
851
- msgid "Reset"
 
852
  msgstr ""
853
 
854
- #: ../includes/classes/user-role-editor.php:862
855
- msgid "DANGER! Resetting will restore default settings from WordPress Core."
856
  msgstr ""
857
 
858
- #: ../includes/classes/user-role-editor.php:863
859
- msgid ""
860
- "If any plugins have changed capabilities in any way upon installation (such "
861
- "as S2Member, WooCommerce, and many more), those capabilities will be DELETED!"
862
  msgstr ""
863
 
864
- #: ../includes/classes/user-role-editor.php:864
865
  msgid ""
866
- "For more information on how to undo changes and restore plugin capabilities "
867
- "go to"
868
  msgstr ""
869
 
870
- #: ../includes/classes/user-role-editor.php:866
871
- msgid "Continue?"
872
  msgstr ""
873
 
874
- #: ../includes/classes/user-role-editor.php:867
875
- msgid "Default Role"
 
 
876
  msgstr ""
877
 
878
- #: ../includes/classes/user-role-editor.php:868
879
- msgid "Set New Default Role"
880
  msgstr ""
881
 
882
- #: ../includes/classes/user-role-editor.php:870
883
  msgid ""
884
- "Warning! Be careful - removing critical capability could crash some plugin "
885
- "or other custom code"
886
  msgstr ""
887
 
888
- #: ../includes/classes/user-role-editor.php:871
889
- msgid " Capability name (ID) can not be empty!"
 
 
 
890
  msgstr ""
891
 
892
- #: ../includes/classes/user-role-editor.php:872
893
  msgid ""
894
- " Capability name (ID) must contain latin characters, digits, hyphens or "
895
- "underscore only!"
896
  msgstr ""
897
 
898
  #: ../includes/classes/user-view.php:61
@@ -903,82 +973,90 @@ msgstr ""
903
  msgid "Network Super Admin"
904
  msgstr ""
905
 
906
- #: ../includes/classes/user-view.php:98
907
- msgid "&mdash; No role for this site &mdash;"
908
- msgstr ""
909
-
910
- #: ../includes/classes/user-view.php:137
911
  msgid "Change capabilities for user"
912
  msgstr ""
913
 
914
- #: ../includes/classes/user-view.php:172
915
  msgid "Primary Role:"
916
  msgstr ""
917
 
918
- #: ../includes/classes/user-view.php:178
919
  msgid "bbPress Role:"
920
  msgstr ""
921
 
922
- #: ../includes/classes/user-view.php:187
923
  msgid "Other Roles:"
924
  msgstr ""
925
 
926
- #: ../includes/classes/view.php:260
 
 
 
 
927
  msgid "Group"
928
  msgstr ""
929
 
930
- #: ../includes/classes/view.php:260
931
  msgid "Total"
932
  msgstr ""
933
 
934
- #: ../includes/classes/view.php:260
935
  msgid "Granted"
936
  msgstr ""
937
 
938
- #: ../includes/classes/view.php:267
939
  msgid "Quick filter:"
940
  msgstr ""
941
 
942
- #: ../includes/classes/view.php:270
943
  msgid "Granted Only"
944
  msgstr ""
945
 
946
- #: ../includes/classes/view.php:273
947
  msgid "Columns:"
948
  msgstr ""
949
 
950
- #: ../includes/settings-template.php:17
951
  msgid "User Role Editor - Options"
952
  msgstr ""
953
 
954
- #: ../includes/settings-template.php:39
 
 
 
 
955
  msgid "About"
956
  msgstr ""
957
 
958
- #: ../includes/settings-template.php:77
959
- msgid "Confirm role update"
 
 
 
 
960
  msgstr ""
961
 
962
- #: ../includes/settings-template.php:98 ../includes/settings-template.php:134
963
- #: ../includes/settings-template.php:166 ../includes/settings-template.php:198
964
  msgid "Save"
965
  msgstr ""
966
 
967
- #: ../includes/settings-template.php:146
968
  msgid "Primary default role: "
969
  msgstr ""
970
 
971
- #: ../includes/settings-template.php:153
972
  msgid "Other default roles for new registered user: "
973
  msgstr ""
974
 
975
- #: ../includes/settings-template.php:159
976
  msgid ""
977
  "Note for multisite environment: take into account that other default roles "
978
  "should exist at the site, in order to be assigned to the new registered "
979
  "users."
980
  msgstr ""
981
 
982
- #: ../includes/settings-template.php:185
983
  msgid "Allow non super administrators to create, edit, and delete users"
984
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: User Role Editor 4.19.2\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2018-09-24 10:33+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.0.6\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/lib.php:234 ../includes/classes/user-role-editor.php:557
26
+ #: ../includes/classes/user-role-editor.php:588
 
27
  msgid "User Role Editor"
28
  msgstr ""
29
 
41
  msgstr ""
42
 
43
  #: ../includes/classes/capabilities-groups-manager.php:112
44
+ #: ../includes/classes/user-role-editor.php:529
45
+ #: ../includes/settings-template.php:20
46
  msgid "General"
47
  msgstr ""
48
 
67
  msgstr ""
68
 
69
  #: ../includes/classes/capabilities-groups-manager.php:121
70
+ #: ../includes/classes/user-role-editor.php:547
71
+ #: ../includes/settings-template.php:36
72
  msgid "Multisite"
73
  msgstr ""
74
 
80
  msgid "Custom capabilities"
81
  msgstr ""
82
 
83
+ #: ../includes/classes/capability.php:38
84
+ msgid "Error: Capability name must contain latin characters and digits only!"
 
 
 
85
  msgstr ""
86
 
87
+ #: ../includes/classes/capability.php:47
88
+ msgid "Error: this capability is used internally by WordPress"
89
  msgstr ""
90
 
91
+ #: ../includes/classes/capability.php:72 ../includes/classes/capability.php:179
92
+ #: ../includes/classes/lib.php:1161 ../includes/classes/lib.php:1405
93
+ #: ../includes/classes/lib.php:1520 ../includes/classes/lib.php:1567
94
+ #: ../includes/classes/user-role-editor.php:641
95
+ msgid "Insufficient permissions to work with User Role Editor"
96
+ msgstr ""
97
+
98
+ #: ../includes/classes/capability.php:94
99
  #, php-format
100
+ msgid "Capability %s was added successfully"
101
  msgstr ""
102
 
103
+ #: ../includes/classes/capability.php:96
104
  #, php-format
105
  msgid "Capability %s exists already"
106
  msgstr ""
107
 
108
+ #: ../includes/classes/capability.php:186
109
+ #: ../includes/classes/capability.php:191
110
  msgid "There are no capabilities available for deletion!"
111
  msgstr ""
112
 
113
+ #: ../includes/classes/capability.php:197
114
  #, php-format
115
  msgid "Capability %s was removed successfully"
116
  msgstr ""
117
 
118
+ #: ../includes/classes/capability.php:200
119
  msgid "capabilities were removed successfully"
120
  msgstr ""
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  #: ../includes/classes/grant-roles.php:153
123
+ #: ../includes/classes/grant-roles.php:199
124
+ msgid "Not enough permissions"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  msgstr ""
126
 
127
+ #: ../includes/classes/grant-roles.php:159
128
+ msgid "Can not edit user or invalid data at the users list"
129
  msgstr ""
130
 
131
+ #: ../includes/classes/grant-roles.php:167
132
+ msgid "Invalid primary role"
 
 
 
133
  msgstr ""
134
 
135
+ #: ../includes/classes/grant-roles.php:180
136
+ msgid "Invalid data at the other roles list"
137
  msgstr ""
138
 
139
+ #: ../includes/classes/grant-roles.php:189
140
+ msgid "Roles were granted to users successfully"
 
 
 
141
  msgstr ""
142
 
143
+ #: ../includes/classes/grant-roles.php:206
144
+ msgid "Wrong request, valid user ID was missed"
 
 
 
 
145
  msgstr ""
146
 
147
+ #: ../includes/classes/grant-roles.php:212
148
+ msgid "Requested user does not exist"
149
  msgstr ""
150
 
151
+ #: ../includes/classes/grant-roles.php:235
152
+ msgid "Primary Role: "
 
 
 
153
  msgstr ""
154
 
155
+ #: ../includes/classes/grant-roles.php:241 ../includes/classes/user-view.php:98
156
+ msgid "&mdash; No role for this site &mdash;"
157
  msgstr ""
158
 
159
+ #: ../includes/classes/grant-roles.php:255
160
+ msgid "Other Roles: "
 
 
 
161
  msgstr ""
162
 
163
+ #: ../includes/classes/grant-roles.php:286
164
+ msgid "Grant Roles"
165
  msgstr ""
166
 
167
+ #: ../includes/classes/grant-roles.php:322
168
+ msgid "Grant roles to selected users"
 
 
 
 
169
  msgstr ""
170
 
171
+ #: ../includes/classes/grant-roles.php:323
172
+ msgid "Select users to which you wish to grant roles!"
173
  msgstr ""
174
 
175
+ #: ../includes/classes/grant-roles.php:324
176
+ msgid "Select role(s) which you wish to grant!"
 
 
 
177
  msgstr ""
178
 
179
+ #: ../includes/classes/lib.php:211
180
  msgid "Error: wrong request"
181
  msgstr ""
182
 
183
+ #: ../includes/classes/lib.php:295
184
  msgid "Error: "
185
  msgstr ""
186
 
187
+ #: ../includes/classes/lib.php:295
188
  msgid "Role"
189
  msgstr ""
190
 
191
+ #: ../includes/classes/lib.php:296
192
  msgid "does not exist"
193
  msgstr ""
194
 
195
+ #: ../includes/classes/lib.php:358
196
  msgid "Role is updated successfully"
197
  msgstr ""
198
 
199
+ #: ../includes/classes/lib.php:360
200
  msgid "Roles are updated for all network"
201
  msgstr ""
202
 
203
+ #: ../includes/classes/lib.php:366
204
+ msgid "Error occurred during role(s) update"
205
  msgstr ""
206
 
207
+ #: ../includes/classes/lib.php:373
208
  msgid "User capabilities are updated successfully"
209
  msgstr ""
210
 
211
+ #: ../includes/classes/lib.php:378
212
+ msgid "Error occurred during user update"
213
  msgstr ""
214
 
215
+ #: ../includes/classes/lib.php:436
216
  msgid "User Roles are restored to WordPress default values. "
217
  msgstr ""
218
 
219
+ #: ../includes/classes/lib.php:1414 ../includes/classes/lib.php:1480
 
 
 
 
220
  msgid ""
221
  "Error: Role ID must contain latin characters, digits, hyphens or underscore "
222
  "only!"
223
  msgstr ""
224
 
225
+ #: ../includes/classes/lib.php:1418 ../includes/classes/lib.php:1484
226
  msgid ""
227
  "Error: WordPress does not support numeric Role name (ID). Add latin "
228
  "characters to it."
229
  msgstr ""
230
 
231
+ #: ../includes/classes/lib.php:1433
232
  #, php-format
233
  msgid "Role %s exists already"
234
  msgstr ""
235
 
236
+ #: ../includes/classes/lib.php:1448
237
  msgid "Error is encountered during new role create operation"
238
  msgstr ""
239
 
240
+ #: ../includes/classes/lib.php:1450
241
  #, php-format
242
  msgid "Role %s is created successfully"
243
  msgstr ""
244
 
245
+ #: ../includes/classes/lib.php:1473
246
  msgid "Error: Role ID is empty!"
247
  msgstr ""
248
 
249
+ #: ../includes/classes/lib.php:1491
250
  msgid "Error: Empty role display name is not allowed."
251
  msgstr ""
252
 
253
+ #: ../includes/classes/lib.php:1498
254
  #, php-format
255
  msgid "Role %s does not exists"
256
  msgstr ""
257
 
258
+ #: ../includes/classes/lib.php:1506
259
  #, php-format
260
  msgid "Role %s is renamed to %s successfully"
261
  msgstr ""
262
 
263
+ #: ../includes/classes/lib.php:1578
264
  msgid "Error encountered during role delete operation"
265
  msgstr ""
266
 
267
+ #: ../includes/classes/lib.php:1580
268
  msgid "Unused roles are deleted successfully"
269
  msgstr ""
270
 
271
+ #: ../includes/classes/lib.php:1582
272
  #, php-format
273
  msgid "Role %s is deleted successfully"
274
  msgstr ""
275
 
276
+ #: ../includes/classes/lib.php:1615
 
 
 
 
277
  #, php-format
278
  msgid "Default role for new users is set to %s successfully"
279
  msgstr ""
280
 
281
+ #: ../includes/classes/lib.php:1617
282
+ msgid "Error encountered during default role change operation"
283
+ msgstr ""
284
+
285
+ #: ../includes/classes/lib.php:1620
286
  msgid "Can not set Administrator role as a default one"
287
  msgstr ""
288
 
289
+ #: ../includes/classes/lib.php:1622
290
  msgid "This role does not exist - "
291
  msgstr ""
292
 
293
+ #: ../includes/classes/lib.php:1638
294
  msgid "Editor"
295
  msgstr ""
296
 
297
+ #: ../includes/classes/lib.php:1639
298
  msgid "Author"
299
  msgstr ""
300
 
301
+ #: ../includes/classes/lib.php:1640
302
  msgid "Contributor"
303
  msgstr ""
304
 
305
+ #: ../includes/classes/lib.php:1641
306
  msgid "Subscriber"
307
  msgstr ""
308
 
309
+ #: ../includes/classes/lib.php:1643
310
  msgid "Switch themes"
311
  msgstr ""
312
 
313
+ #: ../includes/classes/lib.php:1644
314
  msgid "Edit themes"
315
  msgstr ""
316
 
317
+ #: ../includes/classes/lib.php:1645
318
  msgid "Activate plugins"
319
  msgstr ""
320
 
321
+ #: ../includes/classes/lib.php:1646
322
  msgid "Edit plugins"
323
  msgstr ""
324
 
325
+ #: ../includes/classes/lib.php:1647
326
  msgid "Edit users"
327
  msgstr ""
328
 
329
+ #: ../includes/classes/lib.php:1648
330
  msgid "Edit files"
331
  msgstr ""
332
 
333
+ #: ../includes/classes/lib.php:1649
334
  msgid "Manage options"
335
  msgstr ""
336
 
337
+ #: ../includes/classes/lib.php:1650
338
  msgid "Moderate comments"
339
  msgstr ""
340
 
341
+ #: ../includes/classes/lib.php:1651
342
  msgid "Manage categories"
343
  msgstr ""
344
 
345
+ #: ../includes/classes/lib.php:1652
346
  msgid "Manage links"
347
  msgstr ""
348
 
349
+ #: ../includes/classes/lib.php:1653
350
  msgid "Upload files"
351
  msgstr ""
352
 
353
+ #: ../includes/classes/lib.php:1654
354
  msgid "Import"
355
  msgstr ""
356
 
357
+ #: ../includes/classes/lib.php:1655
358
  msgid "Unfiltered html"
359
  msgstr ""
360
 
361
+ #: ../includes/classes/lib.php:1656
362
  msgid "Edit posts"
363
  msgstr ""
364
 
365
+ #: ../includes/classes/lib.php:1657
366
  msgid "Edit others posts"
367
  msgstr ""
368
 
369
+ #: ../includes/classes/lib.php:1658
370
  msgid "Edit published posts"
371
  msgstr ""
372
 
373
+ #: ../includes/classes/lib.php:1659
374
  msgid "Publish posts"
375
  msgstr ""
376
 
377
+ #: ../includes/classes/lib.php:1660
378
  msgid "Edit pages"
379
  msgstr ""
380
 
381
+ #: ../includes/classes/lib.php:1661
382
  msgid "Read"
383
  msgstr ""
384
 
385
+ #: ../includes/classes/lib.php:1662
386
  msgid "Level 10"
387
  msgstr ""
388
 
389
+ #: ../includes/classes/lib.php:1663
390
  msgid "Level 9"
391
  msgstr ""
392
 
393
+ #: ../includes/classes/lib.php:1664
394
  msgid "Level 8"
395
  msgstr ""
396
 
397
+ #: ../includes/classes/lib.php:1665
398
  msgid "Level 7"
399
  msgstr ""
400
 
401
+ #: ../includes/classes/lib.php:1666
402
  msgid "Level 6"
403
  msgstr ""
404
 
405
+ #: ../includes/classes/lib.php:1667
406
  msgid "Level 5"
407
  msgstr ""
408
 
409
+ #: ../includes/classes/lib.php:1668
410
  msgid "Level 4"
411
  msgstr ""
412
 
413
+ #: ../includes/classes/lib.php:1669
414
  msgid "Level 3"
415
  msgstr ""
416
 
417
+ #: ../includes/classes/lib.php:1670
418
  msgid "Level 2"
419
  msgstr ""
420
 
421
+ #: ../includes/classes/lib.php:1671
422
  msgid "Level 1"
423
  msgstr ""
424
 
425
+ #: ../includes/classes/lib.php:1672
426
  msgid "Level 0"
427
  msgstr ""
428
 
429
+ #: ../includes/classes/lib.php:1673
430
  msgid "Edit others pages"
431
  msgstr ""
432
 
433
+ #: ../includes/classes/lib.php:1674
434
  msgid "Edit published pages"
435
  msgstr ""
436
 
437
+ #: ../includes/classes/lib.php:1675
438
  msgid "Publish pages"
439
  msgstr ""
440
 
441
+ #: ../includes/classes/lib.php:1676
442
  msgid "Delete pages"
443
  msgstr ""
444
 
445
+ #: ../includes/classes/lib.php:1677
446
  msgid "Delete others pages"
447
  msgstr ""
448
 
449
+ #: ../includes/classes/lib.php:1678
450
  msgid "Delete published pages"
451
  msgstr ""
452
 
453
+ #: ../includes/classes/lib.php:1679
454
  msgid "Delete posts"
455
  msgstr ""
456
 
457
+ #: ../includes/classes/lib.php:1680
458
  msgid "Delete others posts"
459
  msgstr ""
460
 
461
+ #: ../includes/classes/lib.php:1681
462
  msgid "Delete published posts"
463
  msgstr ""
464
 
465
+ #: ../includes/classes/lib.php:1682
466
  msgid "Delete private posts"
467
  msgstr ""
468
 
469
+ #: ../includes/classes/lib.php:1683
470
  msgid "Edit private posts"
471
  msgstr ""
472
 
473
+ #: ../includes/classes/lib.php:1684
474
  msgid "Read private posts"
475
  msgstr ""
476
 
477
+ #: ../includes/classes/lib.php:1685
478
  msgid "Delete private pages"
479
  msgstr ""
480
 
481
+ #: ../includes/classes/lib.php:1686
482
  msgid "Edit private pages"
483
  msgstr ""
484
 
485
+ #: ../includes/classes/lib.php:1687
486
  msgid "Read private pages"
487
  msgstr ""
488
 
489
+ #: ../includes/classes/lib.php:1688
490
  msgid "Delete users"
491
  msgstr ""
492
 
493
+ #: ../includes/classes/lib.php:1689
494
  msgid "Create users"
495
  msgstr ""
496
 
497
+ #: ../includes/classes/lib.php:1690
498
  msgid "Unfiltered upload"
499
  msgstr ""
500
 
501
+ #: ../includes/classes/lib.php:1691
502
  msgid "Edit dashboard"
503
  msgstr ""
504
 
505
+ #: ../includes/classes/lib.php:1692
506
  msgid "Update plugins"
507
  msgstr ""
508
 
509
+ #: ../includes/classes/lib.php:1693
510
  msgid "Delete plugins"
511
  msgstr ""
512
 
513
+ #: ../includes/classes/lib.php:1694
514
  msgid "Install plugins"
515
  msgstr ""
516
 
517
+ #: ../includes/classes/lib.php:1695
518
  msgid "Update themes"
519
  msgstr ""
520
 
521
+ #: ../includes/classes/lib.php:1696
522
  msgid "Install themes"
523
  msgstr ""
524
 
525
+ #: ../includes/classes/lib.php:1697
526
  msgid "Update core"
527
  msgstr ""
528
 
529
+ #: ../includes/classes/lib.php:1698
530
  msgid "List users"
531
  msgstr ""
532
 
533
+ #: ../includes/classes/lib.php:1699
534
  msgid "Remove users"
535
  msgstr ""
536
 
537
+ #: ../includes/classes/lib.php:1700
538
  msgid "Add users"
539
  msgstr ""
540
 
541
+ #: ../includes/classes/lib.php:1701
542
  msgid "Promote users"
543
  msgstr ""
544
 
545
+ #: ../includes/classes/lib.php:1702
546
  msgid "Edit theme options"
547
  msgstr ""
548
 
549
+ #: ../includes/classes/lib.php:1703
550
  msgid "Delete themes"
551
  msgstr ""
552
 
553
+ #: ../includes/classes/lib.php:1704
554
  msgid "Export"
555
  msgstr ""
556
 
557
+ #: ../includes/classes/lib.php:1878
558
  msgid "Version:"
559
  msgstr ""
560
 
561
+ #: ../includes/classes/lib.php:1879
562
  msgid "Author's website"
563
  msgstr ""
564
 
565
+ #: ../includes/classes/lib.php:1880
566
  msgid "Plugin webpage"
567
  msgstr ""
568
 
569
+ #: ../includes/classes/lib.php:1881
570
  msgid "Plugin download"
571
  msgstr ""
572
 
573
+ #: ../includes/classes/lib.php:1882
574
+ #: ../includes/classes/user-role-editor.php:506
575
  msgid "Changelog"
576
  msgstr ""
577
 
578
+ #: ../includes/classes/lib.php:1883
579
  msgid "FAQ"
580
  msgstr ""
581
 
582
+ #: ../includes/classes/lib.php:2063
583
  #, php-format
584
  msgid "Denied: %s"
585
  msgstr ""
586
 
587
+ #: ../includes/classes/role-additional-options.php:53
588
+ msgid "Hide admin bar"
589
+ msgstr ""
590
+
591
+ #: ../includes/classes/role-additional-options.php:113
592
+ msgid "Additional Options"
593
+ msgstr ""
594
+
595
+ #: ../includes/classes/role-view.php:74
596
+ msgid "None"
597
+ msgstr ""
598
+
599
+ #: ../includes/classes/role-view.php:107
600
+ msgid "Delete All Unused Roles"
601
+ msgstr ""
602
+
603
+ #: ../includes/classes/role-view.php:207 ../includes/classes/role-view.php:218
604
+ msgid "Role name (ID): "
605
+ msgstr ""
606
+
607
+ #: ../includes/classes/role-view.php:209 ../includes/classes/role-view.php:220
608
+ msgid "Display Role Name: "
609
+ msgstr ""
610
+
611
+ #: ../includes/classes/role-view.php:211
612
+ msgid "Make copy of: "
613
+ msgstr ""
614
+
615
+ #: ../includes/classes/role-view.php:227
616
+ msgid "Select Role:"
617
+ msgstr ""
618
+
619
+ #: ../includes/classes/role-view.php:252
620
+ msgid "Capability name (ID): "
621
+ msgstr ""
622
+
623
+ #: ../includes/classes/role-view.php:364 ../includes/classes/user-view.php:155
624
+ msgid "Show capabilities in human readable form"
625
+ msgstr ""
626
+
627
+ #: ../includes/classes/role-view.php:374 ../includes/classes/screen-help.php:21
628
+ #: ../includes/classes/user-view.php:165 ../includes/settings-template.php:78
629
+ msgid "Show deprecated capabilities"
630
+ msgstr ""
631
+
632
+ #: ../includes/classes/role-view.php:378
633
+ msgid "If checked, then apply action to ALL sites of this Network"
634
+ msgstr ""
635
+
636
+ #: ../includes/classes/role-view.php:391 ../includes/classes/tools.php:44
637
+ msgid "Apply to All Sites"
638
+ msgstr ""
639
+
640
+ #: ../includes/classes/role-view.php:408
641
+ msgid "Select Role and change its capabilities:"
642
+ msgstr ""
643
+
644
+ #: ../includes/classes/screen-help.php:12
645
+ #: ../includes/classes/screen-help.php:43
646
+ #: ../includes/classes/screen-help.php:62
647
+ #: ../includes/classes/screen-help.php:81
648
+ msgid "User Role Editor Options page help"
649
+ msgstr ""
650
+
651
+ #: ../includes/classes/screen-help.php:15 ../includes/settings-template.php:61
652
+ msgid "Show Administrator role at User Role Editor"
653
+ msgstr ""
654
+
655
+ #: ../includes/classes/screen-help.php:16
656
+ msgid ""
657
+ "turn this option on in order to make the \"Administrator\" role available at "
658
+ "the User Role Editor roles selection drop-down list. It is hidden by default "
659
+ "for security reasons."
660
+ msgstr ""
661
+
662
+ #: ../includes/classes/screen-help.php:18 ../includes/settings-template.php:70
663
+ msgid "Show capabilities in the human readable form"
664
+ msgstr ""
665
+
666
+ #: ../includes/classes/screen-help.php:19
667
+ msgid ""
668
+ "automatically converts capability names from the technical form for internal "
669
+ "use like \"edit_others_posts\" to more user friendly form, e.g. \"Edit "
670
+ "others posts\"."
671
+ msgstr ""
672
+
673
+ #: ../includes/classes/screen-help.php:22
674
+ msgid ""
675
+ "Capabilities like \"level_0\", \"level_1\" are deprecated and are not used "
676
+ "by WordPress. They are left at the user roles for the compatibility purpose "
677
+ "with the old themes and plugins code. Turning on this option will show those "
678
+ "deprecated capabilities."
679
+ msgstr ""
680
+
681
+ #: ../includes/classes/screen-help.php:25 ../includes/settings-template.php:86
682
+ msgid "Confirm role update"
683
+ msgstr ""
684
+
685
+ #: ../includes/classes/screen-help.php:26
686
+ msgid "Show confirmation dialog before save changes made to a current role."
687
+ msgstr ""
688
+
689
+ #: ../includes/classes/screen-help.php:27 ../includes/settings-template.php:94
690
+ msgid "Edit user capabilities"
691
+ msgstr ""
692
+
693
+ #: ../includes/classes/screen-help.php:28
694
+ msgid ""
695
+ "If turned off - capabilities section of selected user is shown in readonly "
696
+ "mode. Administrator can not assign capabilities to the user directly. He "
697
+ "should make it using roles only."
698
+ msgstr ""
699
+
700
+ #: ../includes/classes/screen-help.php:47 ../includes/settings-template.php:141
701
+ msgid "Count users without role"
702
+ msgstr ""
703
+
704
+ #: ../includes/classes/screen-help.php:48
705
+ msgid ""
706
+ "Show at the \"Users\" page a quant of users without role. Module allows to "
707
+ "assign all of them an empty role \"No rights\", in order to look on the "
708
+ "users list with role \"No rights\" at the separate tab then."
709
+ msgstr ""
710
+
711
+ #: ../includes/classes/screen-help.php:65
712
+ msgid "Other default roles for new registered user"
713
+ msgstr ""
714
+
715
+ #: ../includes/classes/screen-help.php:66
716
+ msgid ""
717
+ "select roles below to assign them to the new user automatically as an "
718
+ "addition to the primary role. Note for multisite environment: take into "
719
+ "account that other default roles should exist at the site, in order to be "
720
+ "assigned to the new registered users."
721
+ msgstr ""
722
+
723
+ #: ../includes/classes/screen-help.php:84
724
+ msgid "Allow non super-administrators to create, edit and delete users"
725
+ msgstr ""
726
+
727
+ #: ../includes/classes/screen-help.php:85
728
+ msgid ""
729
+ "Super administrator only may create, edit and delete users under WordPress "
730
+ "multi-site by default. Turn this option on in order to remove this "
731
+ "limitation."
732
+ msgstr ""
733
+
734
+ #: ../includes/classes/settings.php:70 ../includes/classes/settings.php:90
735
+ #: ../includes/classes/settings.php:140
736
+ msgid "User Role Editor options are updated"
737
+ msgstr ""
738
+
739
+ #: ../includes/classes/settings.php:120
740
+ msgid "Default Roles are updated"
741
+ msgstr ""
742
+
743
+ #: ../includes/classes/settings.php:151
744
+ msgid "Tools: Reset: User Roles were initialized"
745
+ msgstr ""
746
+
747
+ #: ../includes/classes/tools.php:32
748
+ msgid "WARNING!"
749
+ msgstr ""
750
+
751
+ #: ../includes/classes/tools.php:34
752
+ msgid ""
753
+ "Resetting will setup default user roles and capabilities from WordPress core."
754
+ msgstr ""
755
+
756
+ #: ../includes/classes/tools.php:35
757
+ msgid ""
758
+ "If any plugins (such as WooCommerce, S2Member and many others) have changed "
759
+ "user roles and capabilities during installation, those changes will be LOST!"
760
+ msgstr ""
761
+
762
+ #: ../includes/classes/tools.php:36
763
+ msgid ""
764
+ "For more information on how to undo undesired changes and restore plugins "
765
+ "capabilities in case you lost them by mistake go to: "
766
+ msgstr ""
767
+
768
+ #: ../includes/classes/tools.php:45
769
+ msgid ""
770
+ "If checked, then apply action to ALL sites. Main site only is affected in "
771
+ "other case."
772
+ msgstr ""
773
+
774
+ #: ../includes/classes/tools.php:50
775
+ msgid "Reset Roles to its original state"
776
+ msgstr ""
777
+
778
+ #: ../includes/classes/tools.php:50
779
+ #: ../includes/classes/user-role-editor.php:729
780
+ msgid "Reset"
781
+ msgstr ""
782
+
783
+ #: ../includes/classes/user-other-roles.php:85
784
+ #: ../includes/classes/user-other-roles.php:194
785
  msgid "Other Roles"
786
  msgstr ""
787
 
788
+ #: ../includes/classes/user-other-roles.php:86
789
  msgid "Select additional roles for this user"
790
  msgstr ""
791
 
792
+ #: ../includes/classes/user-other-roles.php:173
793
+ #: ../includes/classes/user-role-editor.php:387
794
  msgid "Capabilities"
795
  msgstr ""
796
 
797
+ #: ../includes/classes/user-other-roles.php:180
798
  msgid "Edit"
799
  msgstr ""
800
 
801
+ #: ../includes/classes/user-other-roles.php:229
802
  msgid "Additional Capabilities"
803
  msgstr ""
804
 
805
+ #: ../includes/classes/user-role-editor.php:284
806
  msgid "Change role for users without role"
807
  msgstr ""
808
 
809
+ #: ../includes/classes/user-role-editor.php:285
810
  msgid "To:"
811
  msgstr ""
812
 
813
+ #: ../includes/classes/user-role-editor.php:286
814
  msgid "No rights"
815
  msgstr ""
816
 
817
+ #: ../includes/classes/user-role-editor.php:287
818
  msgid "Provide new role"
819
  msgstr ""
820
 
821
+ #: ../includes/classes/user-role-editor.php:359
822
+ #: ../includes/classes/user-role-editor.php:361
823
  msgid "You do not have permission to edit this user."
824
  msgstr ""
825
 
826
+ #: ../includes/classes/user-role-editor.php:480
827
+ #: ../includes/classes/user-role-editor.php:493
828
  msgid "Settings"
829
  msgstr ""
830
 
831
+ #: ../includes/classes/user-role-editor.php:535
832
  #: ../includes/settings-template.php:26
833
  msgid "Additional Modules"
834
  msgstr ""
835
 
836
+ #: ../includes/classes/user-role-editor.php:541
837
+ #: ../includes/settings-template.php:31
838
  msgid "Default Roles"
839
  msgstr ""
840
 
841
+ #: ../includes/classes/user-role-editor.php:608
 
 
 
 
 
 
 
 
 
 
842
  msgid ""
843
  "You do not have sufficient permissions to manage options for User Role "
844
  "Editor."
845
  msgstr ""
846
 
847
+ #: ../includes/classes/user-role-editor.php:679
848
+ #: ../includes/classes/user-role-editor.php:726
849
  msgid "Confirm"
850
  msgstr ""
851
 
852
+ #: ../includes/classes/user-role-editor.php:680
853
+ #: ../includes/classes/user-role-editor.php:727
854
  msgid "Yes"
855
  msgstr ""
856
 
857
+ #: ../includes/classes/user-role-editor.php:681
858
+ #: ../includes/classes/user-role-editor.php:728
859
  msgid "No"
860
  msgstr ""
861
 
862
+ #: ../includes/classes/user-role-editor.php:682
 
 
 
 
 
 
 
 
 
 
 
 
863
  msgid "Update"
864
  msgstr ""
865
 
866
+ #: ../includes/classes/user-role-editor.php:683
867
  msgid "Please confirm permissions update"
868
  msgstr ""
869
 
870
+ #: ../includes/classes/user-role-editor.php:684
871
  msgid "Add New Role"
872
  msgstr ""
873
 
874
+ #: ../includes/classes/user-role-editor.php:685
875
+ #: ../includes/classes/user-role-editor.php:690
876
  msgid "Rename Role"
877
  msgstr ""
878
 
879
+ #: ../includes/classes/user-role-editor.php:686
880
  msgid " Role name (ID) can not be empty!"
881
  msgstr ""
882
 
883
+ #: ../includes/classes/user-role-editor.php:687
884
  msgid ""
885
  " Role name (ID) must contain latin characters, digits, hyphens or underscore "
886
  "only!"
887
  msgstr ""
888
 
889
+ #: ../includes/classes/user-role-editor.php:688
890
  msgid ""
891
  " WordPress does not support numeric Role name (ID). Add latin characters to "
892
  "it."
893
  msgstr ""
894
 
895
+ #: ../includes/classes/user-role-editor.php:689
896
  msgid "Add Role"
897
  msgstr ""
898
 
899
+ #: ../includes/classes/user-role-editor.php:691
900
  msgid "Delete Role"
901
  msgstr ""
902
 
903
+ #: ../includes/classes/user-role-editor.php:692
904
  msgid "Cancel"
905
  msgstr ""
906
 
907
+ #: ../includes/classes/user-role-editor.php:693
908
  msgid "Add Capability"
909
  msgstr ""
910
 
911
+ #: ../includes/classes/user-role-editor.php:694
912
+ #: ../includes/classes/user-role-editor.php:698
913
  msgid "Delete Capability"
914
  msgstr ""
915
 
916
+ #: ../includes/classes/user-role-editor.php:695
917
+ #: ../includes/classes/user-role-editor.php:735
918
+ msgid "Continue?"
919
  msgstr ""
920
 
921
+ #: ../includes/classes/user-role-editor.php:696
922
+ msgid "Default Role"
923
  msgstr ""
924
 
925
+ #: ../includes/classes/user-role-editor.php:697
926
+ msgid "Set New Default Role"
 
 
927
  msgstr ""
928
 
929
+ #: ../includes/classes/user-role-editor.php:699
930
  msgid ""
931
+ "Warning! Be careful - removing critical capability could crash some plugin "
932
+ "or other custom code"
933
  msgstr ""
934
 
935
+ #: ../includes/classes/user-role-editor.php:700
936
+ msgid " Capability name (ID) can not be empty!"
937
  msgstr ""
938
 
939
+ #: ../includes/classes/user-role-editor.php:701
940
+ msgid ""
941
+ " Capability name (ID) must contain latin characters, digits, hyphens or "
942
+ "underscore only!"
943
  msgstr ""
944
 
945
+ #: ../includes/classes/user-role-editor.php:730
946
+ msgid "DANGER!"
947
  msgstr ""
948
 
949
+ #: ../includes/classes/user-role-editor.php:731
950
  msgid ""
951
+ " Resetting will restore default user roles and capabilities from WordPress "
952
+ "core."
953
  msgstr ""
954
 
955
+ #: ../includes/classes/user-role-editor.php:732
956
+ msgid ""
957
+ "If any plugins (such as WooCommerce, S2Member and many others) have changed "
958
+ "user roles and capabilities during installation, all those changes will be "
959
+ "LOST!"
960
  msgstr ""
961
 
962
+ #: ../includes/classes/user-role-editor.php:733
963
  msgid ""
964
+ "For more information on how to undo undesired changes and restore plugin "
965
+ "capabilities go to"
966
  msgstr ""
967
 
968
  #: ../includes/classes/user-view.php:61
973
  msgid "Network Super Admin"
974
  msgstr ""
975
 
976
+ #: ../includes/classes/user-view.php:138
 
 
 
 
977
  msgid "Change capabilities for user"
978
  msgstr ""
979
 
980
+ #: ../includes/classes/user-view.php:176
981
  msgid "Primary Role:"
982
  msgstr ""
983
 
984
+ #: ../includes/classes/user-view.php:182
985
  msgid "bbPress Role:"
986
  msgstr ""
987
 
988
+ #: ../includes/classes/user-view.php:191
989
  msgid "Other Roles:"
990
  msgstr ""
991
 
992
+ #: ../includes/classes/view.php:273
993
+ msgid "Working..."
994
+ msgstr ""
995
+
996
+ #: ../includes/classes/view.php:303
997
  msgid "Group"
998
  msgstr ""
999
 
1000
+ #: ../includes/classes/view.php:303
1001
  msgid "Total"
1002
  msgstr ""
1003
 
1004
+ #: ../includes/classes/view.php:303
1005
  msgid "Granted"
1006
  msgstr ""
1007
 
1008
+ #: ../includes/classes/view.php:316
1009
  msgid "Quick filter:"
1010
  msgstr ""
1011
 
1012
+ #: ../includes/classes/view.php:319
1013
  msgid "Granted Only"
1014
  msgstr ""
1015
 
1016
+ #: ../includes/classes/view.php:322
1017
  msgid "Columns:"
1018
  msgstr ""
1019
 
1020
+ #: ../includes/settings-template.php:16
1021
  msgid "User Role Editor - Options"
1022
  msgstr ""
1023
 
1024
+ #: ../includes/settings-template.php:42
1025
+ msgid "Tools"
1026
+ msgstr ""
1027
+
1028
+ #: ../includes/settings-template.php:46
1029
  msgid "About"
1030
  msgstr ""
1031
 
1032
+ #: ../includes/settings-template.php:101
1033
+ msgid "Show capabilities in"
1034
+ msgstr ""
1035
+
1036
+ #: ../includes/settings-template.php:107
1037
+ msgid "columns"
1038
  msgstr ""
1039
 
1040
+ #: ../includes/settings-template.php:121 ../includes/settings-template.php:156
1041
+ #: ../includes/settings-template.php:188 ../includes/settings-template.php:220
1042
  msgid "Save"
1043
  msgstr ""
1044
 
1045
+ #: ../includes/settings-template.php:168
1046
  msgid "Primary default role: "
1047
  msgstr ""
1048
 
1049
+ #: ../includes/settings-template.php:175
1050
  msgid "Other default roles for new registered user: "
1051
  msgstr ""
1052
 
1053
+ #: ../includes/settings-template.php:181
1054
  msgid ""
1055
  "Note for multisite environment: take into account that other default roles "
1056
  "should exist at the site, in order to be assigned to the new registered "
1057
  "users."
1058
  msgstr ""
1059
 
1060
+ #: ../includes/settings-template.php:207
1061
  msgid "Allow non super administrators to create, edit, and delete users"
1062
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladi
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 4.45
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -79,6 +79,15 @@ https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
79
 
80
 
81
  == Changelog =
 
 
 
 
 
 
 
 
 
82
  = [4.45] 18.08.2018 =
83
  * Fix: Capability checkbox was shown as turned ON incorrectly for not granted capability included into a role, JSON: "caps":{"sample_cap":"false"}. Bug took place after the changing a currently selected role.
84
  * Fix: Custom capabilities groups "User Role Editor" and "WooCommerce" were registered at the wrong 3rd tree level - changed to 2.
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 4.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
79
 
80
 
81
  == Changelog =
82
+ = [4.46] 25.09.2018
83
+ * Update: "Users" page, "Without role" button: underlying SQL queries were replaced with more robust versions (about 10 times faster).
84
+ It is critical for sites with large quant of users.New query does not take into account though some cases with incorrect users data (usually imported from the external sources).
85
+ It's possible to use older (comprehensive but slower) query version defining a PHP constant: "define('URE_COUNT_USERS_WITHOUT_ROLE_THOROUGHLY', true);" or
86
+ return false from a custom 'ure_count_users_without_role_quick' filter.
87
+ * Update: Error checking was enhanced after default role change for the WordPress multisite subsite.
88
+ * Update: URE settings page template: HTML helper checked() is used where applicable.
89
+ * Fix: 2 spelling mistakes were fixed in the text labels.
90
+
91
  = [4.45] 18.08.2018 =
92
  * Fix: Capability checkbox was shown as turned ON incorrectly for not granted capability included into a role, JSON: "caps":{"sample_cap":"false"}. Bug took place after the changing a currently selected role.
93
  * Fix: Custom capabilities groups "User Role Editor" and "WooCommerce" were registered at the wrong 3rd tree level - changed to 2.
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.45
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
@@ -14,37 +14,37 @@ Domain Path: /lang/
14
  Copyright 2010-2018 Vladimir Garagulya (email: support@role-editor.com)
15
  */
16
 
17
- if (!function_exists('get_option')) {
18
- header('HTTP/1.0 403 Forbidden');
19
- die; // Silence is golden, direct call is prohibited
20
  }
21
 
22
- if (defined('URE_PLUGIN_URL')) {
23
- wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.45');
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__));
30
- define('URE_PLUGIN_FILE', basename(__FILE__));
31
- define('URE_PLUGIN_FULL_PATH', __FILE__);
32
 
33
- require_once(URE_PLUGIN_DIR.'includes/classes/base-lib.php');
34
- require_once(URE_PLUGIN_DIR.'includes/classes/ure-lib.php');
35
 
36
  // check PHP version
37
  $ure_required_php_version = '5.4';
38
- $exit_msg = sprintf( 'User Role Editor requires PHP %s or newer.', $ure_required_php_version ) .
39
- '<a href="http://wordpress.org/about/requirements/"> ' . 'Please update!' . '</a>';
40
  URE_Lib::check_version( PHP_VERSION, $ure_required_php_version, $exit_msg, __FILE__ );
41
 
42
  // check WP version
43
  $ure_required_wp_version = '4.0';
44
- $exit_msg = sprintf( 'User Role Editor requires WordPress %s or newer.', $ure_required_wp_version ) .
45
- '<a href="http://codex.wordpress.org/Upgrading_WordPress"> ' . 'Please update!' . '</a>';
46
- URE_Lib::check_version(get_bloginfo('version'), $ure_required_wp_version, $exit_msg, __FILE__ );
47
 
48
- require_once(URE_PLUGIN_DIR .'includes/loader.php');
49
 
50
  $GLOBALS['user_role_editor'] = User_Role_Editor::get_instance();
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.46
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: user-role-editor
14
  Copyright 2010-2018 Vladimir Garagulya (email: support@role-editor.com)
15
  */
16
 
17
+ if ( ! function_exists( 'get_option' ) ) {
18
+ header( 'HTTP/1.0 403 Forbidden' );
19
+ die; // Silence is golden, direct call is prohibited
20
  }
21
 
22
+ if ( defined( 'URE_PLUGIN_URL' ) ) {
23
+ wp_die( 'It seems that other version of User Role Editor is active. Please deactivate it before use this version' );
24
  }
25
 
26
+ define( 'URE_VERSION', '4.46' );
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__ ) );
30
+ define( 'URE_PLUGIN_FILE', basename( __FILE__ ) );
31
+ define( 'URE_PLUGIN_FULL_PATH', __FILE__ );
32
 
33
+ require_once( URE_PLUGIN_DIR.'includes/classes/base-lib.php' );
34
+ require_once( URE_PLUGIN_DIR.'includes/classes/lib.php' );
35
 
36
  // check PHP version
37
  $ure_required_php_version = '5.4';
38
+ $exit_msg = 'User Role Editor requires PHP '. $ure_required_php_version .' or newer. '.
39
+ '<a href="http://wordpress.org/about/requirements/">Please update!</a>';
40
  URE_Lib::check_version( PHP_VERSION, $ure_required_php_version, $exit_msg, __FILE__ );
41
 
42
  // check WP version
43
  $ure_required_wp_version = '4.0';
44
+ $exit_msg = 'User Role Editor requires WordPress '. $ure_required_wp_version .' or newer. '.
45
+ '<a href="http://codex.wordpress.org/Upgrading_WordPress">Please update!</a>';
46
+ URE_Lib::check_version( get_bloginfo( 'version' ), $ure_required_wp_version, $exit_msg, __FILE__ );
47
 
48
+ require_once( URE_PLUGIN_DIR .'includes/loader.php' );
49
 
50
  $GLOBALS['user_role_editor'] = User_Role_Editor::get_instance();