Version Description
- Media library permissions added. Documentation.
- Admin menu editor bug fix.
Download this release
Release Info
Developer | syammohanm |
Plugin | WPFront User Role Editor |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.5.1 to 2.7
- classes/base/class-wpfront-base.php +6 -0
- classes/class-wpfront-user-role-editor-add-edit.php +1 -1
- classes/class-wpfront-user-role-editor-add-remove-capability.php +176 -0
- classes/class-wpfront-user-role-editor-assign-roles.php +1 -1
- classes/class-wpfront-user-role-editor-controller-base.php +2 -0
- classes/class-wpfront-user-role-editor-delete.php +1 -1
- classes/class-wpfront-user-role-editor-go-pro.php +9 -7
- classes/class-wpfront-user-role-editor-list.php +2 -2
- classes/class-wpfront-user-role-editor-restore.php +2 -2
- classes/class-wpfront-user-role-editor.php +74 -70
- classes/integration/plugins/class-wpfront-user-role-editor-plugin-integration.php +2 -0
- classes/integration/plugins/duplicator/class-wpfront-user-role-editor-plugin-duplicator.php +1 -1
- languages/wpfront-user-role-editor.mo +0 -0
- languages/wpfront-user-role-editor.po +213 -111
- readme.txt +46 -8
- templates/add-remove-capability.php +141 -0
- templates/go-pro-table +187 -169
- uninstall.php +44 -44
- wpfront-user-role-editor.php +1 -1
classes/base/class-wpfront-base.php
CHANGED
@@ -39,6 +39,12 @@ if (!class_exists('WPFront_Base_URE')) {
|
|
39 |
*/
|
40 |
class WPFront_Base_URE {
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
private $plugin_slug;
|
43 |
private $options_page_slug;
|
44 |
protected $pluginURLRoot;
|
39 |
*/
|
40 |
class WPFront_Base_URE {
|
41 |
|
42 |
+
const ADMINISTRATOR_ROLE_KEY = 'administrator';
|
43 |
+
const EDITOR_ROLE_KEY = 'editor';
|
44 |
+
const AUTHOR_ROLE_KEY = 'author';
|
45 |
+
const CONTRIBUTOR_ROLE_KEY = 'contributor';
|
46 |
+
const SUBSCRIBER_ROLE_KEY = 'subscriber';
|
47 |
+
|
48 |
private $plugin_slug;
|
49 |
private $options_page_slug;
|
50 |
protected $pluginURLRoot;
|
classes/class-wpfront-user-role-editor-add-edit.php
CHANGED
@@ -71,7 +71,7 @@ if (!class_exists('WPFront_User_Role_Editor_Add_Edit')) {
|
|
71 |
|
72 |
if ($this->role == NULL) {
|
73 |
$this->is_editable = TRUE;
|
74 |
-
} else if ($role_name !=
|
75 |
$editable_roles = get_editable_roles();
|
76 |
if ($this->main->override_edit_permissions())
|
77 |
$editable_roles = $wp_roles->get_names();
|
71 |
|
72 |
if ($this->role == NULL) {
|
73 |
$this->is_editable = TRUE;
|
74 |
+
} else if ($role_name != self::ADMINISTRATOR_ROLE_KEY) {
|
75 |
$editable_roles = get_editable_roles();
|
76 |
if ($this->main->override_edit_permissions())
|
77 |
$editable_roles = $wp_roles->get_names();
|
classes/class-wpfront-user-role-editor-add-remove-capability.php
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
WPFront User Role Editor Plugin
|
5 |
+
Copyright (C) 2014, WPFront.com
|
6 |
+
Website: wpfront.com
|
7 |
+
Contact: syam@wpfront.com
|
8 |
+
|
9 |
+
WPFront User Role Editor Plugin is distributed under the GNU General Public License, Version 3,
|
10 |
+
June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
|
11 |
+
St, Fifth Floor, Boston, MA 02110, USA
|
12 |
+
|
13 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
14 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
15 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
17 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
18 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
19 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
20 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
21 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
22 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
23 |
+
*/
|
24 |
+
|
25 |
+
if (!defined('ABSPATH')) {
|
26 |
+
exit();
|
27 |
+
}
|
28 |
+
|
29 |
+
if (!class_exists('WPFront_User_Role_Editor_Add_Remove_Capability')) {
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Add or Remove Capability
|
33 |
+
*
|
34 |
+
* @author Syam Mohan <syam@wpfront.com>
|
35 |
+
* @copyright 2014 WPFront.com
|
36 |
+
*/
|
37 |
+
class WPFront_User_Role_Editor_Add_Remove_Capability extends WPFront_User_Role_Editor_Controller_Base {
|
38 |
+
|
39 |
+
const MENU_SLUG = 'wpfront-user-role-editor-add-remove-capability';
|
40 |
+
|
41 |
+
private $action;
|
42 |
+
private $capability;
|
43 |
+
private $roles_type;
|
44 |
+
private $roles;
|
45 |
+
private $message;
|
46 |
+
|
47 |
+
public function add_remove_capability() {
|
48 |
+
|
49 |
+
if (!$this->can_edit()) {
|
50 |
+
$this->main->permission_denied();
|
51 |
+
return;
|
52 |
+
}
|
53 |
+
|
54 |
+
$this->action = 'add';
|
55 |
+
$this->capability = '';
|
56 |
+
$this->roles_type = 'all';
|
57 |
+
$this->roles = array();
|
58 |
+
$this->message = NULL;
|
59 |
+
|
60 |
+
if (!empty($_POST['add-remove-capability'])) {
|
61 |
+
$this->main->verify_nonce();
|
62 |
+
|
63 |
+
$this->action = $_POST['action_type'];
|
64 |
+
$this->capability = trim($_POST['capability']);
|
65 |
+
if (empty($this->capability))
|
66 |
+
$this->capability = NULL;
|
67 |
+
$this->roles_type = $_POST['roles_type'];
|
68 |
+
if ($this->roles_type === 'selected' && !empty($_POST['selected-roles']))
|
69 |
+
$this->roles = $_POST['selected-roles'];
|
70 |
+
|
71 |
+
if (!empty($this->capability)) {
|
72 |
+
$roles = array();
|
73 |
+
switch ($this->roles_type) {
|
74 |
+
case 'all':
|
75 |
+
global $wp_roles;
|
76 |
+
$roles = $wp_roles->role_names;
|
77 |
+
break;
|
78 |
+
case 'selected':
|
79 |
+
$roles = $this->roles;
|
80 |
+
break;
|
81 |
+
}
|
82 |
+
|
83 |
+
$func = NULL;
|
84 |
+
switch ($this->action) {
|
85 |
+
case 'add':
|
86 |
+
$func = 'add_cap';
|
87 |
+
if (!isset($roles[self::ADMINISTRATOR_ROLE_KEY])) {
|
88 |
+
$roles[self::ADMINISTRATOR_ROLE_KEY] = TRUE;
|
89 |
+
}
|
90 |
+
break;
|
91 |
+
case 'remove':
|
92 |
+
$func = 'remove_cap';
|
93 |
+
if ($this->roles_type === 'all') {
|
94 |
+
$roles[self::ADMINISTRATOR_ROLE_KEY] = TRUE;
|
95 |
+
} else {
|
96 |
+
unset($roles[self::ADMINISTRATOR_ROLE_KEY]);
|
97 |
+
}
|
98 |
+
break;
|
99 |
+
}
|
100 |
+
|
101 |
+
foreach ($roles as $key => $value) {
|
102 |
+
$role = get_role($key);
|
103 |
+
if (!empty($role)) {
|
104 |
+
$role->$func($this->capability);
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
$this->message = $this->__('Roles updated.');
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
include($this->main->pluginDIR() . 'templates/add-remove-capability.php');
|
113 |
+
}
|
114 |
+
|
115 |
+
private function get_roles() {
|
116 |
+
global $wp_roles;
|
117 |
+
$roles = $wp_roles->role_names;
|
118 |
+
|
119 |
+
unset($roles[self::ADMINISTRATOR_ROLE_KEY]);
|
120 |
+
|
121 |
+
return $roles;
|
122 |
+
}
|
123 |
+
|
124 |
+
protected function add_help_tab() {
|
125 |
+
return array(
|
126 |
+
array(
|
127 |
+
'id' => 'overview',
|
128 |
+
'title' => $this->__('Overview'),
|
129 |
+
'content' => '<p>'
|
130 |
+
. $this->__('This screen allows you to add a capability to roles or remove a capability from roles within your site.')
|
131 |
+
. '</p>'
|
132 |
+
),
|
133 |
+
array(
|
134 |
+
'id' => 'action',
|
135 |
+
'title' => $this->__('Action'),
|
136 |
+
'content' => '<p>'
|
137 |
+
. $this->__('Select "Add Capability" to add a capability to roles.')
|
138 |
+
. '</p>'
|
139 |
+
. '<p>'
|
140 |
+
. $this->__('Select "Remove Capability" to remove a capability from roles.')
|
141 |
+
. '</p>'
|
142 |
+
),
|
143 |
+
array(
|
144 |
+
'id' => 'capability',
|
145 |
+
'title' => $this->__('Capability'),
|
146 |
+
'content' => '<p>'
|
147 |
+
. $this->__('Use the Capability field to name the capability to be added or removed.')
|
148 |
+
. '</p>'
|
149 |
+
),
|
150 |
+
array(
|
151 |
+
'id' => 'roles',
|
152 |
+
'title' => $this->__('Roles'),
|
153 |
+
'content' => '<p><strong>'
|
154 |
+
. $this->__('All Roles')
|
155 |
+
. '</strong>: '. $this->__('Select "All Roles", if you want the current action to be applied to all roles within your site.')
|
156 |
+
. '</p>'
|
157 |
+
. '<p><strong>'
|
158 |
+
. $this->__('Selected Roles')
|
159 |
+
. '</strong>: '. $this->__('Select "Selected Roles", if you want to individually select the roles. When this option is selected, "Administrator" role is included by default on "Add Capability" action and excluded by default on "Remove Capability" action.')
|
160 |
+
. '</p>'
|
161 |
+
)
|
162 |
+
);
|
163 |
+
}
|
164 |
+
|
165 |
+
protected function set_help_sidebar() {
|
166 |
+
return array(
|
167 |
+
array(
|
168 |
+
$this->__('Documentation on Add/Remove Capability'),
|
169 |
+
'add-remove-capability/'
|
170 |
+
)
|
171 |
+
);
|
172 |
+
}
|
173 |
+
|
174 |
+
}
|
175 |
+
|
176 |
+
}
|
classes/class-wpfront-user-role-editor-assign-roles.php
CHANGED
@@ -171,7 +171,7 @@ if (!class_exists('WPFront_User_Role_Editor_Assign_Roles')) {
|
|
171 |
|
172 |
$this->secondary_roles = array();
|
173 |
foreach ($roles as $key => $value) {
|
174 |
-
if ($key !=
|
175 |
$this->secondary_roles[$key] = $value;
|
176 |
}
|
177 |
}
|
171 |
|
172 |
$this->secondary_roles = array();
|
173 |
foreach ($roles as $key => $value) {
|
174 |
+
if ($key != self::ADMINISTRATOR_ROLE_KEY)
|
175 |
$this->secondary_roles[$key] = $value;
|
176 |
}
|
177 |
}
|
classes/class-wpfront-user-role-editor-controller-base.php
CHANGED
@@ -36,6 +36,8 @@ if (!class_exists('WPFront_User_Role_Editor_Controller_Base')) {
|
|
36 |
*/
|
37 |
class WPFront_User_Role_Editor_Controller_Base {
|
38 |
|
|
|
|
|
39 |
protected $main;
|
40 |
protected $page_hook;
|
41 |
protected $multisite = FALSE;
|
36 |
*/
|
37 |
class WPFront_User_Role_Editor_Controller_Base {
|
38 |
|
39 |
+
const ADMINISTRATOR_ROLE_KEY = WPFront_User_Role_Editor::ADMINISTRATOR_ROLE_KEY;
|
40 |
+
|
41 |
protected $main;
|
42 |
protected $page_hook;
|
43 |
protected $multisite = FALSE;
|
classes/class-wpfront-user-role-editor-delete.php
CHANGED
@@ -80,7 +80,7 @@ if (!class_exists('WPFront_User_Role_Editor_Delete')) {
|
|
80 |
if (!array_key_exists($value, $editable_roles)) {
|
81 |
$status_message = 'This role cannot be deleted: Permission denied.';
|
82 |
$is_deletable = FALSE;
|
83 |
-
} else if ($value ==
|
84 |
$status_message = '\'administrator\' role cannot be deleted.';
|
85 |
$is_deletable = FALSE;
|
86 |
} else {
|
80 |
if (!array_key_exists($value, $editable_roles)) {
|
81 |
$status_message = 'This role cannot be deleted: Permission denied.';
|
82 |
$is_deletable = FALSE;
|
83 |
+
} else if ($value == self::ADMINISTRATOR_ROLE_KEY) {
|
84 |
$status_message = '\'administrator\' role cannot be deleted.';
|
85 |
$is_deletable = FALSE;
|
86 |
} else {
|
classes/class-wpfront-user-role-editor-go-pro.php
CHANGED
@@ -95,7 +95,7 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
|
|
95 |
$this->pro_html = '';
|
96 |
}
|
97 |
|
98 |
-
if($this->pro_html === '') {
|
99 |
$this->pro_html = file_get_contents($this->main->pluginDIR() . 'templates/go-pro-table');
|
100 |
}
|
101 |
|
@@ -124,12 +124,14 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
|
|
124 |
if ($last_checked < time() - 24 * 3600) {
|
125 |
$entity->update_option($this->license_key_k . '-last-checked', time());
|
126 |
$result = $this->remote_get('check_license', $this->license_key);
|
127 |
-
if (($result
|
128 |
-
$
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
|
|
133 |
}
|
134 |
}
|
135 |
$this->has_license = TRUE;
|
95 |
$this->pro_html = '';
|
96 |
}
|
97 |
|
98 |
+
if ($this->pro_html === '') {
|
99 |
$this->pro_html = file_get_contents($this->main->pluginDIR() . 'templates/go-pro-table');
|
100 |
}
|
101 |
|
124 |
if ($last_checked < time() - 24 * 3600) {
|
125 |
$entity->update_option($this->license_key_k . '-last-checked', time());
|
126 |
$result = $this->remote_get('check_license', $this->license_key);
|
127 |
+
if (!empty($result)) {
|
128 |
+
if (($result->activations_left === 'unlimited' || $result->activations_left >= 0) && ($result->license === 'valid' || $result->license === 'expired')) {
|
129 |
+
$entity->update_option($this->license_key_k . '-status', $result->license);
|
130 |
+
$entity->update_option($this->license_key_k . '-expires', $result->expires);
|
131 |
+
} else {
|
132 |
+
$this->deactivate_license(TRUE);
|
133 |
+
return;
|
134 |
+
}
|
135 |
}
|
136 |
}
|
137 |
$this->has_license = TRUE;
|
classes/class-wpfront-user-role-editor-list.php
CHANGED
@@ -149,7 +149,7 @@ if (!class_exists('WPFront_User_Role_Editor_List')) {
|
|
149 |
if ($this->can_edit()) {
|
150 |
$this->role_data[$key]['edit_url'] = $this->edit_url() . $key;
|
151 |
|
152 |
-
if ($key ===
|
153 |
$this->role_data[$key]['is_editable'] = FALSE;
|
154 |
else {
|
155 |
$this->role_data[$key]['is_editable'] = array_key_exists($key, $editable_roles);
|
@@ -159,7 +159,7 @@ if (!class_exists('WPFront_User_Role_Editor_List')) {
|
|
159 |
if ($this->can_delete()) {
|
160 |
$this->role_data[$key]['delete_url'] = $this->delete_url() . $key;
|
161 |
|
162 |
-
if ($key ===
|
163 |
$this->role_data[$key]['is_deletable'] = FALSE;
|
164 |
else {
|
165 |
$this->role_data[$key]['is_deletable'] = array_key_exists($key, $editable_roles);
|
149 |
if ($this->can_edit()) {
|
150 |
$this->role_data[$key]['edit_url'] = $this->edit_url() . $key;
|
151 |
|
152 |
+
if ($key === self::ADMINISTRATOR_ROLE_KEY)
|
153 |
$this->role_data[$key]['is_editable'] = FALSE;
|
154 |
else {
|
155 |
$this->role_data[$key]['is_editable'] = array_key_exists($key, $editable_roles);
|
159 |
if ($this->can_delete()) {
|
160 |
$this->role_data[$key]['delete_url'] = $this->delete_url() . $key;
|
161 |
|
162 |
+
if ($key === self::ADMINISTRATOR_ROLE_KEY)
|
163 |
$this->role_data[$key]['is_deletable'] = FALSE;
|
164 |
else {
|
165 |
$this->role_data[$key]['is_deletable'] = array_key_exists($key, $editable_roles);
|
classes/class-wpfront-user-role-editor-restore.php
CHANGED
@@ -136,7 +136,7 @@ if (!class_exists('WPFront_User_Role_Editor_Restore')) {
|
|
136 |
}
|
137 |
}
|
138 |
} else {
|
139 |
-
if ($role->name ==
|
140 |
$this->main->get_capabilities();
|
141 |
foreach (WPFront_User_Role_Editor::$OTHER_CAPABILITIES as $group => $caps) {
|
142 |
foreach ($caps as $cap) {
|
@@ -146,7 +146,7 @@ if (!class_exists('WPFront_User_Role_Editor_Restore')) {
|
|
146 |
}
|
147 |
}
|
148 |
|
149 |
-
if ($role->name ==
|
150 |
foreach (WPFront_User_Role_Editor::$ROLE_CAPS as $value) {
|
151 |
$role->add_cap($value);
|
152 |
}
|
136 |
}
|
137 |
}
|
138 |
} else {
|
139 |
+
if ($role->name == self::ADMINISTRATOR_ROLE_KEY) {
|
140 |
$this->main->get_capabilities();
|
141 |
foreach (WPFront_User_Role_Editor::$OTHER_CAPABILITIES as $group => $caps) {
|
142 |
foreach ($caps as $cap) {
|
146 |
}
|
147 |
}
|
148 |
|
149 |
+
if ($role->name == self::ADMINISTRATOR_ROLE_KEY && $this->main->enable_role_capabilities()) {
|
150 |
foreach (WPFront_User_Role_Editor::$ROLE_CAPS as $value) {
|
151 |
$role->add_cap($value);
|
152 |
}
|
classes/class-wpfront-user-role-editor.php
CHANGED
@@ -38,103 +38,103 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
38 |
class WPFront_User_Role_Editor extends WPFront_Base_URE {
|
39 |
|
40 |
//Constants
|
41 |
-
const VERSION = '2.
|
42 |
const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
|
43 |
const OPTION_NAME = 'wpfront-user-role-editor-options';
|
44 |
const PLUGIN_SLUG = 'wpfront-user-role-editor';
|
45 |
|
46 |
public static $DYNAMIC_CAPS = array();
|
47 |
public static $ROLE_CAPS = array('list_roles', 'create_roles', 'edit_roles', 'delete_roles', 'edit_role_menus', 'edit_posts_role_permissions', 'edit_pages_role_permissions', 'edit_nav_menu_permissions');
|
48 |
-
public static $DEFAULT_ROLES = array(
|
49 |
public static $STANDARD_CAPABILITIES = array(
|
50 |
'Dashboard' => array(
|
51 |
-
'read' => array(
|
52 |
-
'edit_dashboard' => array(
|
53 |
),
|
54 |
'Posts' => array(
|
55 |
-
'publish_posts' => array(
|
56 |
-
'edit_posts' => array(
|
57 |
-
'delete_posts' => array(
|
58 |
-
'edit_published_posts' => array(
|
59 |
-
'delete_published_posts' => array(
|
60 |
-
'edit_others_posts' => array(
|
61 |
-
'delete_others_posts' => array(
|
62 |
-
'read_private_posts' => array(
|
63 |
-
'edit_private_posts' => array(
|
64 |
-
'delete_private_posts' => array(
|
65 |
-
'manage_categories' => array(
|
66 |
),
|
67 |
'Media' => array(
|
68 |
-
'upload_files' => array(
|
69 |
-
'unfiltered_upload' => array(
|
70 |
),
|
71 |
'Pages' => array(
|
72 |
-
'publish_pages' => array(
|
73 |
-
'edit_pages' => array(
|
74 |
-
'delete_pages' => array(
|
75 |
-
'edit_published_pages' => array(
|
76 |
-
'delete_published_pages' => array(
|
77 |
-
'edit_others_pages' => array(
|
78 |
-
'delete_others_pages' => array(
|
79 |
-
'read_private_pages' => array(
|
80 |
-
'edit_private_pages' => array(
|
81 |
-
'delete_private_pages' => array(
|
82 |
),
|
83 |
'Comments' => array(
|
84 |
'edit_comment' => array(),
|
85 |
-
'moderate_comments' => array(
|
86 |
),
|
87 |
'Themes' => array(
|
88 |
-
'switch_themes' => array(
|
89 |
-
'edit_theme_options' => array(
|
90 |
-
'edit_themes' => array(
|
91 |
-
'delete_themes' => array(
|
92 |
-
'install_themes' => array(
|
93 |
-
'update_themes' => array(
|
94 |
),
|
95 |
'Plugins' => array(
|
96 |
-
'activate_plugins' => array(
|
97 |
-
'edit_plugins' => array(
|
98 |
-
'install_plugins' => array(
|
99 |
-
'update_plugins' => array(
|
100 |
-
'delete_plugins' => array(
|
101 |
),
|
102 |
'Users' => array(
|
103 |
-
'list_users' => array(
|
104 |
-
'create_users' => array(
|
105 |
-
'edit_users' => array(
|
106 |
-
'delete_users' => array(
|
107 |
-
'promote_users' => array(
|
108 |
-
'add_users' => array(
|
109 |
-
'remove_users' => array(
|
110 |
),
|
111 |
'Tools' => array(
|
112 |
-
'import' => array(
|
113 |
-
'export' => array(
|
114 |
),
|
115 |
'Admin' => array(
|
116 |
-
'manage_options' => array(
|
117 |
-
'update_core' => array(
|
118 |
-
'unfiltered_html' => array(
|
119 |
),
|
120 |
'Links' => array(
|
121 |
-
'manage_links' => array(
|
122 |
)
|
123 |
);
|
124 |
public static $DEPRECATED_CAPABILITIES = array(
|
125 |
'Deprecated' => array(
|
126 |
-
'edit_files' => array(
|
127 |
-
'level_0' => array(
|
128 |
-
'level_1' => array(
|
129 |
-
'level_2' => array(
|
130 |
-
'level_3' => array(
|
131 |
-
'level_4' => array(
|
132 |
-
'level_5' => array(
|
133 |
-
'level_6' => array(
|
134 |
-
'level_7' => array(
|
135 |
-
'level_8' => array(
|
136 |
-
'level_9' => array(
|
137 |
-
'level_10' => array(
|
138 |
)
|
139 |
);
|
140 |
public static $OTHER_CAPABILITIES = array(
|
@@ -149,6 +149,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
149 |
protected $objList;
|
150 |
protected $objAddEdit;
|
151 |
protected $objRestore;
|
|
|
152 |
protected $objAssignUsers;
|
153 |
protected $objGoPro;
|
154 |
protected $objNavMenu = NULL;
|
@@ -165,6 +166,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
165 |
$this->objList = new WPFront_User_Role_Editor_List($this);
|
166 |
$this->objAddEdit = new WPFront_User_Role_Editor_Add_Edit($this);
|
167 |
$this->objRestore = new WPFront_User_Role_Editor_Restore($this);
|
|
|
168 |
$this->objAssignUsers = new WPFront_User_Role_Editor_Assign_Roles($this);
|
169 |
if ($this->objNavMenu === NULL)
|
170 |
$this->objNavMenu = new WPFront_User_Role_Editor_Nav_Menu($this);
|
@@ -219,17 +221,18 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
219 |
$this->add_submenu_page(10, $this->__('Roles'), $this->__('All Roles'), $this->get_capability_string('list'), WPFront_User_Role_Editor_List::MENU_SLUG, array($this->objList, 'list_roles'), NULL, NULL, $this->objList);
|
220 |
$this->add_submenu_page(20, $this->__('Add New Role'), $this->__('Add New'), $this->get_capability_string('create'), WPFront_User_Role_Editor_Add_Edit::MENU_SLUG, array($this->objAddEdit, 'add_edit_role'), NULL, NULL, $this->objAddEdit);
|
221 |
$this->add_submenu_page(30, $this->__('Restore Role'), $this->__('Restore'), $this->get_capability_string('edit'), WPFront_User_Role_Editor_Restore::MENU_SLUG, array($this->objRestore, 'restore_role'), NULL, NULL, $this->objRestore);
|
|
|
222 |
$this->add_submenu_page(100, $this->__('Settings'), $this->__('Settings'), 'manage_options', WPFront_User_Role_Editor_Options::MENU_SLUG, array($this->options, 'settings'), NULL, NULL, $this->options);
|
223 |
}
|
224 |
-
|
225 |
ksort($this->admin_menu);
|
226 |
-
|
227 |
if (!empty($this->admin_menu)) {
|
228 |
$menu_capability = reset($this->admin_menu);
|
229 |
$menu_capability = $menu_capability[2];
|
230 |
add_menu_page($this->__('Roles'), $this->__('Roles'), $menu_capability, $menu_slug, null, $this->pluginURL() . 'images/roles_menu.png', '69.999999');
|
231 |
}
|
232 |
-
|
233 |
foreach ($this->admin_menu as $key => $value) {
|
234 |
$page_hook_suffix = add_submenu_page($menu_slug, $value[0], $value[1], $value[2], $value[3], $value[4]);
|
235 |
add_action('admin_print_scripts-' . $page_hook_suffix, array($this, $value[5]));
|
@@ -514,7 +517,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
514 |
public function override_edit_permissions() {
|
515 |
return $this->options->override_edit_permissions();
|
516 |
}
|
517 |
-
|
518 |
public function disable_navigation_menu_permissions() {
|
519 |
return $this->options->disable_navigation_menu_permissions();
|
520 |
}
|
@@ -533,7 +536,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
533 |
|
534 |
private function rename_role_capabilities() {
|
535 |
global $wp_roles;
|
536 |
-
|
537 |
//removed in v2.5 but in wrong place.
|
538 |
// foreach ($wp_roles->role_objects as $key => $role) {
|
539 |
// foreach (self::$ROLE_CAPS as $value) {
|
@@ -544,7 +547,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
544 |
// }
|
545 |
// }
|
546 |
|
547 |
-
$role_admin = $wp_roles->role_objects[
|
548 |
foreach (self::$ROLE_CAPS as $value) {
|
549 |
$role_admin->add_cap($value);
|
550 |
}
|
@@ -594,6 +597,7 @@ require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-list.ph
|
|
594 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-add-edit.php");
|
595 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-delete.php");
|
596 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-restore.php");
|
|
|
597 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-assign-roles.php");
|
598 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-go-pro.php");
|
599 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-nav-menu.php");
|
38 |
class WPFront_User_Role_Editor extends WPFront_Base_URE {
|
39 |
|
40 |
//Constants
|
41 |
+
const VERSION = '2.7';
|
42 |
const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
|
43 |
const OPTION_NAME = 'wpfront-user-role-editor-options';
|
44 |
const PLUGIN_SLUG = 'wpfront-user-role-editor';
|
45 |
|
46 |
public static $DYNAMIC_CAPS = array();
|
47 |
public static $ROLE_CAPS = array('list_roles', 'create_roles', 'edit_roles', 'delete_roles', 'edit_role_menus', 'edit_posts_role_permissions', 'edit_pages_role_permissions', 'edit_nav_menu_permissions');
|
48 |
+
public static $DEFAULT_ROLES = array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY, self::SUBSCRIBER_ROLE_KEY);
|
49 |
public static $STANDARD_CAPABILITIES = array(
|
50 |
'Dashboard' => array(
|
51 |
+
'read' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY, self::SUBSCRIBER_ROLE_KEY),
|
52 |
+
'edit_dashboard' => array(self::ADMINISTRATOR_ROLE_KEY)
|
53 |
),
|
54 |
'Posts' => array(
|
55 |
+
'publish_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY),
|
56 |
+
'edit_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY),
|
57 |
+
'delete_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY),
|
58 |
+
'edit_published_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY),
|
59 |
+
'delete_published_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY),
|
60 |
+
'edit_others_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
61 |
+
'delete_others_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
62 |
+
'read_private_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
63 |
+
'edit_private_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
64 |
+
'delete_private_posts' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
65 |
+
'manage_categories' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY)
|
66 |
),
|
67 |
'Media' => array(
|
68 |
+
'upload_files' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY),
|
69 |
+
'unfiltered_upload' => array(self::ADMINISTRATOR_ROLE_KEY)
|
70 |
),
|
71 |
'Pages' => array(
|
72 |
+
'publish_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
73 |
+
'edit_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
74 |
+
'delete_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
75 |
+
'edit_published_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
76 |
+
'delete_published_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
77 |
+
'edit_others_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
78 |
+
'delete_others_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
79 |
+
'read_private_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
80 |
+
'edit_private_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
81 |
+
'delete_private_pages' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY)
|
82 |
),
|
83 |
'Comments' => array(
|
84 |
'edit_comment' => array(),
|
85 |
+
'moderate_comments' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY)
|
86 |
),
|
87 |
'Themes' => array(
|
88 |
+
'switch_themes' => array(self::ADMINISTRATOR_ROLE_KEY),
|
89 |
+
'edit_theme_options' => array(self::ADMINISTRATOR_ROLE_KEY),
|
90 |
+
'edit_themes' => array(self::ADMINISTRATOR_ROLE_KEY),
|
91 |
+
'delete_themes' => array(self::ADMINISTRATOR_ROLE_KEY),
|
92 |
+
'install_themes' => array(self::ADMINISTRATOR_ROLE_KEY),
|
93 |
+
'update_themes' => array(self::ADMINISTRATOR_ROLE_KEY)
|
94 |
),
|
95 |
'Plugins' => array(
|
96 |
+
'activate_plugins' => array(self::ADMINISTRATOR_ROLE_KEY),
|
97 |
+
'edit_plugins' => array(self::ADMINISTRATOR_ROLE_KEY),
|
98 |
+
'install_plugins' => array(self::ADMINISTRATOR_ROLE_KEY),
|
99 |
+
'update_plugins' => array(self::ADMINISTRATOR_ROLE_KEY),
|
100 |
+
'delete_plugins' => array(self::ADMINISTRATOR_ROLE_KEY)
|
101 |
),
|
102 |
'Users' => array(
|
103 |
+
'list_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
104 |
+
'create_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
105 |
+
'edit_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
106 |
+
'delete_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
107 |
+
'promote_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
108 |
+
'add_users' => array(self::ADMINISTRATOR_ROLE_KEY),
|
109 |
+
'remove_users' => array(self::ADMINISTRATOR_ROLE_KEY)
|
110 |
),
|
111 |
'Tools' => array(
|
112 |
+
'import' => array(self::ADMINISTRATOR_ROLE_KEY),
|
113 |
+
'export' => array(self::ADMINISTRATOR_ROLE_KEY)
|
114 |
),
|
115 |
'Admin' => array(
|
116 |
+
'manage_options' => array(self::ADMINISTRATOR_ROLE_KEY),
|
117 |
+
'update_core' => array(self::ADMINISTRATOR_ROLE_KEY),
|
118 |
+
'unfiltered_html' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY)
|
119 |
),
|
120 |
'Links' => array(
|
121 |
+
'manage_links' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY)
|
122 |
)
|
123 |
);
|
124 |
public static $DEPRECATED_CAPABILITIES = array(
|
125 |
'Deprecated' => array(
|
126 |
+
'edit_files' => array(self::ADMINISTRATOR_ROLE_KEY),
|
127 |
+
'level_0' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY, self::SUBSCRIBER_ROLE_KEY),
|
128 |
+
'level_1' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY, self::CONTRIBUTOR_ROLE_KEY),
|
129 |
+
'level_2' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY, self::AUTHOR_ROLE_KEY),
|
130 |
+
'level_3' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
131 |
+
'level_4' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
132 |
+
'level_5' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
133 |
+
'level_6' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
134 |
+
'level_7' => array(self::ADMINISTRATOR_ROLE_KEY, self::EDITOR_ROLE_KEY),
|
135 |
+
'level_8' => array(self::ADMINISTRATOR_ROLE_KEY),
|
136 |
+
'level_9' => array(self::ADMINISTRATOR_ROLE_KEY),
|
137 |
+
'level_10' => array(self::ADMINISTRATOR_ROLE_KEY)
|
138 |
)
|
139 |
);
|
140 |
public static $OTHER_CAPABILITIES = array(
|
149 |
protected $objList;
|
150 |
protected $objAddEdit;
|
151 |
protected $objRestore;
|
152 |
+
protected $objAddRemoveCap;
|
153 |
protected $objAssignUsers;
|
154 |
protected $objGoPro;
|
155 |
protected $objNavMenu = NULL;
|
166 |
$this->objList = new WPFront_User_Role_Editor_List($this);
|
167 |
$this->objAddEdit = new WPFront_User_Role_Editor_Add_Edit($this);
|
168 |
$this->objRestore = new WPFront_User_Role_Editor_Restore($this);
|
169 |
+
$this->objAddRemoveCap = new WPFront_User_Role_Editor_Add_Remove_Capability($this);
|
170 |
$this->objAssignUsers = new WPFront_User_Role_Editor_Assign_Roles($this);
|
171 |
if ($this->objNavMenu === NULL)
|
172 |
$this->objNavMenu = new WPFront_User_Role_Editor_Nav_Menu($this);
|
221 |
$this->add_submenu_page(10, $this->__('Roles'), $this->__('All Roles'), $this->get_capability_string('list'), WPFront_User_Role_Editor_List::MENU_SLUG, array($this->objList, 'list_roles'), NULL, NULL, $this->objList);
|
222 |
$this->add_submenu_page(20, $this->__('Add New Role'), $this->__('Add New'), $this->get_capability_string('create'), WPFront_User_Role_Editor_Add_Edit::MENU_SLUG, array($this->objAddEdit, 'add_edit_role'), NULL, NULL, $this->objAddEdit);
|
223 |
$this->add_submenu_page(30, $this->__('Restore Role'), $this->__('Restore'), $this->get_capability_string('edit'), WPFront_User_Role_Editor_Restore::MENU_SLUG, array($this->objRestore, 'restore_role'), NULL, NULL, $this->objRestore);
|
224 |
+
$this->add_submenu_page(35, $this->__('Add/Remove Capability'), $this->__('Add/Remove Cap'), $this->get_capability_string('edit'), WPFront_User_Role_Editor_Add_Remove_Capability::MENU_SLUG, array($this->objAddRemoveCap, 'add_remove_capability'), NULL, NULL, $this->objAddRemoveCap);
|
225 |
$this->add_submenu_page(100, $this->__('Settings'), $this->__('Settings'), 'manage_options', WPFront_User_Role_Editor_Options::MENU_SLUG, array($this->options, 'settings'), NULL, NULL, $this->options);
|
226 |
}
|
227 |
+
|
228 |
ksort($this->admin_menu);
|
229 |
+
|
230 |
if (!empty($this->admin_menu)) {
|
231 |
$menu_capability = reset($this->admin_menu);
|
232 |
$menu_capability = $menu_capability[2];
|
233 |
add_menu_page($this->__('Roles'), $this->__('Roles'), $menu_capability, $menu_slug, null, $this->pluginURL() . 'images/roles_menu.png', '69.999999');
|
234 |
}
|
235 |
+
|
236 |
foreach ($this->admin_menu as $key => $value) {
|
237 |
$page_hook_suffix = add_submenu_page($menu_slug, $value[0], $value[1], $value[2], $value[3], $value[4]);
|
238 |
add_action('admin_print_scripts-' . $page_hook_suffix, array($this, $value[5]));
|
517 |
public function override_edit_permissions() {
|
518 |
return $this->options->override_edit_permissions();
|
519 |
}
|
520 |
+
|
521 |
public function disable_navigation_menu_permissions() {
|
522 |
return $this->options->disable_navigation_menu_permissions();
|
523 |
}
|
536 |
|
537 |
private function rename_role_capabilities() {
|
538 |
global $wp_roles;
|
539 |
+
|
540 |
//removed in v2.5 but in wrong place.
|
541 |
// foreach ($wp_roles->role_objects as $key => $role) {
|
542 |
// foreach (self::$ROLE_CAPS as $value) {
|
547 |
// }
|
548 |
// }
|
549 |
|
550 |
+
$role_admin = $wp_roles->role_objects[self::ADMINISTRATOR_ROLE_KEY];
|
551 |
foreach (self::$ROLE_CAPS as $value) {
|
552 |
$role_admin->add_cap($value);
|
553 |
}
|
597 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-add-edit.php");
|
598 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-delete.php");
|
599 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-restore.php");
|
600 |
+
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-add-remove-capability.php");
|
601 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-assign-roles.php");
|
602 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-go-pro.php");
|
603 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-nav-menu.php");
|
classes/integration/plugins/class-wpfront-user-role-editor-plugin-integration.php
CHANGED
@@ -36,6 +36,8 @@ if (!class_exists('WPFront_User_Role_Editor_Plugin_Integration')) {
|
|
36 |
*/
|
37 |
abstract class WPFront_User_Role_Editor_Plugin_Integration {
|
38 |
|
|
|
|
|
39 |
private $initialized = FALSE;
|
40 |
|
41 |
protected abstract function init($params);
|
36 |
*/
|
37 |
abstract class WPFront_User_Role_Editor_Plugin_Integration {
|
38 |
|
39 |
+
const ADMINISTRATOR_ROLE_KEY = WPFront_User_Role_Editor::ADMINISTRATOR_ROLE_KEY;
|
40 |
+
|
41 |
private $initialized = FALSE;
|
42 |
|
43 |
protected abstract function init($params);
|
classes/integration/plugins/duplicator/class-wpfront-user-role-editor-plugin-duplicator.php
CHANGED
@@ -42,7 +42,7 @@ if (!class_exists('WPFront_User_Role_Editor_Plugin_Duplicator')) {
|
|
42 |
}
|
43 |
|
44 |
protected function init($params) {
|
45 |
-
$admin_role = get_role(
|
46 |
$caps = array();
|
47 |
foreach($params as $value) {
|
48 |
$cap = $this->translate_capability($value);
|
42 |
}
|
43 |
|
44 |
protected function init($params) {
|
45 |
+
$admin_role = get_role(self::ADMINISTRATOR_ROLE_KEY);
|
46 |
$caps = array();
|
47 |
foreach($params as $value) {
|
48 |
$cap = $this->translate_capability($value);
|
languages/wpfront-user-role-editor.mo
CHANGED
Binary file
|
languages/wpfront-user-role-editor.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WPFront Notification Bar\n"
|
4 |
-
"POT-Creation-Date: 2015-02
|
5 |
-
"PO-Revision-Date: 2015-02
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WPFront <contact@wpfront.com>\n"
|
8 |
"Language: en\n"
|
@@ -59,7 +59,7 @@ msgid "More information about %s"
|
|
59 |
msgstr "More information about %s"
|
60 |
|
61 |
#: ../classes/base/class-wpfront-base-menu.php:158
|
62 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
63 |
msgid "Details"
|
64 |
msgstr "Details"
|
65 |
|
@@ -90,21 +90,21 @@ msgid "Installed"
|
|
90 |
msgstr "Installed"
|
91 |
|
92 |
#: ../classes/base/class-wpfront-base-menu.php:179
|
93 |
-
#: ../classes/base/class-wpfront-base.php:
|
94 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:108
|
95 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
96 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
97 |
msgid "Settings"
|
98 |
msgstr "Settings"
|
99 |
|
100 |
#: ../classes/base/class-wpfront-base-menu.php:181
|
101 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
102 |
#: ../templates/go-pro.php:71 ../templates/go-pro.php:72
|
103 |
msgid "Activate"
|
104 |
msgstr "Activate"
|
105 |
|
106 |
#: ../classes/base/class-wpfront-base-menu.php:203
|
107 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
108 |
msgid "Feedback"
|
109 |
msgstr "Feedback"
|
110 |
|
@@ -116,12 +116,12 @@ msgstr "WPFront"
|
|
116 |
msgid "All Plugins"
|
117 |
msgstr "All Plugins"
|
118 |
|
119 |
-
#: ../classes/base/class-wpfront-base.php:
|
120 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
121 |
msgid "You do not have sufficient permissions to access this page."
|
122 |
msgstr "You do not have sufficient permissions to access this page."
|
123 |
|
124 |
-
#: ../classes/base/class-wpfront-base.php:
|
125 |
msgid ""
|
126 |
"If you have a caching plugin, clear the cache for the new settings to take "
|
127 |
"effect."
|
@@ -129,7 +129,7 @@ msgstr ""
|
|
129 |
"If you have a caching plugin, clear the cache for the new settings to take "
|
130 |
"effect."
|
131 |
|
132 |
-
#: ../classes/base/class-wpfront-base.php:
|
133 |
#: ../templates/personal-pro/menu-editor.php:232
|
134 |
msgid "Save Changes"
|
135 |
msgstr "Save Changes"
|
@@ -137,38 +137,41 @@ msgstr "Save Changes"
|
|
137 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:85
|
138 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:88
|
139 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-list.php:80
|
140 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
141 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
142 |
-
#: ../
|
|
|
143 |
msgid "Roles"
|
144 |
msgstr "Roles"
|
145 |
|
146 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:88
|
147 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
|
|
|
|
148 |
msgid "All Roles"
|
149 |
msgstr "All Roles"
|
150 |
|
151 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:93
|
152 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
153 |
#: ../templates/add-edit-role.php:41 ../templates/add-edit-role.php:140
|
154 |
msgid "Add New Role"
|
155 |
msgstr "Add New Role"
|
156 |
|
157 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:93
|
158 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-list.php:83
|
159 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
160 |
#: ../templates/add-edit-role.php:43 ../templates/list-roles.php:46
|
161 |
msgid "Add New"
|
162 |
msgstr "Add New"
|
163 |
|
164 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:98
|
165 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
166 |
#: ../templates/restore-role.php:40
|
167 |
msgid "Restore Role"
|
168 |
msgstr "Restore Role"
|
169 |
|
170 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:98
|
171 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
172 |
#: ../templates/restore-role.php:52
|
173 |
msgid "Restore"
|
174 |
msgstr "Restore"
|
@@ -184,7 +187,7 @@ msgid "Sync"
|
|
184 |
msgstr "Sync"
|
185 |
|
186 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:114
|
187 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
188 |
msgid "Go Pro"
|
189 |
msgstr "Go Pro"
|
190 |
|
@@ -205,16 +208,17 @@ msgstr ""
|
|
205 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:88
|
206 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-sync.php:227
|
207 |
#: ../classes/class-wpfront-user-role-editor-add-edit.php:324
|
|
|
208 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:365
|
209 |
#: ../classes/class-wpfront-user-role-editor-list.php:361
|
210 |
#: ../classes/class-wpfront-user-role-editor-list.php:395
|
211 |
#: ../classes/class-wpfront-user-role-editor-list.php:412
|
212 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
213 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
214 |
#: ../classes/class-wpfront-user-role-editor-restore.php:168
|
215 |
#: ../classes/personal-pro/class-wpfront-user-role-editor-export.php:130
|
216 |
#: ../classes/personal-pro/class-wpfront-user-role-editor-import.php:229
|
217 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
218 |
msgid "Overview"
|
219 |
msgstr "Overview"
|
220 |
|
@@ -507,11 +511,11 @@ msgstr "Documentation on Multisite Roles"
|
|
507 |
|
508 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:48
|
509 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:77
|
510 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:180
|
511 |
#: ../classes/class-wpfront-user-role-editor-go-pro.php:182
|
512 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
513 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
514 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
|
|
515 |
#: ../classes/class-wpfront-user-role-editor-restore.php:87
|
516 |
#: ../templates/add-edit-role.php:51 ../templates/add-edit-role.php:59
|
517 |
#: ../templates/business-pro/sync-roles.php:21
|
@@ -736,6 +740,71 @@ msgstr "%s to customize capabilites."
|
|
736 |
msgid "Upgrade to Pro"
|
737 |
msgstr "Upgrade to Pro"
|
738 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
739 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:66
|
740 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:339
|
741 |
msgid "Secondary Roles"
|
@@ -826,43 +895,43 @@ msgstr ""
|
|
826 |
msgid "Documentation on Assign / Migrate Users"
|
827 |
msgstr "Documentation on Assign / Migrate Users"
|
828 |
|
829 |
-
#: ../classes/class-wpfront-user-role-editor-controller-base.php:
|
830 |
msgid "Links:"
|
831 |
msgstr "Links:"
|
832 |
|
833 |
-
#: ../classes/class-wpfront-user-role-editor-controller-base.php:
|
834 |
msgid "FAQ"
|
835 |
msgstr "FAQ"
|
836 |
|
837 |
-
#: ../classes/class-wpfront-user-role-editor-controller-base.php:
|
838 |
msgid "Support"
|
839 |
msgstr "Support"
|
840 |
|
841 |
-
#: ../classes/class-wpfront-user-role-editor-controller-base.php:
|
842 |
msgid "Review"
|
843 |
msgstr "Review"
|
844 |
|
845 |
-
#: ../classes/class-wpfront-user-role-editor-controller-base.php:
|
846 |
msgid "Contact"
|
847 |
msgstr "Contact"
|
848 |
|
849 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
850 |
msgid "License key activation limit reached"
|
851 |
msgstr "License key activation limit reached"
|
852 |
|
853 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
854 |
msgid "Invalid license key"
|
855 |
msgstr "Invalid license key"
|
856 |
|
857 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
858 |
msgid "Unable to deactivate, expired license?"
|
859 |
msgstr "Unable to deactivate, expired license?"
|
860 |
|
861 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
862 |
msgid "Unable to contact wpfront.com"
|
863 |
msgstr "Unable to contact wpfront.com"
|
864 |
|
865 |
-
#: ../classes/class-wpfront-user-role-editor-go-pro.php:
|
866 |
msgid "Unable to parse response"
|
867 |
msgstr "Unable to parse response"
|
868 |
|
@@ -1000,7 +1069,7 @@ msgstr ""
|
|
1000 |
"Allows you to set that role as the default role for new user registration."
|
1001 |
|
1002 |
#: ../classes/class-wpfront-user-role-editor-list.php:486
|
1003 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1004 |
msgid "Edit Menu"
|
1005 |
msgstr "Edit Menu"
|
1006 |
|
@@ -1104,36 +1173,36 @@ msgstr "Remove"
|
|
1104 |
msgid "Cancel"
|
1105 |
msgstr "Cancel"
|
1106 |
|
1107 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1108 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1109 |
msgid "All Users"
|
1110 |
msgstr "All Users"
|
1111 |
|
1112 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1113 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1114 |
msgid "Logged in Users"
|
1115 |
msgstr "Logged in Users"
|
1116 |
|
1117 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1118 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1119 |
msgid "Guest Users"
|
1120 |
msgstr "Guest Users"
|
1121 |
|
1122 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1123 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1124 |
msgid "Users by Role"
|
1125 |
msgstr "Users by Role"
|
1126 |
|
1127 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1128 |
#, php-format
|
1129 |
msgid "%s to limit based on roles."
|
1130 |
msgstr "%s to limit based on roles."
|
1131 |
|
1132 |
-
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:
|
1133 |
msgid "User Restrictions"
|
1134 |
msgstr "User Restrictions"
|
1135 |
|
1136 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1137 |
msgid ""
|
1138 |
"These settings are applicable for the network admin dashboard. Also these "
|
1139 |
"settings will propagate to the individual sites unless its overridden within "
|
@@ -1143,27 +1212,27 @@ msgstr ""
|
|
1143 |
"settings will propagate to the individual sites unless its overridden within "
|
1144 |
"that site’s settings."
|
1145 |
|
1146 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1147 |
-
#: ../templates/options-template.php:
|
1148 |
msgid "Enable Large Network Functionalities"
|
1149 |
msgstr "Enable Large Network Functionalities"
|
1150 |
|
1151 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1152 |
msgid "This setting is only visible when you have a large network."
|
1153 |
msgstr "This setting is only visible when you have a large network."
|
1154 |
|
1155 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1156 |
msgid "More details"
|
1157 |
msgstr "More details"
|
1158 |
|
1159 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1160 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1161 |
-
#: ../templates/options-template.php:
|
1162 |
msgid "Display Deprecated Capabilities"
|
1163 |
msgstr "Display Deprecated Capabilities"
|
1164 |
|
1165 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1166 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1167 |
msgid ""
|
1168 |
"If enabled, deprecated capabilities will be displayed within the add/edit "
|
1169 |
"screens."
|
@@ -1171,14 +1240,14 @@ msgstr ""
|
|
1171 |
"If enabled, deprecated capabilities will be displayed within the add/edit "
|
1172 |
"screens."
|
1173 |
|
1174 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1175 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1176 |
-
#: ../templates/options-template.php:
|
1177 |
msgid "Remove Non-Standard Capabilities on Restore"
|
1178 |
msgstr "Remove Non-Standard Capabilities on Restore"
|
1179 |
|
1180 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1181 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1182 |
msgid ""
|
1183 |
"If enabled, while restoring WordPress built-in capabilities non-standard "
|
1184 |
"capabilities will be removed."
|
@@ -1186,25 +1255,36 @@ msgstr ""
|
|
1186 |
"If enabled, while restoring WordPress built-in capabilities non-standard "
|
1187 |
"capabilities will be removed."
|
1188 |
|
1189 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1190 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1191 |
-
#: ../templates/options-template.php:
|
1192 |
msgid "Override Edit Permissions"
|
1193 |
msgstr "Override Edit Permissions"
|
1194 |
|
1195 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1196 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1197 |
msgid "If enabled, ignores the check to the function get_editable_roles."
|
1198 |
msgstr "If enabled, ignores the check to the function get_editable_roles."
|
1199 |
|
1200 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1201 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1202 |
-
#: ../templates/options-template.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1203 |
msgid "Remove Data on Uninstall"
|
1204 |
msgstr "Remove Data on Uninstall"
|
1205 |
|
1206 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1207 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1208 |
msgid ""
|
1209 |
"If enabled, removes all data related to this plugin from database (except "
|
1210 |
"roles data) including license information if any. This will not deactivate "
|
@@ -1214,11 +1294,11 @@ msgstr ""
|
|
1214 |
"roles data) including license information if any. This will not deactivate "
|
1215 |
"the license automatically."
|
1216 |
|
1217 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1218 |
msgid "Documentation on Multisite Settings"
|
1219 |
msgstr "Documentation on Multisite Settings"
|
1220 |
|
1221 |
-
#: ../classes/class-wpfront-user-role-editor-options.php:
|
1222 |
msgid "Documentation on Settings"
|
1223 |
msgstr "Documentation on Settings"
|
1224 |
|
@@ -1226,15 +1306,24 @@ msgstr "Documentation on Settings"
|
|
1226 |
msgid "Documentation on Restore"
|
1227 |
msgstr "Documentation on Restore"
|
1228 |
|
1229 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1230 |
msgid "Assign Roles | Migrate Users"
|
1231 |
msgstr "Assign Roles | Migrate Users"
|
1232 |
|
1233 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
1234 |
msgid "Assign / Migrate"
|
1235 |
msgstr "Assign / Migrate"
|
1236 |
|
1237 |
-
#: ../classes/class-wpfront-user-role-editor.php:
|
1238 |
msgid "Buy me a Beer"
|
1239 |
msgstr "Buy me a Beer"
|
1240 |
|
@@ -1343,19 +1432,19 @@ msgstr ""
|
|
1343 |
msgid "Documentation on Import"
|
1344 |
msgstr "Documentation on Import"
|
1345 |
|
1346 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1347 |
msgid "Menu changes saved."
|
1348 |
msgstr "Menu changes saved."
|
1349 |
|
1350 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1351 |
msgid "Menu defaults restored."
|
1352 |
msgstr "Menu defaults restored."
|
1353 |
|
1354 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1355 |
msgid "No editable roles found on this site."
|
1356 |
msgstr "No editable roles found on this site."
|
1357 |
|
1358 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1359 |
msgid ""
|
1360 |
"This screen allows you to enable and disable admin menus for a particular "
|
1361 |
"role."
|
@@ -1363,11 +1452,11 @@ msgstr ""
|
|
1363 |
"This screen allows you to enable and disable admin menus for a particular "
|
1364 |
"role."
|
1365 |
|
1366 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1367 |
msgid "Deselect a menu from the grid to remove that menu."
|
1368 |
msgstr "Deselect a menu from the grid to remove that menu."
|
1369 |
|
1370 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1371 |
msgid ""
|
1372 |
"Disabled menu items are already hidden, because the selected role doesn't "
|
1373 |
"have the capability to display that menu. Grid displays menus which the "
|
@@ -1377,25 +1466,25 @@ msgstr ""
|
|
1377 |
"have the capability to display that menu. Grid displays menus which the "
|
1378 |
"current user has access to."
|
1379 |
|
1380 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1381 |
msgid "Fields"
|
1382 |
msgstr "Fields"
|
1383 |
|
1384 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1385 |
#: ../templates/personal-pro/menu-editor.php:39
|
1386 |
msgid "Override Role"
|
1387 |
msgstr "Override Role"
|
1388 |
|
1389 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1390 |
msgid "The role you want to override."
|
1391 |
msgstr "The role you want to override."
|
1392 |
|
1393 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1394 |
#: ../templates/personal-pro/menu-editor.php:56
|
1395 |
msgid "Override Type"
|
1396 |
msgstr "Override Type"
|
1397 |
|
1398 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1399 |
msgid ""
|
1400 |
"Soft - Pages may be available through directly typing the URL. Hard - Even "
|
1401 |
"URLs will be blocked."
|
@@ -1403,35 +1492,35 @@ msgstr ""
|
|
1403 |
"Soft - Pages may be available through directly typing the URL. Hard - Even "
|
1404 |
"URLs will be blocked."
|
1405 |
|
1406 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1407 |
#: ../templates/personal-pro/menu-editor.php:67
|
1408 |
msgid "Hide New Menus"
|
1409 |
msgstr "Hide New Menus"
|
1410 |
|
1411 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1412 |
msgid "Allow you to hide future menus."
|
1413 |
msgstr "Allow you to hide future menus."
|
1414 |
|
1415 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1416 |
#: ../templates/personal-pro/menu-editor.php:75
|
1417 |
msgid "Disable For Secondary Role"
|
1418 |
msgstr "Disable For Secondary Role"
|
1419 |
|
1420 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1421 |
msgid "Disables menu settings while the selected role is a secondary role."
|
1422 |
msgstr "Disables menu settings while the selected role is a secondary role."
|
1423 |
|
1424 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1425 |
msgid "Restore Default"
|
1426 |
msgstr "Restore Default"
|
1427 |
|
1428 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1429 |
msgid ""
|
1430 |
"Select \"Restore default\" from the \"Copy from\" drop down and click apply."
|
1431 |
msgstr ""
|
1432 |
"Select \"Restore default\" from the \"Copy from\" drop down and click apply."
|
1433 |
|
1434 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:
|
1435 |
msgid "Documentation on Menu Editor"
|
1436 |
msgstr "Documentation on Menu Editor"
|
1437 |
|
@@ -1440,31 +1529,31 @@ msgstr "Documentation on Menu Editor"
|
|
1440 |
msgid "[Guest]"
|
1441 |
msgstr "[Guest]"
|
1442 |
|
1443 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1444 |
#: ../templates/personal-pro/menu-editor.php:9
|
1445 |
msgid "Menu Editor"
|
1446 |
msgstr "Menu Editor"
|
1447 |
|
1448 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1449 |
#: ../templates/personal-pro/export-roles.php:9
|
1450 |
msgid "Export Roles"
|
1451 |
msgstr "Export Roles"
|
1452 |
|
1453 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1454 |
msgid "Export"
|
1455 |
msgstr "Export"
|
1456 |
|
1457 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1458 |
#: ../templates/personal-pro/import-roles.php:9
|
1459 |
#: ../templates/personal-pro/import-roles.php:88
|
1460 |
msgid "Import Roles"
|
1461 |
msgstr "Import Roles"
|
1462 |
|
1463 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1464 |
msgid "Import"
|
1465 |
msgstr "Import"
|
1466 |
|
1467 |
-
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:
|
1468 |
#, php-format
|
1469 |
msgid "%s license not activated."
|
1470 |
msgstr "%s license not activated."
|
@@ -1491,6 +1580,7 @@ msgid "Create a brand new role and add it to this site."
|
|
1491 |
msgstr "Create a brand new role and add it to this site."
|
1492 |
|
1493 |
#: ../templates/add-edit-role.php:77 ../templates/add-edit-role.php:87
|
|
|
1494 |
msgid "required"
|
1495 |
msgstr "required"
|
1496 |
|
@@ -1507,6 +1597,22 @@ msgstr "Select None"
|
|
1507 |
msgid "Update Role"
|
1508 |
msgstr "Update Role"
|
1509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1510 |
#: ../templates/assign-roles.php:68
|
1511 |
msgid "User"
|
1512 |
msgstr "User"
|
@@ -1646,7 +1752,7 @@ msgstr "License Expires"
|
|
1646 |
msgid "WPFront User Role Editor Settings"
|
1647 |
msgstr "WPFront User Role Editor Settings"
|
1648 |
|
1649 |
-
#: ../templates/options-template.php:
|
1650 |
#, php-format
|
1651 |
msgid ""
|
1652 |
"Menu walker class is overriden by a theme/plugin. Current value = %s. "
|
@@ -1655,15 +1761,15 @@ msgstr ""
|
|
1655 |
"Menu walker class is overriden by a theme/plugin. Current value = %s. "
|
1656 |
"Navigation menu permissions may still work. %s"
|
1657 |
|
1658 |
-
#: ../templates/options-template.php:
|
1659 |
msgid "More information"
|
1660 |
msgstr "More information"
|
1661 |
|
1662 |
-
#: ../templates/options-template.php:
|
1663 |
msgid "Customize Permissions (custom post types)"
|
1664 |
msgstr "Customize Permissions (custom post types)"
|
1665 |
|
1666 |
-
#: ../templates/options-template.php:
|
1667 |
msgid "No customizable post types found."
|
1668 |
msgstr "No customizable post types found."
|
1669 |
|
@@ -1752,10 +1858,6 @@ msgstr "Has Capability"
|
|
1752 |
msgid "No Capability"
|
1753 |
msgstr "No Capability"
|
1754 |
|
1755 |
-
#: ../templates/personal-pro/menu-editor.php:141
|
1756 |
-
msgid "Capability"
|
1757 |
-
msgstr "Capability"
|
1758 |
-
|
1759 |
#: ../templates/personal-pro/menu-editor.php:144
|
1760 |
msgid "Menu Slug"
|
1761 |
msgstr "Menu Slug"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WPFront Notification Bar\n"
|
4 |
+
"POT-Creation-Date: 2015-03-02 12:27-0700\n"
|
5 |
+
"PO-Revision-Date: 2015-03-02 12:27-0700\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WPFront <contact@wpfront.com>\n"
|
8 |
"Language: en\n"
|
59 |
msgstr "More information about %s"
|
60 |
|
61 |
#: ../classes/base/class-wpfront-base-menu.php:158
|
62 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:225
|
63 |
msgid "Details"
|
64 |
msgstr "Details"
|
65 |
|
90 |
msgstr "Installed"
|
91 |
|
92 |
#: ../classes/base/class-wpfront-base-menu.php:179
|
93 |
+
#: ../classes/base/class-wpfront-base.php:119
|
94 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:108
|
95 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:262
|
96 |
+
#: ../classes/class-wpfront-user-role-editor.php:225
|
97 |
msgid "Settings"
|
98 |
msgstr "Settings"
|
99 |
|
100 |
#: ../classes/base/class-wpfront-base-menu.php:181
|
101 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:103
|
102 |
#: ../templates/go-pro.php:71 ../templates/go-pro.php:72
|
103 |
msgid "Activate"
|
104 |
msgstr "Activate"
|
105 |
|
106 |
#: ../classes/base/class-wpfront-base-menu.php:203
|
107 |
+
#: ../classes/class-wpfront-user-role-editor.php:340
|
108 |
msgid "Feedback"
|
109 |
msgstr "Feedback"
|
110 |
|
116 |
msgid "All Plugins"
|
117 |
msgstr "All Plugins"
|
118 |
|
119 |
+
#: ../classes/base/class-wpfront-base.php:148
|
120 |
+
#: ../classes/class-wpfront-user-role-editor.php:289
|
121 |
msgid "You do not have sufficient permissions to access this page."
|
122 |
msgstr "You do not have sufficient permissions to access this page."
|
123 |
|
124 |
+
#: ../classes/base/class-wpfront-base.php:168
|
125 |
msgid ""
|
126 |
"If you have a caching plugin, clear the cache for the new settings to take "
|
127 |
"effect."
|
129 |
"If you have a caching plugin, clear the cache for the new settings to take "
|
130 |
"effect."
|
131 |
|
132 |
+
#: ../classes/base/class-wpfront-base.php:215
|
133 |
#: ../templates/personal-pro/menu-editor.php:232
|
134 |
msgid "Save Changes"
|
135 |
msgstr "Save Changes"
|
137 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:85
|
138 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:88
|
139 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-list.php:80
|
140 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:152
|
141 |
+
#: ../classes/class-wpfront-user-role-editor.php:221
|
142 |
+
#: ../classes/class-wpfront-user-role-editor.php:233
|
143 |
+
#: ../templates/add-remove-capability.php:85 ../templates/list-roles.php:43
|
144 |
msgid "Roles"
|
145 |
msgstr "Roles"
|
146 |
|
147 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:88
|
148 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:154
|
149 |
+
#: ../classes/class-wpfront-user-role-editor.php:221
|
150 |
+
#: ../templates/add-remove-capability.php:90
|
151 |
msgid "All Roles"
|
152 |
msgstr "All Roles"
|
153 |
|
154 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:93
|
155 |
+
#: ../classes/class-wpfront-user-role-editor.php:222
|
156 |
#: ../templates/add-edit-role.php:41 ../templates/add-edit-role.php:140
|
157 |
msgid "Add New Role"
|
158 |
msgstr "Add New Role"
|
159 |
|
160 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:93
|
161 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-list.php:83
|
162 |
+
#: ../classes/class-wpfront-user-role-editor.php:222
|
163 |
#: ../templates/add-edit-role.php:43 ../templates/list-roles.php:46
|
164 |
msgid "Add New"
|
165 |
msgstr "Add New"
|
166 |
|
167 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:98
|
168 |
+
#: ../classes/class-wpfront-user-role-editor.php:223
|
169 |
#: ../templates/restore-role.php:40
|
170 |
msgid "Restore Role"
|
171 |
msgstr "Restore Role"
|
172 |
|
173 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:98
|
174 |
+
#: ../classes/class-wpfront-user-role-editor.php:223
|
175 |
#: ../templates/restore-role.php:52
|
176 |
msgid "Restore"
|
177 |
msgstr "Restore"
|
187 |
msgstr "Sync"
|
188 |
|
189 |
#: ../classes/business-pro/class-wpfront-user-role-editor-business-pro.php:114
|
190 |
+
#: ../classes/class-wpfront-user-role-editor.php:207
|
191 |
msgid "Go Pro"
|
192 |
msgstr "Go Pro"
|
193 |
|
208 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:88
|
209 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-sync.php:227
|
210 |
#: ../classes/class-wpfront-user-role-editor-add-edit.php:324
|
211 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:128
|
212 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:365
|
213 |
#: ../classes/class-wpfront-user-role-editor-list.php:361
|
214 |
#: ../classes/class-wpfront-user-role-editor-list.php:395
|
215 |
#: ../classes/class-wpfront-user-role-editor-list.php:412
|
216 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:255
|
217 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:302
|
218 |
#: ../classes/class-wpfront-user-role-editor-restore.php:168
|
219 |
#: ../classes/personal-pro/class-wpfront-user-role-editor-export.php:130
|
220 |
#: ../classes/personal-pro/class-wpfront-user-role-editor-import.php:229
|
221 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:592
|
222 |
msgid "Overview"
|
223 |
msgstr "Overview"
|
224 |
|
511 |
|
512 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:48
|
513 |
#: ../classes/business-pro/class-wpfront-user-role-editor-ms-restore.php:77
|
|
|
514 |
#: ../classes/class-wpfront-user-role-editor-go-pro.php:182
|
515 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:184
|
516 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:204
|
517 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:223
|
518 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:232
|
519 |
#: ../classes/class-wpfront-user-role-editor-restore.php:87
|
520 |
#: ../templates/add-edit-role.php:51 ../templates/add-edit-role.php:59
|
521 |
#: ../templates/business-pro/sync-roles.php:21
|
740 |
msgid "Upgrade to Pro"
|
741 |
msgstr "Upgrade to Pro"
|
742 |
|
743 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:108
|
744 |
+
msgid "Roles updated."
|
745 |
+
msgstr "Roles updated."
|
746 |
+
|
747 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:130
|
748 |
+
msgid ""
|
749 |
+
"This screen allows you to add a capability to roles or remove a capability "
|
750 |
+
"from roles within your site."
|
751 |
+
msgstr ""
|
752 |
+
"This screen allows you to add a capability to roles or remove a capability "
|
753 |
+
"from roles within your site."
|
754 |
+
|
755 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:135
|
756 |
+
#: ../templates/add-remove-capability.php:61
|
757 |
+
msgid "Action"
|
758 |
+
msgstr "Action"
|
759 |
+
|
760 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:137
|
761 |
+
msgid "Select \"Add Capability\" to add a capability to roles."
|
762 |
+
msgstr "Select \"Add Capability\" to add a capability to roles."
|
763 |
+
|
764 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:140
|
765 |
+
msgid "Select \"Remove Capability\" to remove a capability from roles."
|
766 |
+
msgstr "Select \"Remove Capability\" to remove a capability from roles."
|
767 |
+
|
768 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:145
|
769 |
+
#: ../templates/add-remove-capability.php:75
|
770 |
+
#: ../templates/personal-pro/menu-editor.php:141
|
771 |
+
msgid "Capability"
|
772 |
+
msgstr "Capability"
|
773 |
+
|
774 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:147
|
775 |
+
msgid "Use the Capability field to name the capability to be added or removed."
|
776 |
+
msgstr ""
|
777 |
+
"Use the Capability field to name the capability to be added or removed."
|
778 |
+
|
779 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:155
|
780 |
+
msgid ""
|
781 |
+
"Select \"All Roles\", if you want the current action to be applied to all "
|
782 |
+
"roles within your site."
|
783 |
+
msgstr ""
|
784 |
+
"Select \"All Roles\", if you want the current action to be applied to all "
|
785 |
+
"roles within your site."
|
786 |
+
|
787 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:158
|
788 |
+
#: ../templates/add-remove-capability.php:92
|
789 |
+
msgid "Selected Roles"
|
790 |
+
msgstr "Selected Roles"
|
791 |
+
|
792 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:159
|
793 |
+
msgid ""
|
794 |
+
"Select \"Selected Roles\", if you want to individually select the roles. "
|
795 |
+
"When this option is selected, \"Administrator\" role is included by default "
|
796 |
+
"on \"Add Capability\" action and excluded by default on \"Remove Capability"
|
797 |
+
"\" action."
|
798 |
+
msgstr ""
|
799 |
+
"Select \"Selected Roles\", if you want to individually select the roles. "
|
800 |
+
"When this option is selected, \"Administrator\" role is included by default "
|
801 |
+
"on \"Add Capability\" action and excluded by default on \"Remove Capability"
|
802 |
+
"\" action."
|
803 |
+
|
804 |
+
#: ../classes/class-wpfront-user-role-editor-add-remove-capability.php:168
|
805 |
+
msgid "Documentation on Add/Remove Capability"
|
806 |
+
msgstr "Documentation on Add/Remove Capability"
|
807 |
+
|
808 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:66
|
809 |
#: ../classes/class-wpfront-user-role-editor-assign-roles.php:339
|
810 |
msgid "Secondary Roles"
|
895 |
msgid "Documentation on Assign / Migrate Users"
|
896 |
msgstr "Documentation on Assign / Migrate Users"
|
897 |
|
898 |
+
#: ../classes/class-wpfront-user-role-editor-controller-base.php:87
|
899 |
msgid "Links:"
|
900 |
msgstr "Links:"
|
901 |
|
902 |
+
#: ../classes/class-wpfront-user-role-editor-controller-base.php:93
|
903 |
msgid "FAQ"
|
904 |
msgstr "FAQ"
|
905 |
|
906 |
+
#: ../classes/class-wpfront-user-role-editor-controller-base.php:94
|
907 |
msgid "Support"
|
908 |
msgstr "Support"
|
909 |
|
910 |
+
#: ../classes/class-wpfront-user-role-editor-controller-base.php:95
|
911 |
msgid "Review"
|
912 |
msgstr "Review"
|
913 |
|
914 |
+
#: ../classes/class-wpfront-user-role-editor-controller-base.php:96
|
915 |
msgid "Contact"
|
916 |
msgstr "Contact"
|
917 |
|
918 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:182
|
919 |
msgid "License key activation limit reached"
|
920 |
msgstr "License key activation limit reached"
|
921 |
|
922 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:184
|
923 |
msgid "Invalid license key"
|
924 |
msgstr "Invalid license key"
|
925 |
|
926 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:204
|
927 |
msgid "Unable to deactivate, expired license?"
|
928 |
msgstr "Unable to deactivate, expired license?"
|
929 |
|
930 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:223
|
931 |
msgid "Unable to contact wpfront.com"
|
932 |
msgstr "Unable to contact wpfront.com"
|
933 |
|
934 |
+
#: ../classes/class-wpfront-user-role-editor-go-pro.php:232
|
935 |
msgid "Unable to parse response"
|
936 |
msgstr "Unable to parse response"
|
937 |
|
1069 |
"Allows you to set that role as the default role for new user registration."
|
1070 |
|
1071 |
#: ../classes/class-wpfront-user-role-editor-list.php:486
|
1072 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:584
|
1073 |
msgid "Edit Menu"
|
1074 |
msgstr "Edit Menu"
|
1075 |
|
1173 |
msgid "Cancel"
|
1174 |
msgstr "Cancel"
|
1175 |
|
1176 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:84
|
1177 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:119
|
1178 |
msgid "All Users"
|
1179 |
msgstr "All Users"
|
1180 |
|
1181 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:88
|
1182 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:120
|
1183 |
msgid "Logged in Users"
|
1184 |
msgstr "Logged in Users"
|
1185 |
|
1186 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:91
|
1187 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:121
|
1188 |
msgid "Guest Users"
|
1189 |
msgstr "Guest Users"
|
1190 |
|
1191 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:94
|
1192 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:122
|
1193 |
msgid "Users by Role"
|
1194 |
msgstr "Users by Role"
|
1195 |
|
1196 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:105
|
1197 |
#, php-format
|
1198 |
msgid "%s to limit based on roles."
|
1199 |
msgstr "%s to limit based on roles."
|
1200 |
|
1201 |
+
#: ../classes/class-wpfront-user-role-editor-nav-menu.php:117
|
1202 |
msgid "User Restrictions"
|
1203 |
msgstr "User Restrictions"
|
1204 |
|
1205 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:257
|
1206 |
msgid ""
|
1207 |
"These settings are applicable for the network admin dashboard. Also these "
|
1208 |
"settings will propagate to the individual sites unless its overridden within "
|
1212 |
"settings will propagate to the individual sites unless its overridden within "
|
1213 |
"that site’s settings."
|
1214 |
|
1215 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:264
|
1216 |
+
#: ../templates/options-template.php:61
|
1217 |
msgid "Enable Large Network Functionalities"
|
1218 |
msgstr "Enable Large Network Functionalities"
|
1219 |
|
1220 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:266
|
1221 |
msgid "This setting is only visible when you have a large network."
|
1222 |
msgstr "This setting is only visible when you have a large network."
|
1223 |
|
1224 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:268
|
1225 |
msgid "More details"
|
1226 |
msgstr "More details"
|
1227 |
|
1228 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:272
|
1229 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:304
|
1230 |
+
#: ../templates/options-template.php:70
|
1231 |
msgid "Display Deprecated Capabilities"
|
1232 |
msgstr "Display Deprecated Capabilities"
|
1233 |
|
1234 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:274
|
1235 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:306
|
1236 |
msgid ""
|
1237 |
"If enabled, deprecated capabilities will be displayed within the add/edit "
|
1238 |
"screens."
|
1240 |
"If enabled, deprecated capabilities will be displayed within the add/edit "
|
1241 |
"screens."
|
1242 |
|
1243 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:277
|
1244 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:309
|
1245 |
+
#: ../templates/options-template.php:78
|
1246 |
msgid "Remove Non-Standard Capabilities on Restore"
|
1247 |
msgstr "Remove Non-Standard Capabilities on Restore"
|
1248 |
|
1249 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:279
|
1250 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:311
|
1251 |
msgid ""
|
1252 |
"If enabled, while restoring WordPress built-in capabilities non-standard "
|
1253 |
"capabilities will be removed."
|
1255 |
"If enabled, while restoring WordPress built-in capabilities non-standard "
|
1256 |
"capabilities will be removed."
|
1257 |
|
1258 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:282
|
1259 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:314
|
1260 |
+
#: ../templates/options-template.php:86
|
1261 |
msgid "Override Edit Permissions"
|
1262 |
msgstr "Override Edit Permissions"
|
1263 |
|
1264 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:284
|
1265 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:316
|
1266 |
msgid "If enabled, ignores the check to the function get_editable_roles."
|
1267 |
msgstr "If enabled, ignores the check to the function get_editable_roles."
|
1268 |
|
1269 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:287
|
1270 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:319
|
1271 |
+
#: ../templates/options-template.php:94
|
1272 |
+
msgid "Disable Navigation Menu Permissions"
|
1273 |
+
msgstr "Disable Navigation Menu Permissions"
|
1274 |
+
|
1275 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:289
|
1276 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:321
|
1277 |
+
msgid "If enabled, disables navigation menu permissions functionality."
|
1278 |
+
msgstr "If enabled, disables navigation menu permissions functionality."
|
1279 |
+
|
1280 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:292
|
1281 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:324
|
1282 |
+
#: ../templates/options-template.php:131
|
1283 |
msgid "Remove Data on Uninstall"
|
1284 |
msgstr "Remove Data on Uninstall"
|
1285 |
|
1286 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:294
|
1287 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:326
|
1288 |
msgid ""
|
1289 |
"If enabled, removes all data related to this plugin from database (except "
|
1290 |
"roles data) including license information if any. This will not deactivate "
|
1294 |
"roles data) including license information if any. This will not deactivate "
|
1295 |
"the license automatically."
|
1296 |
|
1297 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:337
|
1298 |
msgid "Documentation on Multisite Settings"
|
1299 |
msgstr "Documentation on Multisite Settings"
|
1300 |
|
1301 |
+
#: ../classes/class-wpfront-user-role-editor-options.php:344
|
1302 |
msgid "Documentation on Settings"
|
1303 |
msgstr "Documentation on Settings"
|
1304 |
|
1306 |
msgid "Documentation on Restore"
|
1307 |
msgstr "Documentation on Restore"
|
1308 |
|
1309 |
+
#: ../classes/class-wpfront-user-role-editor.php:224
|
1310 |
+
#: ../templates/add-remove-capability.php:40
|
1311 |
+
msgid "Add/Remove Capability"
|
1312 |
+
msgstr "Add/Remove Capability"
|
1313 |
+
|
1314 |
+
#: ../classes/class-wpfront-user-role-editor.php:224
|
1315 |
+
msgid "Add/Remove Cap"
|
1316 |
+
msgstr "Add/Remove Cap"
|
1317 |
+
|
1318 |
+
#: ../classes/class-wpfront-user-role-editor.php:245
|
1319 |
msgid "Assign Roles | Migrate Users"
|
1320 |
msgstr "Assign Roles | Migrate Users"
|
1321 |
|
1322 |
+
#: ../classes/class-wpfront-user-role-editor.php:245
|
1323 |
msgid "Assign / Migrate"
|
1324 |
msgstr "Assign / Migrate"
|
1325 |
|
1326 |
+
#: ../classes/class-wpfront-user-role-editor.php:342
|
1327 |
msgid "Buy me a Beer"
|
1328 |
msgstr "Buy me a Beer"
|
1329 |
|
1432 |
msgid "Documentation on Import"
|
1433 |
msgstr "Documentation on Import"
|
1434 |
|
1435 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:164
|
1436 |
msgid "Menu changes saved."
|
1437 |
msgstr "Menu changes saved."
|
1438 |
|
1439 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:177
|
1440 |
msgid "Menu defaults restored."
|
1441 |
msgstr "Menu defaults restored."
|
1442 |
|
1443 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:192
|
1444 |
msgid "No editable roles found on this site."
|
1445 |
msgstr "No editable roles found on this site."
|
1446 |
|
1447 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:594
|
1448 |
msgid ""
|
1449 |
"This screen allows you to enable and disable admin menus for a particular "
|
1450 |
"role."
|
1452 |
"This screen allows you to enable and disable admin menus for a particular "
|
1453 |
"role."
|
1454 |
|
1455 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:597
|
1456 |
msgid "Deselect a menu from the grid to remove that menu."
|
1457 |
msgstr "Deselect a menu from the grid to remove that menu."
|
1458 |
|
1459 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:600
|
1460 |
msgid ""
|
1461 |
"Disabled menu items are already hidden, because the selected role doesn't "
|
1462 |
"have the capability to display that menu. Grid displays menus which the "
|
1466 |
"have the capability to display that menu. Grid displays menus which the "
|
1467 |
"current user has access to."
|
1468 |
|
1469 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:605
|
1470 |
msgid "Fields"
|
1471 |
msgstr "Fields"
|
1472 |
|
1473 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:607
|
1474 |
#: ../templates/personal-pro/menu-editor.php:39
|
1475 |
msgid "Override Role"
|
1476 |
msgstr "Override Role"
|
1477 |
|
1478 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:609
|
1479 |
msgid "The role you want to override."
|
1480 |
msgstr "The role you want to override."
|
1481 |
|
1482 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:612
|
1483 |
#: ../templates/personal-pro/menu-editor.php:56
|
1484 |
msgid "Override Type"
|
1485 |
msgstr "Override Type"
|
1486 |
|
1487 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:614
|
1488 |
msgid ""
|
1489 |
"Soft - Pages may be available through directly typing the URL. Hard - Even "
|
1490 |
"URLs will be blocked."
|
1492 |
"Soft - Pages may be available through directly typing the URL. Hard - Even "
|
1493 |
"URLs will be blocked."
|
1494 |
|
1495 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:617
|
1496 |
#: ../templates/personal-pro/menu-editor.php:67
|
1497 |
msgid "Hide New Menus"
|
1498 |
msgstr "Hide New Menus"
|
1499 |
|
1500 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:619
|
1501 |
msgid "Allow you to hide future menus."
|
1502 |
msgstr "Allow you to hide future menus."
|
1503 |
|
1504 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:622
|
1505 |
#: ../templates/personal-pro/menu-editor.php:75
|
1506 |
msgid "Disable For Secondary Role"
|
1507 |
msgstr "Disable For Secondary Role"
|
1508 |
|
1509 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:624
|
1510 |
msgid "Disables menu settings while the selected role is a secondary role."
|
1511 |
msgstr "Disables menu settings while the selected role is a secondary role."
|
1512 |
|
1513 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:629
|
1514 |
msgid "Restore Default"
|
1515 |
msgstr "Restore Default"
|
1516 |
|
1517 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:631
|
1518 |
msgid ""
|
1519 |
"Select \"Restore default\" from the \"Copy from\" drop down and click apply."
|
1520 |
msgstr ""
|
1521 |
"Select \"Restore default\" from the \"Copy from\" drop down and click apply."
|
1522 |
|
1523 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-menu-editor.php:640
|
1524 |
msgid "Documentation on Menu Editor"
|
1525 |
msgstr "Documentation on Menu Editor"
|
1526 |
|
1529 |
msgid "[Guest]"
|
1530 |
msgstr "[Guest]"
|
1531 |
|
1532 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:80
|
1533 |
#: ../templates/personal-pro/menu-editor.php:9
|
1534 |
msgid "Menu Editor"
|
1535 |
msgstr "Menu Editor"
|
1536 |
|
1537 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:81
|
1538 |
#: ../templates/personal-pro/export-roles.php:9
|
1539 |
msgid "Export Roles"
|
1540 |
msgstr "Export Roles"
|
1541 |
|
1542 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:81
|
1543 |
msgid "Export"
|
1544 |
msgstr "Export"
|
1545 |
|
1546 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:82
|
1547 |
#: ../templates/personal-pro/import-roles.php:9
|
1548 |
#: ../templates/personal-pro/import-roles.php:88
|
1549 |
msgid "Import Roles"
|
1550 |
msgstr "Import Roles"
|
1551 |
|
1552 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:82
|
1553 |
msgid "Import"
|
1554 |
msgstr "Import"
|
1555 |
|
1556 |
+
#: ../classes/personal-pro/class-wpfront-user-role-editor-personal-pro.php:102
|
1557 |
#, php-format
|
1558 |
msgid "%s license not activated."
|
1559 |
msgstr "%s license not activated."
|
1580 |
msgstr "Create a brand new role and add it to this site."
|
1581 |
|
1582 |
#: ../templates/add-edit-role.php:77 ../templates/add-edit-role.php:87
|
1583 |
+
#: ../templates/add-remove-capability.php:75
|
1584 |
msgid "required"
|
1585 |
msgstr "required"
|
1586 |
|
1597 |
msgid "Update Role"
|
1598 |
msgstr "Update Role"
|
1599 |
|
1600 |
+
#: ../templates/add-remove-capability.php:52
|
1601 |
+
msgid "Add/Remove a capability to/from roles within this site."
|
1602 |
+
msgstr "Add/Remove a capability to/from roles within this site."
|
1603 |
+
|
1604 |
+
#: ../templates/add-remove-capability.php:66
|
1605 |
+
#: ../templates/add-remove-capability.php:111
|
1606 |
+
#: ../templates/add-remove-capability.php:125
|
1607 |
+
msgid "Add Capability"
|
1608 |
+
msgstr "Add Capability"
|
1609 |
+
|
1610 |
+
#: ../templates/add-remove-capability.php:68
|
1611 |
+
#: ../templates/add-remove-capability.php:111
|
1612 |
+
#: ../templates/add-remove-capability.php:127
|
1613 |
+
msgid "Remove Capability"
|
1614 |
+
msgstr "Remove Capability"
|
1615 |
+
|
1616 |
#: ../templates/assign-roles.php:68
|
1617 |
msgid "User"
|
1618 |
msgstr "User"
|
1752 |
msgid "WPFront User Role Editor Settings"
|
1753 |
msgstr "WPFront User Role Editor Settings"
|
1754 |
|
1755 |
+
#: ../templates/options-template.php:47
|
1756 |
#, php-format
|
1757 |
msgid ""
|
1758 |
"Menu walker class is overriden by a theme/plugin. Current value = %s. "
|
1761 |
"Menu walker class is overriden by a theme/plugin. Current value = %s. "
|
1762 |
"Navigation menu permissions may still work. %s"
|
1763 |
|
1764 |
+
#: ../templates/options-template.php:47
|
1765 |
msgid "More information"
|
1766 |
msgstr "More information"
|
1767 |
|
1768 |
+
#: ../templates/options-template.php:103
|
1769 |
msgid "Customize Permissions (custom post types)"
|
1770 |
msgstr "Customize Permissions (custom post types)"
|
1771 |
|
1772 |
+
#: ../templates/options-template.php:109
|
1773 |
msgid "No customizable post types found."
|
1774 |
msgstr "No customizable post types found."
|
1775 |
|
1858 |
msgid "No Capability"
|
1859 |
msgstr "No Capability"
|
1860 |
|
|
|
|
|
|
|
|
|
1861 |
#: ../templates/personal-pro/menu-editor.php:144
|
1862 |
msgid "Menu Slug"
|
1863 |
msgstr "Menu Slug"
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: syammohanm
|
|
3 |
Donate link: https://wpfront.com/donate/
|
4 |
Tags: WordPress user role editor, user role editor, role editor, user role, role, WordPress user roles, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user, capability editor, capability manager, custom post types, custom post type permissions, custom post type capabilities, post type permissions, post type capabilities, menu editor, role menu, role menu editor, multisite roles, multisite role editor, multisite user roles, import roles, export roles
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 4.1
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -21,16 +21,19 @@ You can create, edit or delete user roles and manage role capabilities.
|
|
21 |
* Manage capabilities.
|
22 |
* Allows you to add role capabilities.
|
23 |
* Change default user role.
|
|
|
24 |
* Restore role.
|
25 |
* Assign multiple roles.
|
26 |
* Migrate users.
|
27 |
* Navigation menu permissions basic.
|
28 |
-
* Admin menu editor. [PRO]
|
29 |
-
*
|
30 |
-
*
|
31 |
-
*
|
32 |
-
*
|
33 |
-
*
|
|
|
|
|
34 |
|
35 |
Compare [User Role Editor Pro](https://wpfront.com/ppro)
|
36 |
|
@@ -71,9 +74,29 @@ Please visit [WPFront User Role Editor FAQ](https://wpfront.com/user-role-editor
|
|
71 |
11. Edit role
|
72 |
12. Restore role
|
73 |
13. Navigation menu permissions
|
|
|
|
|
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
= 2.5.1 =
|
78 |
* Navigation menu permission setting added. [Documentation](https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/).
|
79 |
* IMPORTANT: Disable navigation menu permission, if you already have a Nav Menu permission plugin and if it stops working.
|
@@ -132,6 +155,21 @@ Please visit [WPFront User Role Editor FAQ](https://wpfront.com/user-role-editor
|
|
132 |
|
133 |
== Upgrade Notice ==
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
= 2.5.1 =
|
136 |
* Navigation menu permission setting added.
|
137 |
|
3 |
Donate link: https://wpfront.com/donate/
|
4 |
Tags: WordPress user role editor, user role editor, role editor, user role, role, WordPress user roles, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user, capability editor, capability manager, custom post types, custom post type permissions, custom post type capabilities, post type permissions, post type capabilities, menu editor, role menu, role menu editor, multisite roles, multisite role editor, multisite user roles, import roles, export roles
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.1.1
|
7 |
+
Stable tag: 2.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
21 |
* Manage capabilities.
|
22 |
* Allows you to add role capabilities.
|
23 |
* Change default user role.
|
24 |
+
* Add or Remove capabilities.
|
25 |
* Restore role.
|
26 |
* Assign multiple roles.
|
27 |
* Migrate users.
|
28 |
* Navigation menu permissions basic.
|
29 |
+
* [Admin menu editor.](https://wpfront.com/user-role-editor-pro/menu-editor/) [PRO]
|
30 |
+
* [Media library permissions.](https://wpfront.com/user-role-editor-pro/media-attachment-file-permissions/) [PRO]
|
31 |
+
* [Navigation menu permissions advanced.](https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/) [PRO]
|
32 |
+
* [Post/Page extended permissions.](https://wpfront.com/user-role-editor-pro/posts-pages-extended-permissions/) [PRO]
|
33 |
+
* [Custom post type permissions.](https://wpfront.com/user-role-editor-pro/custom-post-type-permissions/) [PRO]
|
34 |
+
* [Content restriction shortcodes.](https://wpfront.com/user-role-editor-pro/content-restriction-shortcodes/) [PRO]
|
35 |
+
* [Import/Export.](https://wpfront.com/user-role-editor-pro/export-roles/) [PRO]
|
36 |
+
* [Multisite support.](https://wpfront.com/user-role-editor-pro/multisite-sync-roles/) [PRO]
|
37 |
|
38 |
Compare [User Role Editor Pro](https://wpfront.com/ppro)
|
39 |
|
74 |
11. Edit role
|
75 |
12. Restore role
|
76 |
13. Navigation menu permissions
|
77 |
+
14. Add or Remove capability
|
78 |
+
15. Media library permissions
|
79 |
+
16. Content restriction shortcodes
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 2.8 =
|
84 |
+
* Content restriction shortcodes added. [Documentation](https://wpfront.com/user-role-editor-pro/content-restriction-shortcodes/).
|
85 |
+
|
86 |
+
= 2.7 =
|
87 |
+
* Media library permissions added. [Documentation](https://wpfront.com/user-role-editor-pro/media-attachment-file-permissions/).
|
88 |
+
* Admin menu editor bug fix.
|
89 |
+
|
90 |
+
= 2.6.2 =
|
91 |
+
* bbPress forum extended permissions bug fix.
|
92 |
+
* Stability improvements.
|
93 |
+
|
94 |
+
= 2.6.1 =
|
95 |
+
* Role permission column width removed.
|
96 |
+
|
97 |
+
= 2.6 =
|
98 |
+
* Add or Remove Capability functionality added. [Documentation](https://wpfront.com/user-role-editor-pro/add-remove-capability/).
|
99 |
+
|
100 |
= 2.5.1 =
|
101 |
* Navigation menu permission setting added. [Documentation](https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/).
|
102 |
* IMPORTANT: Disable navigation menu permission, if you already have a Nav Menu permission plugin and if it stops working.
|
155 |
|
156 |
== Upgrade Notice ==
|
157 |
|
158 |
+
= 2.8 =
|
159 |
+
* Content restriction shortcodes.
|
160 |
+
|
161 |
+
= 2.7 =
|
162 |
+
* Media file permissions.
|
163 |
+
|
164 |
+
= 2.6.2 =
|
165 |
+
* Bug fixes and stability improvements.
|
166 |
+
|
167 |
+
= 2.6.1 =
|
168 |
+
* CSS fix.
|
169 |
+
|
170 |
+
= 2.6 =
|
171 |
+
* Add or Remove Capability functionality added.
|
172 |
+
|
173 |
= 2.5.1 =
|
174 |
* Navigation menu permission setting added.
|
175 |
|
templates/add-remove-capability.php
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
WPFront User Role Editor Plugin
|
4 |
+
Copyright (C) 2014, WPFront.com
|
5 |
+
Website: wpfront.com
|
6 |
+
Contact: syam@wpfront.com
|
7 |
+
|
8 |
+
WPFront User Role Editor Plugin is distributed under the GNU General Public License, Version 3,
|
9 |
+
June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
|
10 |
+
St, Fifth Floor, Boston, MA 02110, USA
|
11 |
+
|
12 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
13 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
14 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
15 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
16 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
17 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
18 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
19 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
20 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
21 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
22 |
+
*/
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Template for WPFront User Role Editor Add Remove Capability
|
26 |
+
*
|
27 |
+
* @author Syam Mohan <syam@wpfront.com>
|
28 |
+
* @copyright 2014 WPFront.com
|
29 |
+
*/
|
30 |
+
?>
|
31 |
+
|
32 |
+
<?php
|
33 |
+
if (!defined('ABSPATH')) {
|
34 |
+
exit();
|
35 |
+
}
|
36 |
+
?>
|
37 |
+
|
38 |
+
<div class="wrap add-remove-capability">
|
39 |
+
<h2>
|
40 |
+
<?php echo $this->__('Add/Remove Capability'); ?>
|
41 |
+
</h2>
|
42 |
+
<?php
|
43 |
+
if (!empty($this->message)) {
|
44 |
+
?>
|
45 |
+
<div class="updated">
|
46 |
+
<p><?php echo $this->message; ?></p>
|
47 |
+
</div>
|
48 |
+
<?php
|
49 |
+
}
|
50 |
+
?>
|
51 |
+
|
52 |
+
<?php printf('<p>%s</p>', $this->__('Add/Remove a capability to/from roles within this site.')); ?>
|
53 |
+
|
54 |
+
<form method="post" class="validate">
|
55 |
+
<?php $this->main->create_nonce(); ?>
|
56 |
+
<table class="form-table">
|
57 |
+
<tbody>
|
58 |
+
<tr>
|
59 |
+
<th scope="row">
|
60 |
+
<label for="action_type">
|
61 |
+
<?php echo $this->__('Action'); ?>
|
62 |
+
</label>
|
63 |
+
</th>
|
64 |
+
<td>
|
65 |
+
<fieldset>
|
66 |
+
<label><input name="action_type" type="radio" value="add" <?php echo $this->action === 'add' ? 'checked' : ''; ?> /><?php echo $this->__('Add Capability'); ?></label>
|
67 |
+
<br />
|
68 |
+
<label><input name="action_type" type="radio" value="remove" <?php echo $this->action === 'remove' ? 'checked' : ''; ?> /><?php echo $this->__('Remove Capability'); ?></label>
|
69 |
+
</fieldset>
|
70 |
+
</td>
|
71 |
+
</tr>
|
72 |
+
<tr class="form-required <?php echo $this->capability === NULL ? 'form-invalid' : ''; ?>">
|
73 |
+
<th scope="row">
|
74 |
+
<label for="capability">
|
75 |
+
<?php echo $this->__('Capability'); ?> <span class="description">(<?php echo $this->__('required'); ?>)</span>
|
76 |
+
</label>
|
77 |
+
</th>
|
78 |
+
<td>
|
79 |
+
<input class="regular-text" name="capability" type="text" id="capability" value="<?php echo $this->capability; ?>" aria-required="true" />
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
<tr>
|
83 |
+
<th scope="row">
|
84 |
+
<label for="roles_type">
|
85 |
+
<?php echo $this->__('Roles'); ?>
|
86 |
+
</label>
|
87 |
+
</th>
|
88 |
+
<td>
|
89 |
+
<fieldset>
|
90 |
+
<label><input name="roles_type" type="radio" value="all" <?php echo $this->roles_type === 'all' ? 'checked' : ''; ?> /><?php echo $this->__('All Roles'); ?></label>
|
91 |
+
<br />
|
92 |
+
<label><input name="roles_type" type="radio" value="selected" <?php echo $this->roles_type === 'selected' ? 'checked' : ''; ?> /><?php echo $this->__('Selected Roles'); ?></label>
|
93 |
+
<div class="<?php echo $this->roles_type === 'all' ? 'hidden' : ''; ?>">
|
94 |
+
<?php
|
95 |
+
$roles = $this->get_roles();
|
96 |
+
|
97 |
+
foreach ($roles as $key => $value) {
|
98 |
+
?>
|
99 |
+
<label><input type="checkbox" name="selected-roles[<?php echo $key; ?>]" <?php echo array_key_exists($key, $this->roles) ? 'checked' : ''; ?> /><?php echo $value; ?></label>
|
100 |
+
<br />
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
?>
|
104 |
+
</div>
|
105 |
+
</fieldset>
|
106 |
+
</td>
|
107 |
+
</tr>
|
108 |
+
</tbody>
|
109 |
+
</table>
|
110 |
+
<p class="submit">
|
111 |
+
<input type="submit" id="add-remove-capability" name="add-remove-capability" class="button button-primary" value="<?php echo $this->action === 'add' ? $this->__('Add Capability') : $this->__('Remove Capability'); ?>" />
|
112 |
+
</p>
|
113 |
+
</form>
|
114 |
+
<?php $this->footer(); ?>
|
115 |
+
</div>
|
116 |
+
|
117 |
+
<script type="text/javascript">
|
118 |
+
|
119 |
+
(function ($) {
|
120 |
+
|
121 |
+
var $container = $('div.wrap.add-remove-capability');
|
122 |
+
|
123 |
+
$container.find('input[name="action_type"]').change(function () {
|
124 |
+
if ($(this).val() == 'add') {
|
125 |
+
$("#add-remove-capability").val("<?php echo $this->__('Add Capability'); ?>");
|
126 |
+
} else {
|
127 |
+
$("#add-remove-capability").val("<?php echo $this->__('Remove Capability'); ?>");
|
128 |
+
}
|
129 |
+
});
|
130 |
+
|
131 |
+
$container.find('input[name="roles_type"]').change(function () {
|
132 |
+
if ($(this).val() == 'all') {
|
133 |
+
$(this).closest('fieldset').find('div').addClass('hidden');
|
134 |
+
} else {
|
135 |
+
$(this).closest('fieldset').find('div').removeClass('hidden');
|
136 |
+
}
|
137 |
+
});
|
138 |
+
|
139 |
+
})(jQuery);
|
140 |
+
|
141 |
+
</script>
|
templates/go-pro-table
CHANGED
@@ -1,170 +1,188 @@
|
|
1 |
-
<style type="text/css">
|
2 |
-
|
3 |
-
div.wrap.go-pro div.container:before,
|
4 |
-
div.wrap.go-pro div.container:after {
|
5 |
-
content:"";
|
6 |
-
display:table;
|
7 |
-
}
|
8 |
-
div.wrap.go-pro div.container:after {
|
9 |
-
clear:both;
|
10 |
-
}
|
11 |
-
div.wrap.go-pro div.container {
|
12 |
-
zoom:1; /* For IE 6/7 (trigger hasLayout) */
|
13 |
-
}
|
14 |
-
|
15 |
-
div.wrap.go-pro {
|
16 |
-
/* text-align: center;*/
|
17 |
-
/* background: #FFF;*/
|
18 |
-
/* padding-top: 1%;
|
19 |
-
padding-bottom: 1%;*/
|
20 |
-
}
|
21 |
-
|
22 |
-
div.wrap.go-pro div.container {
|
23 |
-
text-align: center;
|
24 |
-
display: inline-block;
|
25 |
-
}
|
26 |
-
|
27 |
-
div.wrap.go-pro div.container div.col {
|
28 |
-
float: left;
|
29 |
-
width: 200px;
|
30 |
-
background-color: #FFF;
|
31 |
-
/* box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, 0.75);*/
|
32 |
-
margin-right: 1px;
|
33 |
-
}
|
34 |
-
|
35 |
-
div.wrap.go-pro div.container div.cell {
|
36 |
-
height: 40px;
|
37 |
-
padding: 10px 10px 0px 10px;
|
38 |
-
text-align: center;
|
39 |
-
border: 1px solid #fafafa;
|
40 |
-
}
|
41 |
-
|
42 |
-
div.wrap.go-pro div.container div.header.cell {
|
43 |
-
background-color: #2ea2cc;
|
44 |
-
height: auto;
|
45 |
-
padding-top: 5px;
|
46 |
-
padding-bottom: 5px;
|
47 |
-
border-radius: 3px 3px 0px 0px;
|
48 |
-
border: 0px;
|
49 |
-
}
|
50 |
-
|
51 |
-
div.wrap.go-pro div.container div.header.cell h3 {
|
52 |
-
color: #FFF;
|
53 |
-
}
|
54 |
-
|
55 |
-
</style>
|
56 |
-
|
57 |
-
<div class="container">
|
58 |
-
<div class="col col1">
|
59 |
-
<div class="cell header">
|
60 |
-
<h3>Free Version</h3>
|
61 |
-
</div>
|
62 |
-
<div class="cell">
|
63 |
-
Add/Edit/Delete
|
64 |
-
</div>
|
65 |
-
<div class="cell">
|
66 |
-
Restore Roles
|
67 |
-
</div>
|
68 |
-
<div class="cell">
|
69 |
-
Assign/Migrate Users
|
70 |
-
</div>
|
71 |
-
<div class="cell">
|
72 |
-
Navigation Menu Basic
|
73 |
-
</div>
|
74 |
-
<div class="cell">
|
75 |
-
<i class="fa fa-times"></i>
|
76 |
-
</div>
|
77 |
-
<div class="cell">
|
78 |
-
<i class="fa fa-times"></i>
|
79 |
-
</div>
|
80 |
-
<div class="cell">
|
81 |
-
<i class="fa fa-times"></i>
|
82 |
-
</div>
|
83 |
-
<div class="cell">
|
84 |
-
<i class="fa fa-times"></i>
|
85 |
-
</div>
|
86 |
-
<div class="cell">
|
87 |
-
<i class="fa fa-times"></i>
|
88 |
-
</div>
|
89 |
-
<div class="cell">
|
90 |
-
|
91 |
-
</div>
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<div class="cell">
|
101 |
-
|
102 |
-
</div>
|
103 |
-
<div class="cell">
|
104 |
-
|
105 |
-
</div>
|
106 |
-
<div class="cell">
|
107 |
-
|
108 |
-
</div>
|
109 |
-
<div class="cell">
|
110 |
-
|
111 |
-
</div>
|
112 |
-
<div class="cell">
|
113 |
-
Menu
|
114 |
-
</div>
|
115 |
-
<div class="cell">
|
116 |
-
|
117 |
-
</div>
|
118 |
-
<div class="cell">
|
119 |
-
<
|
120 |
-
</div>
|
121 |
-
<div class="cell">
|
122 |
-
|
123 |
-
</div>
|
124 |
-
<div class="cell
|
125 |
-
<a
|
126 |
-
|
127 |
-
|
128 |
-
</a>
|
129 |
-
</div>
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
<div class="cell">
|
145 |
-
|
146 |
-
</div>
|
147 |
-
<div class="cell">
|
148 |
-
|
149 |
-
</div>
|
150 |
-
<div class="cell">
|
151 |
-
|
152 |
-
</div>
|
153 |
-
<div class="cell">
|
154 |
-
|
155 |
-
</div>
|
156 |
-
<div class="cell">
|
157 |
-
|
158 |
-
</div>
|
159 |
-
<div class="cell">
|
160 |
-
|
161 |
-
</div>
|
162 |
-
<div class="cell
|
163 |
-
<a
|
164 |
-
|
165 |
-
|
166 |
-
</a>
|
167 |
-
</div>
|
168 |
-
|
169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
</div>
|
1 |
+
<style type="text/css">
|
2 |
+
|
3 |
+
div.wrap.go-pro div.container:before,
|
4 |
+
div.wrap.go-pro div.container:after {
|
5 |
+
content:"";
|
6 |
+
display:table;
|
7 |
+
}
|
8 |
+
div.wrap.go-pro div.container:after {
|
9 |
+
clear:both;
|
10 |
+
}
|
11 |
+
div.wrap.go-pro div.container {
|
12 |
+
zoom:1; /* For IE 6/7 (trigger hasLayout) */
|
13 |
+
}
|
14 |
+
|
15 |
+
div.wrap.go-pro {
|
16 |
+
/* text-align: center;*/
|
17 |
+
/* background: #FFF;*/
|
18 |
+
/* padding-top: 1%;
|
19 |
+
padding-bottom: 1%;*/
|
20 |
+
}
|
21 |
+
|
22 |
+
div.wrap.go-pro div.container {
|
23 |
+
text-align: center;
|
24 |
+
display: inline-block;
|
25 |
+
}
|
26 |
+
|
27 |
+
div.wrap.go-pro div.container div.col {
|
28 |
+
float: left;
|
29 |
+
width: 200px;
|
30 |
+
background-color: #FFF;
|
31 |
+
/* box-shadow: 1px 1px 15px 0px rgba(50, 50, 50, 0.75);*/
|
32 |
+
margin-right: 1px;
|
33 |
+
}
|
34 |
+
|
35 |
+
div.wrap.go-pro div.container div.cell {
|
36 |
+
height: 40px;
|
37 |
+
padding: 10px 10px 0px 10px;
|
38 |
+
text-align: center;
|
39 |
+
border: 1px solid #fafafa;
|
40 |
+
}
|
41 |
+
|
42 |
+
div.wrap.go-pro div.container div.header.cell {
|
43 |
+
background-color: #2ea2cc;
|
44 |
+
height: auto;
|
45 |
+
padding-top: 5px;
|
46 |
+
padding-bottom: 5px;
|
47 |
+
border-radius: 3px 3px 0px 0px;
|
48 |
+
border: 0px;
|
49 |
+
}
|
50 |
+
|
51 |
+
div.wrap.go-pro div.container div.header.cell h3 {
|
52 |
+
color: #FFF;
|
53 |
+
}
|
54 |
+
|
55 |
+
</style>
|
56 |
+
|
57 |
+
<div class="container">
|
58 |
+
<div class="col col1">
|
59 |
+
<div class="cell header">
|
60 |
+
<h3>Free Version</h3>
|
61 |
+
</div>
|
62 |
+
<div class="cell">
|
63 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/add-role/">Add/Edit/Delete</a>
|
64 |
+
</div>
|
65 |
+
<div class="cell">
|
66 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/restore-role/">Restore Roles</a>
|
67 |
+
</div>
|
68 |
+
<div class="cell">
|
69 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/assign-migrate-users/">Assign/Migrate Users</a>
|
70 |
+
</div>
|
71 |
+
<div class="cell">
|
72 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/">Navigation Menu Basic</a>
|
73 |
+
</div>
|
74 |
+
<div class="cell">
|
75 |
+
<i class="fa fa-times"></i>
|
76 |
+
</div>
|
77 |
+
<div class="cell">
|
78 |
+
<i class="fa fa-times"></i>
|
79 |
+
</div>
|
80 |
+
<div class="cell">
|
81 |
+
<i class="fa fa-times"></i>
|
82 |
+
</div>
|
83 |
+
<div class="cell">
|
84 |
+
<i class="fa fa-times"></i>
|
85 |
+
</div>
|
86 |
+
<div class="cell">
|
87 |
+
<i class="fa fa-times"></i>
|
88 |
+
</div>
|
89 |
+
<div class="cell">
|
90 |
+
<i class="fa fa-times"></i>
|
91 |
+
</div>
|
92 |
+
<div class="cell">
|
93 |
+
<i class="fa fa-times"></i>
|
94 |
+
</div>
|
95 |
+
<div class="cell">
|
96 |
+
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
<div class="col col2">
|
100 |
+
<div class="cell header">
|
101 |
+
<h3>Personal Pro</h3>
|
102 |
+
</div>
|
103 |
+
<div class="cell">
|
104 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/add-role/">Add/Edit/Delete</a>
|
105 |
+
</div>
|
106 |
+
<div class="cell">
|
107 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/restore-role/">Restore Roles</a>
|
108 |
+
</div>
|
109 |
+
<div class="cell">
|
110 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/assign-migrate-users/">Assign/Migrate Users</a>
|
111 |
+
</div>
|
112 |
+
<div class="cell">
|
113 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/">Navigation Menu Advanced</a>
|
114 |
+
</div>
|
115 |
+
<div class="cell">
|
116 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/menu-editor/">Admin Menu Editor</a>
|
117 |
+
</div>
|
118 |
+
<div class="cell">
|
119 |
+
<a target="_blank" href="https://wpfront.com/media-attachment-file-permissions/">Media Library Permissions</a>
|
120 |
+
</div>
|
121 |
+
<div class="cell">
|
122 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/posts-pages-extended-permissions/">Posts/Pages Extended Permissions</a>
|
123 |
+
</div>
|
124 |
+
<div class="cell">
|
125 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/custom-post-type-permissions/">Custom Post Type Permissions</a>
|
126 |
+
</div>
|
127 |
+
<div class="cell">
|
128 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/export-roles/">Import/Export</a>
|
129 |
+
</div>
|
130 |
+
<div class="cell">
|
131 |
+
<i class="fa fa-times"></i>
|
132 |
+
</div>
|
133 |
+
<div class="cell">
|
134 |
+
<a target="_blank" href="https://wpfront.com/support/forum/user-role-editor-pro-2/">Private Forums & Updates for One Year</a>
|
135 |
+
</div>
|
136 |
+
<div class="cell footer">
|
137 |
+
<a class="button-primary" href="https://wpfront.com/ppro" target="_blank">
|
138 |
+
<i class="fa fa-shopping-cart"></i>
|
139 |
+
Buy Now
|
140 |
+
</a>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
<div class="col col3">
|
144 |
+
<div class="cell header">
|
145 |
+
<h3>Business Pro</h3>
|
146 |
+
</div>
|
147 |
+
<div class="cell">
|
148 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/add-role/">Add/Edit/Delete</a>
|
149 |
+
</div>
|
150 |
+
<div class="cell">
|
151 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/restore-role/">Restore Roles</a>
|
152 |
+
</div>
|
153 |
+
<div class="cell">
|
154 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/assign-migrate-users/">Assign/Migrate Users</a>
|
155 |
+
</div>
|
156 |
+
<div class="cell">
|
157 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/navigation-menu-permissions/">Navigation Menu Advanced</a>
|
158 |
+
</div>
|
159 |
+
<div class="cell">
|
160 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/menu-editor/">Admin Menu Editor</a>
|
161 |
+
</div>
|
162 |
+
<div class="cell">
|
163 |
+
<a target="_blank" href="https://wpfront.com/media-attachment-file-permissions/">Media Library Permissions</a>
|
164 |
+
</div>
|
165 |
+
<div class="cell">
|
166 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/posts-pages-extended-permissions/">Posts/Pages Extended Permissions</a>
|
167 |
+
</div>
|
168 |
+
<div class="cell">
|
169 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/custom-post-type-permissions/">Custom Post Type Permissions</a>
|
170 |
+
</div>
|
171 |
+
<div class="cell">
|
172 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/export-roles/">Import/Export</a>
|
173 |
+
</div>
|
174 |
+
<div class="cell">
|
175 |
+
<a target="_blank" href="https://wpfront.com/user-role-editor-pro/multisite-sync-roles/">Multisite Support</a>
|
176 |
+
</div>
|
177 |
+
<div class="cell">
|
178 |
+
<a target="_blank" href="https://wpfront.com/support/forum/user-role-editor-pro-2/">Private Forums & Updates for One Year</a>
|
179 |
+
</div>
|
180 |
+
<div class="cell footer">
|
181 |
+
<a class="button-primary" href="https://wpfront.com/bpro" target="_blank">
|
182 |
+
<i class="fa fa-shopping-cart"></i>
|
183 |
+
Buy Now
|
184 |
+
</a>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
<img src="https://wpfront.com/uret" style="width:1px;height:1px;" />
|
188 |
</div>
|
uninstall.php
CHANGED
@@ -1,44 +1,44 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
4 |
-
exit();
|
5 |
-
}
|
6 |
-
|
7 |
-
require_once dirname(__FILE__) . '/classes/class-wpfront-user-role-editor.php';
|
8 |
-
|
9 |
-
if (is_multisite() && class_exists('WPFront_User_Role_Editor_Business_Pro_Controller_Base')) {
|
10 |
-
$entity = new WPFront_User_Role_Editor_Business_Pro_Controller_Base(NULL);
|
11 |
-
$blogids = $entity->get_ms_blog_ids();
|
12 |
-
|
13 |
-
switch_to_blog(WPFront_User_Role_Editor_Options::get_ms_options_blog_id());
|
14 |
-
$entity = new WPFront_User_Role_Editor_Options(NULL);
|
15 |
-
if ($entity->remove_data_on_uninstall()) {
|
16 |
-
foreach ($blogids as $blogid) {
|
17 |
-
switch_to_blog($blogid);
|
18 |
-
|
19 |
-
WPFront_User_Role_Editor_Entity_Options::uninstall();
|
20 |
-
WPFront_User_Role_Editor_Entity_Menu_Editor::uninstall();
|
21 |
-
WPFront_User_Role_Editor_Entity_Post_Type_Permissions::uninstall();
|
22 |
-
WPFront_User_Role_Editor_Nav_Menu::uninstall();
|
23 |
-
}
|
24 |
-
}
|
25 |
-
|
26 |
-
restore_current_blog();
|
27 |
-
} else {
|
28 |
-
$entity = new WPFront_User_Role_Editor_Options(NULL);
|
29 |
-
if ($entity->remove_data_on_uninstall()) {
|
30 |
-
if (class_exists('WPFront_User_Role_Editor_Entity_Options'))
|
31 |
-
WPFront_User_Role_Editor_Entity_Options::uninstall();
|
32 |
-
|
33 |
-
if (class_exists('WPFront_User_Role_Editor_Entity_Menu_Editor'))
|
34 |
-
WPFront_User_Role_Editor_Entity_Menu_Editor::uninstall();
|
35 |
-
|
36 |
-
if (class_exists('WPFront_User_Role_Editor_Entity_Post_Type_Permissions'))
|
37 |
-
WPFront_User_Role_Editor_Entity_Post_Type_Permissions::uninstall();
|
38 |
-
|
39 |
-
if (class_exists('WPFront_User_Role_Editor_Nav_Menu'))
|
40 |
-
WPFront_User_Role_Editor_Nav_Menu::uninstall();
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if (!defined('WP_UNINSTALL_PLUGIN')) {
|
4 |
+
exit();
|
5 |
+
}
|
6 |
+
|
7 |
+
require_once dirname(__FILE__) . '/classes/class-wpfront-user-role-editor.php';
|
8 |
+
|
9 |
+
if (is_multisite() && class_exists('WPFront_User_Role_Editor_Business_Pro_Controller_Base')) {
|
10 |
+
$entity = new WPFront_User_Role_Editor_Business_Pro_Controller_Base(NULL);
|
11 |
+
$blogids = $entity->get_ms_blog_ids();
|
12 |
+
|
13 |
+
switch_to_blog(WPFront_User_Role_Editor_Options::get_ms_options_blog_id());
|
14 |
+
$entity = new WPFront_User_Role_Editor_Options(NULL);
|
15 |
+
if ($entity->remove_data_on_uninstall()) {
|
16 |
+
foreach ($blogids as $blogid) {
|
17 |
+
switch_to_blog($blogid);
|
18 |
+
|
19 |
+
WPFront_User_Role_Editor_Entity_Options::uninstall();
|
20 |
+
WPFront_User_Role_Editor_Entity_Menu_Editor::uninstall();
|
21 |
+
WPFront_User_Role_Editor_Entity_Post_Type_Permissions::uninstall();
|
22 |
+
WPFront_User_Role_Editor_Nav_Menu::uninstall();
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
restore_current_blog();
|
27 |
+
} else {
|
28 |
+
$entity = new WPFront_User_Role_Editor_Options(NULL);
|
29 |
+
if ($entity->remove_data_on_uninstall()) {
|
30 |
+
if (class_exists('WPFront_User_Role_Editor_Entity_Options'))
|
31 |
+
WPFront_User_Role_Editor_Entity_Options::uninstall();
|
32 |
+
|
33 |
+
if (class_exists('WPFront_User_Role_Editor_Entity_Menu_Editor'))
|
34 |
+
WPFront_User_Role_Editor_Entity_Menu_Editor::uninstall();
|
35 |
+
|
36 |
+
if (class_exists('WPFront_User_Role_Editor_Entity_Post_Type_Permissions'))
|
37 |
+
WPFront_User_Role_Editor_Entity_Post_Type_Permissions::uninstall();
|
38 |
+
|
39 |
+
if (class_exists('WPFront_User_Role_Editor_Nav_Menu'))
|
40 |
+
WPFront_User_Role_Editor_Nav_Menu::uninstall();
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
|
wpfront-user-role-editor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: WPFront User Role Editor
|
5 |
* Plugin URI: http://wpfront.com/user-role-editor-pro/
|
6 |
* Description: Allows you to manage user roles.
|
7 |
-
* Version: 2.
|
8 |
* Author: Syam Mohan
|
9 |
* Author URI: http://wpfront.com
|
10 |
* License: GPL v3
|
4 |
* Plugin Name: WPFront User Role Editor
|
5 |
* Plugin URI: http://wpfront.com/user-role-editor-pro/
|
6 |
* Description: Allows you to manage user roles.
|
7 |
+
* Version: 2.7
|
8 |
* Author: Syam Mohan
|
9 |
* Author URI: http://wpfront.com
|
10 |
* License: GPL v3
|