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:
Gary Pendergast 2019-01-21 23:32:51 +00:00
parent faf1528d8f
commit 2d6bf285d4
2 changed files with 7 additions and 2 deletions

View File

@ -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(

View File

@ -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.