WordPress.org

Make WordPress Core

Changeset 44685


Ignore:
Timestamp:
01/21/2019 11:31:45 PM (7 months ago)
Author:
pento
Message:

Menus: Show an appropriate message when no menus exist.

Props garrett-eclipse.
Fixes #45155.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r44574 r44685  
    743743    <?php else : ?>
    744744    <div class="manage-menus">
    745         <?php if ( $menu_count < 2 ) : ?>
     745        <?php if ( $menu_count < 1 ) : ?>
     746        <span class="first-menu-message">
     747            <?php _e( 'Create your first menu below.' ); ?>
     748            <span class="screen-reader-text"><?php _e( 'Fill in the Menu Name and click the Create Menu button to create your first menu.' ); ?></span>
     749        </span><!-- /first-menu-message -->
     750        <?php elseif ( $menu_count < 2 ) : ?>
    746751        <span class="add-edit-menu-action">
    747752            <?php
Note: See TracChangeset for help on using the changeset viewer.