WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/24/2010 08:45:26 AM (12 years ago)
Author:
ryan
Message:

Fallback to wp_page_menu() from wp_nav_menu() if no menus are setup. Use wp_nav_menu() in twentyten. see #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r13361 r13368  
    11271127                            //DISPLAY custom navigation menu
    11281128                            if ( get_option('wp_custom_nav_menu') == 'true' )
    1129                                 wp_nav_menu( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription) );
     1129                                wp_nav_menu( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription, 'format' => 'widget') );
    11301130                        ?>
    11311131
Note: See TracChangeset for help on using the changeset viewer.