WordPress.org

Make WordPress Core

Changeset 9245


Ignore:
Timestamp:
10/18/2008 09:06:28 PM (10 years ago)
Author:
ryan
Message:

Fix echo arg to wp_page_menu(). see #7518

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r9205 r9245  
    674674
    675675    $menu = '<div id="' . $args['menu_class'] . '">' . $menu . "</div>\n";
    676     echo apply_filters( 'wp_page_menu', $menu );
     676    $menu = apply_filters( 'wp_page_menu', $menu );
     677    if ( $args['echo'] )
     678        echo $menu;
     679    else
     680        return $menu;
    677681}
    678682
Note: See TracChangeset for help on using the changeset viewer.