Changeset 13361
- Timestamp:
- 02/24/2010 06:18:13 AM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/custom-navigation.php
r13354 r13361 48 48 49 49 return wp_insert_term( $menu_name, 'nav_menu' ); 50 } 51 52 function wp_get_nav_menu( $menu ) { 53 return get_term( (int) $menu, 'nav_menu'); 50 54 } 51 55 -
trunk/wp-includes/default-widgets.php
r13336 r13361 1127 1127 //DISPLAY custom navigation menu 1128 1128 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) ); 1130 1130 ?> 1131 1131 -
trunk/wp-includes/general-template.php
r13268 r13361 2217 2217 2218 2218 /** 2219 * Outputs the Custom Navigation.2219 * Outputs a navigation menu. 2220 2220 * 2221 2221 * @since 3.0.0 2222 */ 2223 function custom_nav($args = array()) { 2222 * 2223 * @param array $args Arguments 2224 */ 2225 function wp_nav_menu( $args = array() ) { 2224 2226 require_once (ABSPATH . WPINC . '/custom-navigation.php'); 2225 2227 wp_custom_navigation_output($args);
Note: See TracChangeset
for help on using the changeset viewer.