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:
ryan 2008-10-18 21:06:28 +00:00
parent f111cc74b2
commit 6baaa2300d
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }
// //