Ticket #41081: 41081.patch
File 41081.patch, 782 bytes (added by , 7 years ago) |
---|
-
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(); 122 122 123 if (empty($menus)) { 124 $menus = wp_get_nav_menus(array( 125 'hide_empty' => true, 126 )); 127 } 128 123 129 // If no menus exists, direct the user to go and create some. 124 130 ?> 125 131 <p class="nav-menu-widget-no-menus-message" <?php if ( ! empty( $menus ) ) { echo ' style="display:none" '; } ?>>