WordPress.org

Make WordPress Core

Changeset 13361


Ignore:
Timestamp:
02/24/2010 06:18:13 AM (8 years ago)
Author:
ryan
Message:

s/custom_nav()/wp_nav_menu()/. see #11817

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/custom-navigation.php

    r13354 r13361  
    4848
    4949    return wp_insert_term( $menu_name, 'nav_menu' );
     50}
     51
     52function wp_get_nav_menu( $menu ) {
     53    return get_term( (int) $menu, 'nav_menu');
    5054}
    5155
  • trunk/wp-includes/default-widgets.php

    r13336 r13361  
    11271127                            //DISPLAY custom navigation menu
    11281128                            if ( get_option('wp_custom_nav_menu') == 'true' )
    1129                                 custom_nav( 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) );
    11301130                        ?>
    11311131
  • trunk/wp-includes/general-template.php

    r13268 r13361  
    22172217
    22182218/**
    2219  * Outputs the Custom Navigation.
     2219 * Outputs a navigation menu.
    22202220 *
    22212221 * @since 3.0.0
    2222  */
    2223 function custom_nav($args = array()) {
     2222 *
     2223 * @param array $args Arguments
     2224 */
     2225function wp_nav_menu( $args = array() ) {
    22242226    require_once (ABSPATH . WPINC . '/custom-navigation.php');
    22252227    wp_custom_navigation_output($args);
Note: See TracChangeset for help on using the changeset viewer.