From c364164a1ddb3a4474c8d28ba602ad8b77acad27 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 18 Oct 2008 21:06:28 +0000 Subject: [PATCH] Fix echo arg to wp_page_menu(). see #7518 git-svn-id: https://develop.svn.wordpress.org/trunk@9245 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index b0911f8cd7..d99ba2aa92 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -673,7 +673,11 @@ function wp_page_menu( $args = array() ) { $menu = ''; $menu = '
' . $menu . "
\n"; - echo apply_filters( 'wp_page_menu', $menu ); + $menu = apply_filters( 'wp_page_menu', $menu ); + if ( $args['echo'] ) + echo $menu; + else + return $menu; } //