Ticket #41081: 41081.3.diff
File 41081.3.diff, 1020 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/widgets/class-wp-nav-menu-widget.php
118 118 $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : ''; 119 119 120 120 // Get menus 121 $menus = wp_get_nav_menus(); 121 $menus = wp_get_nav_menus( array( 122 'hide_empty' => true, 123 ) ); 122 124 123 125 // If no menus exists, direct the user to go and create some. 124 126 ?> … … 130 132 $url = admin_url( 'nav-menus.php' ); 131 133 } 132 134 ?> 133 <?php echo sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), esc_attr( $url ) ); ?>135 <?php echo sprintf( __( 'No menus have been created or they are empty. <a href="%s">Manage menus</a>.' ), esc_attr( $url ) ); ?> 134 136 </p> 135 137 <div class="nav-menu-widget-form-controls" <?php if ( empty( $menus ) ) { echo ' style="display:none" '; } ?>> 136 138 <p>