s/custom_nav()/wp_nav_menu()/. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
911a6b1c09
commit
82d81675f9
|
@ -49,6 +49,10 @@ function wp_create_nav_menu( $menu_name ) {
|
||||||
return wp_insert_term( $menu_name, 'nav_menu' );
|
return wp_insert_term( $menu_name, 'nav_menu' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function wp_get_nav_menu( $menu ) {
|
||||||
|
return get_term( (int) $menu, 'nav_menu');
|
||||||
|
}
|
||||||
|
|
||||||
function wp_get_nav_menus() {
|
function wp_get_nav_menus() {
|
||||||
return get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
return get_terms( 'nav_menu', array( 'hide_empty' => false ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1126,7 +1126,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||||
<?php
|
<?php
|
||||||
//DISPLAY custom navigation menu
|
//DISPLAY custom navigation menu
|
||||||
if ( get_option('wp_custom_nav_menu') == 'true' )
|
if ( get_option('wp_custom_nav_menu') == 'true' )
|
||||||
custom_nav( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription) );
|
wp_nav_menu( array('id' => $navmenu, 'name' => $wp_custom_nav_menu_name, 'desc' => $navwidgetdescription) );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -2216,11 +2216,13 @@ function get_the_generator( $type = '' ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Outputs the Custom Navigation.
|
* Outputs a navigation menu.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
|
*
|
||||||
|
* @param array $args Arguments
|
||||||
*/
|
*/
|
||||||
function custom_nav($args = array()) {
|
function wp_nav_menu( $args = array() ) {
|
||||||
require_once (ABSPATH . WPINC . '/custom-navigation.php');
|
require_once (ABSPATH . WPINC . '/custom-navigation.php');
|
||||||
wp_custom_navigation_output($args);
|
wp_custom_navigation_output($args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue