mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Menus: Show an appropriate message when no menus exist.
Props garrett-eclipse. Fixes #45155. Built from https://develop.svn.wordpress.org/trunk@44685 git-svn-id: http://core.svn.wordpress.org/trunk@44516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
faf1528d8f
commit
2d6bf285d4
@ -742,7 +742,12 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
<?php else : ?>
|
||||
<div class="manage-menus">
|
||||
<?php if ( $menu_count < 2 ) : ?>
|
||||
<?php if ( $menu_count < 1 ) : ?>
|
||||
<span class="first-menu-message">
|
||||
<?php _e( 'Create your first menu below.' ); ?>
|
||||
<span class="screen-reader-text"><?php _e( 'Fill in the Menu Name and click the Create Menu button to create your first menu.' ); ?></span>
|
||||
</span><!-- /first-menu-message -->
|
||||
<?php elseif ( $menu_count < 2 ) : ?>
|
||||
<span class="add-edit-menu-action">
|
||||
<?php
|
||||
printf(
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-beta1-44684';
|
||||
$wp_version = '5.1-beta1-44685';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user