Menus: Show an appropriate message when no menus exist.

Props garrett-eclipse.
Fixes #45155.



git-svn-id: https://develop.svn.wordpress.org/trunk@44685 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-21 23:31:45 +00:00
parent 5e77c07a2e
commit 09066df1cf
1 changed files with 6 additions and 1 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(