WPFront User Role Editor - Version 2.14.4

Version Description

  • Navigation menu UI compatibility fix for WP5.4.
Download this release

Release Info

Developer syammohanm
Plugin Icon 128x128 WPFront User Role Editor
Version 2.14.4
Comparing to
See all releases

Code changes from version 2.14.3 to 2.14.4

classes/class-wpfront-user-role-editor-nav-menu-walker.php CHANGED
@@ -52,19 +52,26 @@ 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
- //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">';
52
  * @param int $id Not used.
53
  */
54
  public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
55
+ global $wp_version;
 
 
 
 
56
 
57
+ $item_id = esc_attr( $item->ID );
58
  $parent_output = '';
 
59
 
60
+ if(version_compare($wp_version, '5.4', '<')) {
61
+ //controls
62
+ ob_start();
63
+ do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
64
+ $custom = ob_get_clean();
65
+
66
+ parent::start_el($parent_output, $item, $depth, $args, $id);
67
+
68
+ $divider = '<fieldset class="field-move';
69
+ $parts = explode($divider, $parent_output);
70
+ $merge = implode($custom . $divider, $parts);
71
+ $parent_output = $merge;
72
+ } else {
73
+ parent::start_el($parent_output, $item, $depth, $args, $id);
74
+ }
75
 
76
  //title
77
  $divider = '<span class="item-controls">';
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.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';
38
  class WPFront_User_Role_Editor extends WPFront_Base_URE {
39
 
40
  //Constants
41
+ const VERSION = '2.14.4';
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';
readme.txt CHANGED
@@ -2,10 +2,10 @@
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,6 +90,9 @@ This plugin doesn’t collect any personal information. For more information ple
90
 
91
  == Changelog ==
92
 
 
 
 
93
  = 2.14.3 =
94
  * Navigation menu UI bug fix.
95
 
@@ -249,6 +252,9 @@ This plugin doesn’t collect any personal information. For more information ple
249
 
250
  == Upgrade Notice ==
251
 
 
 
 
252
  = 2.14.3 =
253
  * Fixes UI issues.
254
 
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: 5.0
6
+ Tested up to: 5.8
7
  Requires PHP: 5.6.20
8
+ Stable tag: 2.14.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
90
 
91
  == Changelog ==
92
 
93
+ = 2.14.4 =
94
+ * Navigation menu UI compatibility fix for WP5.4.
95
+
96
  = 2.14.3 =
97
  * Navigation menu UI bug fix.
98
 
252
 
253
  == Upgrade Notice ==
254
 
255
+ = 2.14.4 =
256
+ * Bug fix.
257
+
258
  = 2.14.3 =
259
  * Fixes UI issues.
260
 
wpfront-user-role-editor.php CHANGED
@@ -4,7 +4,9 @@
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
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.4
8
+ * Requires at least: 5.0
9
+ * Requires PHP: 5.6.20
10
  * Author: Syam Mohan
11
  * Author URI: http://wpfront.com
12
  * License: GPL v3