Fix echo arg to wp_page_menu(). see #7518
git-svn-id: http://svn.automattic.com/wordpress/trunk@9245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f111cc74b2
commit
6baaa2300d
|
@ -673,7 +673,11 @@ function wp_page_menu( $args = array() ) {
|
||||||
$menu = '<ul>' . $menu . '</ul>';
|
$menu = '<ul>' . $menu . '</ul>';
|
||||||
|
|
||||||
$menu = '<div id="' . $args['menu_class'] . '">' . $menu . "</div>\n";
|
$menu = '<div id="' . $args['menu_class'] . '">' . $menu . "</div>\n";
|
||||||
echo apply_filters( 'wp_page_menu', $menu );
|
$menu = apply_filters( 'wp_page_menu', $menu );
|
||||||
|
if ( $args['echo'] )
|
||||||
|
echo $menu;
|
||||||
|
else
|
||||||
|
return $menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue