Ticket #41081: class-wp-nav-menu-widget.diff
File class-wp-nav-menu-widget.diff, 492 bytes (added by , 7 years ago) |
---|
-
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 ?>