Version Description
- Navigation menu UI bug fix.
Download this release
Release Info
Developer | syammohanm |
Plugin | WPFront User Role Editor |
Version | 2.14.3 |
Comparing to | |
See all releases |
Code changes from version 2.14.2 to 2.14.3
classes/class-wpfront-user-role-editor-nav-menu-walker.php
CHANGED
@@ -52,187 +52,34 @@ if (!class_exists('WPFront_User_Role_Editor_Nav_Menu_Walker')) {
|
|
52 |
* @param int $id Not used.
|
53 |
*/
|
54 |
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
);
|
84 |
-
|
85 |
-
$title = $item->title;
|
86 |
-
|
87 |
-
if ( ! empty( $item->_invalid ) ) {
|
88 |
-
$classes[] = 'menu-item-invalid';
|
89 |
-
/* translators: %s: title of menu item which is invalid */
|
90 |
-
$title = sprintf( __( '%s (Invalid)' ), $item->title );
|
91 |
-
} elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {
|
92 |
-
$classes[] = 'pending';
|
93 |
-
/* translators: %s: title of menu item in draft status */
|
94 |
-
$title = sprintf( __('%s (Pending)'), $item->title );
|
95 |
-
}
|
96 |
-
|
97 |
-
$title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label;
|
98 |
-
|
99 |
-
$submenu_text = '';
|
100 |
-
if ( 0 == $depth )
|
101 |
-
$submenu_text = 'style="display: none;"';
|
102 |
-
|
103 |
-
?>
|
104 |
-
<li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>">
|
105 |
-
<div class="menu-item-bar">
|
106 |
-
<div class="menu-item-handle">
|
107 |
-
<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span><?php do_action( 'wp_nav_menu_item_title_user_restriction_type', $item_id, $item, $depth, $args ); ?></span>
|
108 |
-
<span class="item-controls">
|
109 |
-
<span class="item-type"><?php echo esc_html( $item->type_label ); ?></span>
|
110 |
-
<span class="item-order hide-if-js">
|
111 |
-
<a href="<?php
|
112 |
-
echo wp_nonce_url(
|
113 |
-
add_query_arg(
|
114 |
-
array(
|
115 |
-
'action' => 'move-up-menu-item',
|
116 |
-
'menu-item' => $item_id,
|
117 |
-
),
|
118 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
119 |
-
),
|
120 |
-
'move-menu_item'
|
121 |
-
);
|
122 |
-
?>" class="item-move-up"><abbr title="<?php esc_attr_e('Move up'); ?>">↑</abbr></a>
|
123 |
-
|
|
124 |
-
<a href="<?php
|
125 |
-
echo wp_nonce_url(
|
126 |
-
add_query_arg(
|
127 |
-
array(
|
128 |
-
'action' => 'move-down-menu-item',
|
129 |
-
'menu-item' => $item_id,
|
130 |
-
),
|
131 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
132 |
-
),
|
133 |
-
'move-menu_item'
|
134 |
-
);
|
135 |
-
?>" class="item-move-down"><abbr title="<?php esc_attr_e('Move down'); ?>">↓</abbr></a>
|
136 |
-
</span>
|
137 |
-
<a class="item-edit" id="edit-<?php echo $item_id; ?>" title="<?php esc_attr_e('Edit Menu Item'); ?>" href="<?php
|
138 |
-
echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) );
|
139 |
-
?>"><?php _e( 'Edit Menu Item' ); ?></a>
|
140 |
-
</span>
|
141 |
-
</div>
|
142 |
-
</div>
|
143 |
-
|
144 |
-
<div class="menu-item-settings wp-clearfix" id="menu-item-settings-<?php echo $item_id; ?>">
|
145 |
-
<?php if ( 'custom' == $item->type ) : ?>
|
146 |
-
<p class="field-url description description-wide">
|
147 |
-
<label for="edit-menu-item-url-<?php echo $item_id; ?>">
|
148 |
-
<?php _e( 'URL' ); ?><br />
|
149 |
-
<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
|
150 |
-
</label>
|
151 |
-
</p>
|
152 |
-
<?php endif; ?>
|
153 |
-
<p class="description description-wide">
|
154 |
-
<label for="edit-menu-item-title-<?php echo $item_id; ?>">
|
155 |
-
<?php _e( 'Navigation Label' ); ?><br />
|
156 |
-
<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
|
157 |
-
</label>
|
158 |
-
</p>
|
159 |
-
<p class="field-title-attribute description description-wide">
|
160 |
-
<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
|
161 |
-
<?php _e( 'Title Attribute' ); ?><br />
|
162 |
-
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
163 |
-
</label>
|
164 |
-
</p>
|
165 |
-
<p class="field-link-target description">
|
166 |
-
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
|
167 |
-
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
|
168 |
-
<?php _e( 'Open link in a new window/tab' ); ?>
|
169 |
-
</label>
|
170 |
-
</p>
|
171 |
-
<p class="field-css-classes description description-thin">
|
172 |
-
<label for="edit-menu-item-classes-<?php echo $item_id; ?>">
|
173 |
-
<?php _e( 'CSS Classes (optional)' ); ?><br />
|
174 |
-
<input type="text" id="edit-menu-item-classes-<?php echo $item_id; ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo $item_id; ?>]" value="<?php echo esc_attr( implode(' ', $item->classes ) ); ?>" />
|
175 |
-
</label>
|
176 |
-
</p>
|
177 |
-
<p class="field-xfn description description-thin">
|
178 |
-
<label for="edit-menu-item-xfn-<?php echo $item_id; ?>">
|
179 |
-
<?php _e( 'Link Relationship (XFN)' ); ?><br />
|
180 |
-
<input type="text" id="edit-menu-item-xfn-<?php echo $item_id; ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->xfn ); ?>" />
|
181 |
-
</label>
|
182 |
-
</p>
|
183 |
-
<p class="field-description description description-wide">
|
184 |
-
<label for="edit-menu-item-description-<?php echo $item_id; ?>">
|
185 |
-
<?php _e( 'Description' ); ?><br />
|
186 |
-
<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
|
187 |
-
<span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span>
|
188 |
-
</label>
|
189 |
-
</p>
|
190 |
-
|
191 |
-
<?php
|
192 |
-
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
|
193 |
-
?>
|
194 |
-
|
195 |
-
<p class="field-move hide-if-no-js description description-wide">
|
196 |
-
<label>
|
197 |
-
<span><?php _e( 'Move' ); ?></span>
|
198 |
-
<a href="#" class="menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></a>
|
199 |
-
<a href="#" class="menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></a>
|
200 |
-
<a href="#" class="menus-move menus-move-left" data-dir="left"></a>
|
201 |
-
<a href="#" class="menus-move menus-move-right" data-dir="right"></a>
|
202 |
-
<a href="#" class="menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></a>
|
203 |
-
</label>
|
204 |
-
</p>
|
205 |
-
|
206 |
-
<div class="menu-item-actions description-wide submitbox">
|
207 |
-
<?php if ( 'custom' != $item->type && $original_title !== false ) : ?>
|
208 |
-
<p class="link-to-original">
|
209 |
-
<?php printf( __('Original: %s'), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?>
|
210 |
-
</p>
|
211 |
-
<?php endif; ?>
|
212 |
-
<a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="<?php
|
213 |
-
echo wp_nonce_url(
|
214 |
-
add_query_arg(
|
215 |
-
array(
|
216 |
-
'action' => 'delete-menu-item',
|
217 |
-
'menu-item' => $item_id,
|
218 |
-
),
|
219 |
-
admin_url( 'nav-menus.php' )
|
220 |
-
),
|
221 |
-
'delete-menu_item_' . $item_id
|
222 |
-
); ?>"><?php _e( 'Remove' ); ?></a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo $item_id; ?>" href="<?php echo esc_url( add_query_arg( array( 'edit-menu-item' => $item_id, 'cancel' => time() ), admin_url( 'nav-menus.php' ) ) );
|
223 |
-
?>#menu-item-settings-<?php echo $item_id; ?>"><?php _e('Cancel'); ?></a>
|
224 |
-
</div>
|
225 |
-
|
226 |
-
<input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo $item_id; ?>]" value="<?php echo $item_id; ?>" />
|
227 |
-
<input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object_id ); ?>" />
|
228 |
-
<input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object ); ?>" />
|
229 |
-
<input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" />
|
230 |
-
<input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" />
|
231 |
-
<input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->type ); ?>" />
|
232 |
-
</div><!-- .menu-item-settings-->
|
233 |
-
<ul class="menu-item-transport"></ul>
|
234 |
-
<?php
|
235 |
-
$output .= ob_get_clean();
|
236 |
}
|
237 |
|
238 |
} // Walker_Nav_Menu_Edit
|
52 |
* @param int $id Not used.
|
53 |
*/
|
54 |
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
55 |
+
//controls
|
56 |
+
$item_id = esc_attr( $item->ID );
|
57 |
+
ob_start();
|
58 |
+
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
|
59 |
+
$custom = ob_get_clean();
|
60 |
+
|
61 |
+
$parent_output = '';
|
62 |
+
parent::start_el($parent_output, $item, $depth, $args, $id);
|
63 |
+
|
64 |
+
$divider = '<fieldset class="field-move';
|
65 |
+
$parts = explode($divider, $parent_output);
|
66 |
+
$merge = implode($custom . $divider, $parts);
|
67 |
+
$parent_output = $merge;
|
68 |
+
|
69 |
+
//title
|
70 |
+
$divider = '<span class="item-controls">';
|
71 |
+
$parts = explode($divider, $parent_output);
|
72 |
+
//remove last </span>
|
73 |
+
$index = strrpos($parts[0], '</span>');
|
74 |
+
$parts[0] = substr($parts[0], 0, $index);
|
75 |
+
|
76 |
+
ob_start();
|
77 |
+
do_action( 'wp_nav_menu_item_title_user_restriction_type', $item_id, $item, $depth, $args );
|
78 |
+
$title = ob_get_clean();
|
79 |
+
|
80 |
+
$merge = implode($title . '</span>' . $divider, $parts);
|
81 |
+
|
82 |
+
$output .= $merge;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
} // Walker_Nav_Menu_Edit
|
classes/class-wpfront-user-role-editor-shortcodes.php
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
if (!defined('ABSPATH')) {
|
25 |
+
exit();
|
26 |
+
}
|
27 |
+
|
28 |
+
if (!class_exists('WPFront_User_Role_Editor_Shortcodes')) {
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Main class of WPFront User Role Editor Shortcodes
|
32 |
+
*
|
33 |
+
* @author Syam Mohan <syam@wpfront.com>
|
34 |
+
* @copyright 2014 WPFront.com
|
35 |
+
*/
|
36 |
+
class WPFront_User_Role_Editor_Shortcodes extends WPFront_User_Role_Editor_Controller_Base {
|
37 |
+
|
38 |
+
const CURRENT_USER_ROLES = 'wpfront_ure_current_user_roles';
|
39 |
+
|
40 |
+
public function __construct($main) {
|
41 |
+
parent::__construct($main);
|
42 |
+
|
43 |
+
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
44 |
+
}
|
45 |
+
|
46 |
+
public function plugins_loaded() {
|
47 |
+
add_shortcode(self::CURRENT_USER_ROLES, array($this, 'process_current_user_roles'));
|
48 |
+
}
|
49 |
+
|
50 |
+
public function process_current_user_roles($atts, $content, $shortcode) {
|
51 |
+
if(!is_user_logged_in()) {
|
52 |
+
return '';
|
53 |
+
}
|
54 |
+
|
55 |
+
$atts = shortcode_atts(array('label' => $this->__('Current Roles: ')), $atts, $shortcode);
|
56 |
+
$label = $atts['label'];
|
57 |
+
|
58 |
+
$user = wp_get_current_user();
|
59 |
+
if(empty($user->roles)) {
|
60 |
+
$roles_text = $this->__('None');
|
61 |
+
} else {
|
62 |
+
$roles = $user->roles;
|
63 |
+
global $wp_roles;
|
64 |
+
$role_names = $wp_roles->role_names;
|
65 |
+
|
66 |
+
$names = array();
|
67 |
+
foreach ($roles as $r) {
|
68 |
+
if(!empty($role_names[$r])) {
|
69 |
+
$names[] = $role_names[$r];
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
$roles_text = implode(', ', $names);
|
74 |
+
}
|
75 |
+
|
76 |
+
return $label . $roles_text;
|
77 |
+
}
|
78 |
+
|
79 |
+
}
|
80 |
+
|
81 |
+
}
|
classes/class-wpfront-user-role-editor.php
CHANGED
@@ -38,7 +38,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
38 |
class WPFront_User_Role_Editor extends WPFront_Base_URE {
|
39 |
|
40 |
//Constants
|
41 |
-
const VERSION = '2.14.
|
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';
|
@@ -174,6 +174,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
174 |
protected $objAttachmentPermissions = NULL;
|
175 |
protected $objUserPermissions = NULL;
|
176 |
protected $objWidgetPermissions = NULL;
|
|
|
177 |
|
178 |
function __construct() {
|
179 |
parent::__construct(__FILE__, self::PLUGIN_SLUG);
|
@@ -199,6 +200,8 @@ if (!class_exists('WPFront_User_Role_Editor')) {
|
|
199 |
$this->objUserPermissions = new WPFront_User_Role_Editor_User_Permissions($this);
|
200 |
if ($this->objWidgetPermissions === NULL)
|
201 |
$this->objWidgetPermissions = new WPFront_User_Role_Editor_Widget_Permissions($this);
|
|
|
|
|
202 |
}
|
203 |
}
|
204 |
|
@@ -723,6 +726,7 @@ require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-login-r
|
|
723 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-attachment-permissions.php");
|
724 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-user-permissions.php");
|
725 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-widget-permissions.php");
|
|
|
726 |
require_once(plugin_dir_path(__FILE__) . "integration/plugins/class-wpfront-user-role-editor-plugin-integration.php");
|
727 |
|
728 |
|
38 |
class WPFront_User_Role_Editor extends WPFront_Base_URE {
|
39 |
|
40 |
//Constants
|
41 |
+
const VERSION = '2.14.3';
|
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';
|
174 |
protected $objAttachmentPermissions = NULL;
|
175 |
protected $objUserPermissions = NULL;
|
176 |
protected $objWidgetPermissions = NULL;
|
177 |
+
protected $objShortcodes = NULL;
|
178 |
|
179 |
function __construct() {
|
180 |
parent::__construct(__FILE__, self::PLUGIN_SLUG);
|
200 |
$this->objUserPermissions = new WPFront_User_Role_Editor_User_Permissions($this);
|
201 |
if ($this->objWidgetPermissions === NULL)
|
202 |
$this->objWidgetPermissions = new WPFront_User_Role_Editor_Widget_Permissions($this);
|
203 |
+
if ($this->objShortcodes === NULL)
|
204 |
+
$this->objShortcodes = new WPFront_User_Role_Editor_Shortcodes($this);
|
205 |
}
|
206 |
}
|
207 |
|
726 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-attachment-permissions.php");
|
727 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-user-permissions.php");
|
728 |
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-widget-permissions.php");
|
729 |
+
require_once(plugin_dir_path(__FILE__) . "class-wpfront-user-role-editor-shortcodes.php");
|
730 |
require_once(plugin_dir_path(__FILE__) . "integration/plugins/class-wpfront-user-role-editor-plugin-integration.php");
|
731 |
|
732 |
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== WPFront User Role Editor ===
|
2 |
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,
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 5.
|
7 |
-
Requires PHP: 5.
|
8 |
-
Stable tag: 2.14.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -90,6 +90,9 @@ This plugin doesn’t collect any personal information. For more information ple
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
93 |
= 2.14.2 =
|
94 |
* [Important]Security vulnerability fix.
|
95 |
|
@@ -246,6 +249,9 @@ This plugin doesn’t collect any personal information. For more information ple
|
|
246 |
|
247 |
== Upgrade Notice ==
|
248 |
|
|
|
|
|
|
|
249 |
= 2.14.2 =
|
250 |
* This update is highly recommended because of a security vulnerability fix, mainly affecting multisite installations, reported by WordPress.
|
251 |
|
1 |
=== WPFront User Role Editor ===
|
2 |
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, capability, 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: 4.9
|
6 |
+
Tested up to: 5.4
|
7 |
+
Requires PHP: 5.6.20
|
8 |
+
Stable tag: 2.14.3
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
90 |
|
91 |
== Changelog ==
|
92 |
|
93 |
+
= 2.14.3 =
|
94 |
+
* Navigation menu UI bug fix.
|
95 |
+
|
96 |
= 2.14.2 =
|
97 |
* [Important]Security vulnerability fix.
|
98 |
|
249 |
|
250 |
== Upgrade Notice ==
|
251 |
|
252 |
+
= 2.14.3 =
|
253 |
+
* Fixes UI issues.
|
254 |
+
|
255 |
= 2.14.2 =
|
256 |
* This update is highly recommended because of a security vulnerability fix, mainly affecting multisite installations, reported by WordPress.
|
257 |
|
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.14.
|
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.14.3
|
8 |
* Author: Syam Mohan
|
9 |
* Author URI: http://wpfront.com
|
10 |
* License: GPL v3
|