mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 06:36:47 +01:00
Menus: Hide bulk-select on new menu page.
Prevent the bulk-select option from displaying when adding a new menu. This also prevents the option from displaying when an administrator first visits the menu page and no menus are set. Props dlh, sabernhardt, peterwilsoncc. Merges [51539] to the 5.8 branch. Fixes #53654. Built from https://develop.svn.wordpress.org/branches/5.8@51596 git-svn-id: http://core.svn.wordpress.org/branches/5.8@51207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3616f5bf0b
commit
77cdaf8e92
@ -981,12 +981,16 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||||||
<div class="drag-instructions post-body-plain" <?php echo $hide_style; ?>>
|
<div class="drag-instructions post-body-plain" <?php echo $hide_style; ?>>
|
||||||
<p><?php echo $starter_copy; ?></p>
|
<p><?php echo $starter_copy; ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div id="nav-menu-bulk-actions-top" class="bulk-actions">
|
|
||||||
<label class="bulk-select-button" for="bulk-select-switcher-top">
|
<?php if ( ! $add_new_screen ) : ?>
|
||||||
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
|
<div id="nav-menu-bulk-actions-top" class="bulk-actions">
|
||||||
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
|
<label class="bulk-select-button" for="bulk-select-switcher-top">
|
||||||
</label>
|
<input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher">
|
||||||
</div>
|
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset( $edit_markup ) && ! is_wp_error( $edit_markup ) ) {
|
if ( isset( $edit_markup ) && ! is_wp_error( $edit_markup ) ) {
|
||||||
echo $edit_markup;
|
echo $edit_markup;
|
||||||
@ -1012,17 +1016,21 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||||||
$no_menus_style = 'style="display: none;"';
|
$no_menus_style = 'style="display: none;"';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="nav-menu-bulk-actions-bottom" class="bulk-actions">
|
|
||||||
<label class="bulk-select-button" for="bulk-select-switcher-bottom">
|
<?php if ( ! $add_new_screen ) : ?>
|
||||||
<input type="checkbox" id="bulk-select-switcher-bottom" name="bulk-select-switcher-top" class="bulk-select-switcher">
|
<div id="nav-menu-bulk-actions-bottom" class="bulk-actions">
|
||||||
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
|
<label class="bulk-select-button" for="bulk-select-switcher-bottom">
|
||||||
</label>
|
<input type="checkbox" id="bulk-select-switcher-bottom" name="bulk-select-switcher-top" class="bulk-select-switcher">
|
||||||
<input type="button" class="deletion menu-items-delete disabled" value="<?php _e( 'Remove Selected Items' ); ?>">
|
<span class="bulk-select-button-label"><?php _e( 'Bulk Select' ); ?></span>
|
||||||
<div id="pending-menu-items-to-delete">
|
</label>
|
||||||
<p><?php _e( 'List of menu items selected for deletion:' ); ?></p>
|
<input type="button" class="deletion menu-items-delete disabled" value="<?php _e( 'Remove Selected Items' ); ?>">
|
||||||
<ul></ul>
|
<div id="pending-menu-items-to-delete">
|
||||||
|
<p><?php _e( 'List of menu items selected for deletion:' ); ?></p>
|
||||||
|
<ul></ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="menu-settings" <?php echo $no_menus_style; ?>>
|
<div class="menu-settings" <?php echo $no_menus_style; ?>>
|
||||||
<h3><?php _e( 'Menu Settings' ); ?></h3>
|
<h3><?php _e( 'Menu Settings' ); ?></h3>
|
||||||
<?php
|
<?php
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8.1-alpha-51593';
|
$wp_version = '5.8.1-alpha-51596';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user