WP Admin UI Customize - Version 1.5.2.6

Version Description

  • Changed: Change the priority to manage meta boxes.
  • Changed: Show the Network menus on Admin Bar Settings.
  • Changed: Change the default capability on settings.
  • Fixed: Multiple other plugins settings on the Admin Bar Menu.
  • Fixed: Orders post type to show error on Woocommerce.
  • Fixed: Select all check to settings on manage meta boxes.
  • Fixed: Text to Create menu on the Appearance Menus.
  • Fixed: Change the capability to load to the meta boxe.
Download this release

Release Info

Developer gqevu6bsiz
Plugin Icon wp plugin WP Admin UI Customize
Version 1.5.2.6
Comparing to
See all releases

Code changes from version 1.5.2.5 to 1.5.2.6

inc/list_variables.php CHANGED
@@ -32,7 +32,7 @@ if( is_multisite() ) {
32
  <th><strong>[site_url]</strong></th>
33
  <td>
34
  <?php $protocol = is_ssl() ? 'https://' : 'http://'; ?>
35
- <code><?php echo $protocol . esc_attr( $current_site->domain );?></code>
36
  </td>
37
  </tr>
38
  <?php endif; ?>
32
  <th><strong>[site_url]</strong></th>
33
  <td>
34
  <?php $protocol = is_ssl() ? 'https://' : 'http://'; ?>
35
+ <code><?php echo $protocol . esc_attr( $current_site->domain . $current_site->path );?></code>
36
  </td>
37
  </tr>
38
  <?php endif; ?>
inc/setting_manage_metabox.php CHANGED
@@ -3,6 +3,7 @@
3
  $Data = $this->get_data( 'manage_metabox' );
4
  $Metaboxes = $this->get_data( "regist_metabox" );
5
  $CustomPosts = $this->get_custom_posts();
 
6
 
7
  // include js css
8
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
@@ -68,8 +69,10 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
68
  <tr>
69
  <th>&nbsp;</th>
70
  <td style="width: 15%;">
71
- <input type="checkbox" name="" class="check_all" />
72
- <strong><?php _e( 'Select All' ); ?></strong>
 
 
73
  </td>
74
  <td style="width: 15%;">
75
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
@@ -165,13 +168,15 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
165
  <tr>
166
  <th>&nbsp;</th>
167
  <td style="width: 15%;">
168
- <input type="checkbox" name="" class="check_all" />
169
- <strong><?php _e( 'Select All' ); ?></strong>
 
 
170
  </td>
171
  <td style="width: 15%;">
172
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
173
  </td>
174
- <td><strong><?php _e( 'Change metabox title to' ); ?></strong></td>
175
  </tr>
176
  </thead>
177
  <tbody>
@@ -240,8 +245,16 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
240
  <div class="inside">
241
 
242
  <?php if( empty( $Metaboxes["metaboxes"][$post_name] ) ) : ?>
243
-
244
- <?php $post = get_posts( array( 'post_type' => $post_name , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ) ); ?>
 
 
 
 
 
 
 
 
245
 
246
  <?php if( !empty( $post ) ) : ?>
247
 
@@ -270,13 +283,15 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
270
  <tr>
271
  <th>&nbsp;</th>
272
  <td style="width: 15%;">
273
- <input type="checkbox" name="" class="check_all" />
274
- <strong><?php _e( 'Select All' ); ?></strong>
 
 
275
  </td>
276
  <td style="width: 15%;">
277
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
278
  </td>
279
- <td><strong><?php _e( 'Change metabox title to' ); ?></strong></td>
280
  </tr>
281
  </thead>
282
  <tbody>
@@ -354,11 +369,19 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
354
  jQuery(document).ready(function($) {
355
 
356
  var $Form = $("#wauc_setting_manage_metabox");
357
- $("input.check_all", $Form).click(function() {
358
  var Checked = $(this).prop("checked");
359
- $Table = $(this).parent().parent().parent().parent();
360
- $Table.children("tbody").children("tr").each(function() {
361
- $(this).find("input[type=checkbox]").prop("checked" , Checked);
 
 
 
 
 
 
 
 
362
  });
363
  });
364
 
3
  $Data = $this->get_data( 'manage_metabox' );
4
  $Metaboxes = $this->get_data( "regist_metabox" );
5
  $CustomPosts = $this->get_custom_posts();
6
+ $activated_plugin = $this->ActivatedPlugin;
7
 
8
  // include js css
9
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
69
  <tr>
70
  <th>&nbsp;</th>
71
  <td style="width: 15%;">
72
+ <label>
73
+ <input type="checkbox" name="" class="check_all" />
74
+ <strong><?php _e( 'Select All' ); ?></strong>
75
+ </label>
76
  </td>
77
  <td style="width: 15%;">
78
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
168
  <tr>
169
  <th>&nbsp;</th>
170
  <td style="width: 15%;">
171
+ <label>
172
+ <input type="checkbox" name="" class="check_all" />
173
+ <strong><?php _e( 'Select All' ); ?></strong>
174
+ </label>
175
  </td>
176
  <td style="width: 15%;">
177
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
178
  </td>
179
+ <td><strong><?php _e( 'Change metabox title to' , $this->ltd ); ?></strong></td>
180
  </tr>
181
  </thead>
182
  <tbody>
245
  <div class="inside">
246
 
247
  <?php if( empty( $Metaboxes["metaboxes"][$post_name] ) ) : ?>
248
+
249
+ <?php $args = array( 'post_type' => $post_name , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ); ?>
250
+
251
+ <?php if( !empty( $activated_plugin['woocommerce'] ) && $post_name == 'shop_order' ) : ?>
252
+
253
+ <?php $args['post_status'] = array( 'wc-processing', 'wc-completed' ); ?>
254
+
255
+ <?php endif; ?>
256
+
257
+ <?php $post = get_posts( $args ); ?>
258
 
259
  <?php if( !empty( $post ) ) : ?>
260
 
283
  <tr>
284
  <th>&nbsp;</th>
285
  <td style="width: 15%;">
286
+ <label>
287
+ <input type="checkbox" name="" class="check_all" />
288
+ <strong><?php _e( 'Select All' ); ?></strong>
289
+ </label>
290
  </td>
291
  <td style="width: 15%;">
292
  <strong><?php _e( 'Default Open' , $this->ltd ); ?></strong>
293
  </td>
294
+ <td><strong><?php _e( 'Change metabox title to' , $this->ltd ); ?></strong></td>
295
  </tr>
296
  </thead>
297
  <tbody>
369
  jQuery(document).ready(function($) {
370
 
371
  var $Form = $("#wauc_setting_manage_metabox");
372
+ $(".check_all", $Form).click(function() {
373
  var Checked = $(this).prop("checked");
374
+ $Table = $(this).parent().parent().parent().parent().parent();
375
+ $Table.children("tbody").children("tr").each(function( index, el ) {
376
+ var $Tr = $(el);
377
+ $Tr.find("input[type=checkbox]").prop("checked" , Checked);
378
+ if( Checked ) {
379
+ $Tr.find('.select_toggle').prop('disabled', true);
380
+ $Tr.find('.metabox_rename').prop('disabled', true).addClass('disabled');
381
+ } else {
382
+ $Tr.find('.select_toggle').prop('disabled', false);
383
+ $Tr.find('.metabox_rename').prop('disabled', false).removeClass('disabled');
384
+ }
385
  });
386
  });
387
 
inc/setting_plugin_cap.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  $Data = $this->get_data( 'plugin_cap' );
4
  $UserRoles = $this->get_user_role();
 
5
 
6
  // include js css
7
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
@@ -43,26 +44,21 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
43
  </th>
44
  <td>
45
  <select name="data[<?php echo $field; ?>]">
46
- <?php $SelectedCap = false; ?>
47
  <?php if( !empty( $Data[$field] ) ) : ?>
48
  <?php $SelectedCap = strip_tags( $Data[$field] ); ?>
49
  <?php endif; ?>
50
- <?php if( !empty( $SelectedCap ) ) : ?>
51
- <option value=""><?php echo _x( 'Administrator' , 'User role' ); ?></option>
52
- <?php else: ?>
53
- <option value="" selected="selected"><?php echo _x( 'Administrator' , 'User role' ); ?></option>
54
- <?php endif; ?>
55
- <?php if( !empty( $UserRoles["administrator"]["capabilities"] ) ) : ?>
56
- <?php foreach( $UserRoles["administrator"]["capabilities"] as $cap => $v ) : ?>
57
  <?php $Selected = false; ?>
58
  <?php if( !empty( $SelectedCap ) ) : ?>
59
- <?php if( $Data[$field] == $cap ) $Selected = 'selected="selected"'; ?>
60
  <?php endif; ?>
61
  <option value="<?php echo $cap; ?>" <?php echo $Selected; ?>><?php echo $cap; ?></option>
62
  <?php endforeach; ?>
63
  <?php endif; ?>
64
  </select>
65
- <p class="description"><?php _e( 'Default' ); ?>: <?php echo _x( 'Administrator' , 'User role' ); ?></p>
66
  </td>
67
  </tr>
68
  </tbody>
2
 
3
  $Data = $this->get_data( 'plugin_cap' );
4
  $UserRoles = $this->get_user_role();
5
+ $current_user_role_group = $this->current_user_role_group();
6
 
7
  // include js css
8
  $ReadedJs = array( 'jquery' , 'jquery-ui-sortable' );
44
  </th>
45
  <td>
46
  <select name="data[<?php echo $field; ?>]">
47
+ <?php $SelectedCap = 'manage_options'; ?>
48
  <?php if( !empty( $Data[$field] ) ) : ?>
49
  <?php $SelectedCap = strip_tags( $Data[$field] ); ?>
50
  <?php endif; ?>
51
+ <?php if( !empty( $UserRoles[$current_user_role_group]["capabilities"] ) ) : ?>
52
+ <?php foreach( $UserRoles[$current_user_role_group]["capabilities"] as $cap => $v ) : ?>
 
 
 
 
 
53
  <?php $Selected = false; ?>
54
  <?php if( !empty( $SelectedCap ) ) : ?>
55
+ <?php if( $SelectedCap == $cap ) $Selected = 'selected="selected"'; ?>
56
  <?php endif; ?>
57
  <option value="<?php echo $cap; ?>" <?php echo $Selected; ?>><?php echo $cap; ?></option>
58
  <?php endforeach; ?>
59
  <?php endif; ?>
60
  </select>
61
+ <p class="description"><?php _e( 'Default' ); ?>: manage_options</p>
62
  </td>
63
  </tr>
64
  </tbody>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
- Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_2_4
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.5.2.5
8
  License: GPL2
9
 
10
  Customize the management screen UI.
@@ -50,6 +50,16 @@ These to Customization is possible.
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
 
 
 
 
53
  = 1.5.2.5 =
54
  * Fixed: Can be menu to parent menu of side menu settings.
55
 
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
+ Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_2_6
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.5.2.6
8
  License: GPL2
9
 
10
  Customize the management screen UI.
50
 
51
  == Changelog ==
52
 
53
+ = 1.5.2.6 =
54
+ * Changed: Change the priority to manage meta boxes.
55
+ * Changed: Show the Network menus on Admin Bar Settings.
56
+ * Changed: Change the default capability on settings.
57
+ * Fixed: Multiple other plugins settings on the Admin Bar Menu.
58
+ * Fixed: Orders post type to show error on Woocommerce.
59
+ * Fixed: Select all check to settings on manage meta boxes.
60
+ * Fixed: Text to Create menu on the Appearance Menus.
61
+ * Fixed: Change the capability to load to the meta boxe.
62
+
63
  = 1.5.2.5 =
64
  * Fixed: Can be menu to parent menu of side menu settings.
65
 
wp-admin-ui-customize.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
- Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_5
6
- Version: 1.5.2.5
7
  Author: gqevu6bsiz
8
- Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_5
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -58,7 +58,7 @@ class WP_Admin_UI_Customize
58
 
59
 
60
  function __construct() {
61
- $this->Ver = '1.5.2.5';
62
  $this->Name = 'WP Admin UI Customize';
63
  $this->Dir = plugin_dir_path( __FILE__ );
64
  $this->Url = plugin_dir_url( __FILE__ );
@@ -468,7 +468,7 @@ class WP_Admin_UI_Customize
468
  function admin_bar_filter_load() {
469
  $Default_bar = $this->Admin_bar;
470
 
471
- $Delete_bar = array( "top-secondary" , "my-sites-super-admin" );
472
  foreach( $Delete_bar as $del_name ) {
473
  if( !empty( $Default_bar[$del_name] ) ) {
474
  unset( $Default_bar[$del_name] );
@@ -477,7 +477,7 @@ class WP_Admin_UI_Customize
477
 
478
  // front
479
  $Default_bar["dashboard"] = (object) array( "id" => "dashboard" , "title" => __( 'Dashboard' ) , "parent" => "site-name" , "href" => admin_url() , "group" => false );
480
-
481
  foreach( $Default_bar as $node_id => $node ) {
482
  if( $node->id == 'my-account' ) {
483
  $Default_bar[$node_id]->title = sprintf( __( 'Howdy, %1$s' ) , '[user_name]' ) . '[user_avatar]';
@@ -610,7 +610,7 @@ class WP_Admin_UI_Customize
610
  }
611
 
612
  }
613
-
614
  return $Filter_bar;
615
  }
616
 
@@ -618,9 +618,9 @@ class WP_Admin_UI_Customize
618
  function post_meta_boxes_dashboard_load() {
619
  global $current_screen;
620
 
621
- $UserRole = $this->current_user_role_group();
622
-
623
- if( !empty( $current_screen ) && $current_screen->id == 'dashboard' && $UserRole == 'administrator' ) {
624
  global $wp_meta_boxes;
625
 
626
  $post_type = 'dashboard';
@@ -653,9 +653,9 @@ class WP_Admin_UI_Customize
653
  function post_meta_boxes_load() {
654
  global $current_screen;
655
 
656
- $UserRole = $this->current_user_role_group();
657
 
658
- if( !empty( $current_screen ) && $current_screen->base == 'post' && $UserRole == 'administrator' ) {
659
  global $wp_meta_boxes;
660
 
661
  $GetData = $this->get_data( "regist_metabox" );
@@ -885,16 +885,20 @@ class WP_Admin_UI_Customize
885
  <input type="hidden" class="regular-text titletext" value="" name="data[][title]" />
886
  <?php else : ?>
887
  <?php _e( 'Title' ); ?> :
 
 
888
  <?php if( in_array( $menu_widget["id"] , $no_submenu ) ) : ?>
889
- <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" readonly="readonly" /><br />
890
  <?php elseif( !empty( $activated_plugin ) ) : ?>
891
  <?php foreach( $activated_plugin as $plugin_slug => $v ) : ?>
892
  <?php if( !empty( $other_plugin["admin_bar"][$plugin_slug] ) && array_key_exists( $menu_widget["id"] , $other_plugin["admin_bar"][$plugin_slug] ) ) : ?>
893
- <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" readonly="readonly" /><br />
894
- <?php else : ?>
895
- <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" />
896
  <?php endif; ?>
897
  <?php endforeach; ?>
 
 
 
898
  <?php else : ?>
899
  <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" />
900
  <?php endif; ?>
@@ -1111,7 +1115,7 @@ class WP_Admin_UI_Customize
1111
  $str = str_replace( '[site_name]' , esc_attr( $current_site->site_name ) , $str );
1112
  }
1113
  if( strstr( $str , '[site_url]') ) {
1114
- $str = str_replace( '[site_url]' , $this->Schema . esc_attr( $current_site->domain ) , $str );
1115
  }
1116
  }
1117
 
@@ -1178,7 +1182,7 @@ class WP_Admin_UI_Customize
1178
 
1179
  // SetList
1180
  function get_plugin_cap() {
1181
- $capability = 'administrator';
1182
 
1183
  $Data = $this->get_data( 'plugin_cap' );
1184
  if( !empty( $Data["edit_cap"] ) ) {
@@ -1647,7 +1651,7 @@ class WP_Admin_UI_Customize
1647
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
1648
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
1649
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) , 10001 );
1650
- add_action( 'admin_head' , array( $this , 'manage_metabox' ) , 11 );
1651
  add_filter( 'admin_head', array( $this , 'sidemenu' ) );
1652
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
1653
  add_filter( 'edit_form_after_title' , array( $this , 'allow_comments' ) );
@@ -2495,12 +2499,26 @@ class WP_Admin_UI_Customize
2495
  $GetData = $this->get_flit_data( 'appearance_menus' );
2496
  if( !empty( $GetData["UPFN"] ) ) {
2497
  unset( $GetData["UPFN"] );
 
 
2498
 
2499
  if( !empty( $GetData["add_new_menu"] ) ) {
2500
- echo '<style>.wrap > .manage-menus, .locations-row-links .locations-add-menu-link { display: none; }</style>';
 
 
 
 
 
 
 
 
 
2501
  }
 
2502
  if( !empty( $GetData["delete_menu"] ) ) {
 
2503
  echo '<style>.major-publishing-actions .delete-action { display: none; }</style>';
 
2504
  }
2505
 
2506
  }
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
+ Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_6
6
+ Version: 1.5.2.6
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_6
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
58
 
59
 
60
  function __construct() {
61
+ $this->Ver = '1.5.2.6';
62
  $this->Name = 'WP Admin UI Customize';
63
  $this->Dir = plugin_dir_path( __FILE__ );
64
  $this->Url = plugin_dir_url( __FILE__ );
468
  function admin_bar_filter_load() {
469
  $Default_bar = $this->Admin_bar;
470
 
471
+ $Delete_bar = array( "top-secondary" );
472
  foreach( $Delete_bar as $del_name ) {
473
  if( !empty( $Default_bar[$del_name] ) ) {
474
  unset( $Default_bar[$del_name] );
477
 
478
  // front
479
  $Default_bar["dashboard"] = (object) array( "id" => "dashboard" , "title" => __( 'Dashboard' ) , "parent" => "site-name" , "href" => admin_url() , "group" => false );
480
+
481
  foreach( $Default_bar as $node_id => $node ) {
482
  if( $node->id == 'my-account' ) {
483
  $Default_bar[$node_id]->title = sprintf( __( 'Howdy, %1$s' ) , '[user_name]' ) . '[user_avatar]';
610
  }
611
 
612
  }
613
+
614
  return $Filter_bar;
615
  }
616
 
618
  function post_meta_boxes_dashboard_load() {
619
  global $current_screen;
620
 
621
+ $capability = $this->get_plugin_cap();
622
+
623
+ if( !empty( $current_screen ) && $current_screen->id == 'dashboard' && current_user_can( $capability ) ) {
624
  global $wp_meta_boxes;
625
 
626
  $post_type = 'dashboard';
653
  function post_meta_boxes_load() {
654
  global $current_screen;
655
 
656
+ $capability = $this->get_plugin_cap();
657
 
658
+ if( !empty( $current_screen ) && $current_screen->base == 'post' && current_user_can( $capability ) ) {
659
  global $wp_meta_boxes;
660
 
661
  $GetData = $this->get_data( "regist_metabox" );
885
  <input type="hidden" class="regular-text titletext" value="" name="data[][title]" />
886
  <?php else : ?>
887
  <?php _e( 'Title' ); ?> :
888
+
889
+ <?php $readonly_field = false; ?>
890
  <?php if( in_array( $menu_widget["id"] , $no_submenu ) ) : ?>
891
+ <?php $readonly_field = true; ?>
892
  <?php elseif( !empty( $activated_plugin ) ) : ?>
893
  <?php foreach( $activated_plugin as $plugin_slug => $v ) : ?>
894
  <?php if( !empty( $other_plugin["admin_bar"][$plugin_slug] ) && array_key_exists( $menu_widget["id"] , $other_plugin["admin_bar"][$plugin_slug] ) ) : ?>
895
+ <?php $readonly_field = true; ?>
896
+ <?php break; ?>
 
897
  <?php endif; ?>
898
  <?php endforeach; ?>
899
+ <?php endif; ?>
900
+ <?php if( $readonly_field ) : ?>
901
+ <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" readonly="readonly" /><br />
902
  <?php else : ?>
903
  <input type="text" class="regular-text titletext" value="<?php echo esc_html( $menu_widget["title"] ); ?>" name="data[][title]" />
904
  <?php endif; ?>
1115
  $str = str_replace( '[site_name]' , esc_attr( $current_site->site_name ) , $str );
1116
  }
1117
  if( strstr( $str , '[site_url]') ) {
1118
+ $str = str_replace( '[site_url]' , $this->Schema . esc_attr( $current_site->domain . $current_site->path ) , $str );
1119
  }
1120
  }
1121
 
1182
 
1183
  // SetList
1184
  function get_plugin_cap() {
1185
+ $capability = 'manage_options';
1186
 
1187
  $Data = $this->get_data( 'plugin_cap' );
1188
  if( !empty( $Data["edit_cap"] ) ) {
1651
  add_filter( 'admin_footer_text' , array( $this , 'admin_footer_text' ) );
1652
  add_action( 'admin_print_styles' , array( $this , 'load_css' ) );
1653
  add_action( 'wp_dashboard_setup' , array( $this , 'wp_dashboard_setup' ) , 10001 );
1654
+ add_action( 'admin_head' , array( $this , 'manage_metabox' ) , 10001 );
1655
  add_filter( 'admin_head', array( $this , 'sidemenu' ) );
1656
  add_filter( 'get_sample_permalink_html' , array( $this , 'add_edit_post_change_permalink' ) );
1657
  add_filter( 'edit_form_after_title' , array( $this , 'allow_comments' ) );
2499
  $GetData = $this->get_flit_data( 'appearance_menus' );
2500
  if( !empty( $GetData["UPFN"] ) ) {
2501
  unset( $GetData["UPFN"] );
2502
+
2503
+ $nav_menus = wp_get_nav_menus();
2504
 
2505
  if( !empty( $GetData["add_new_menu"] ) ) {
2506
+
2507
+ if( count( $nav_menus ) > 1 ) {
2508
+
2509
+ echo '<style>.wrap > .manage-menus .add-new-menu-action, .locations-row-links .locations-add-menu-link { display: none; }</style>';
2510
+
2511
+ } else {
2512
+
2513
+ echo '<style>.wrap > .manage-menus, .locations-row-links .locations-add-menu-link { display: none; }</style>';
2514
+
2515
+ }
2516
  }
2517
+
2518
  if( !empty( $GetData["delete_menu"] ) ) {
2519
+
2520
  echo '<style>.major-publishing-actions .delete-action { display: none; }</style>';
2521
+
2522
  }
2523
 
2524
  }