Sort wp_page_menu() by menu_order. Props nathanrice. fixes #10266
git-svn-id: https://develop.svn.wordpress.org/trunk@11642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f6f03210e4
commit
efcea18935
@ -806,7 +806,7 @@ function wp_list_pages($args = '') {
|
|||||||
* @param array|string $args
|
* @param array|string $args
|
||||||
*/
|
*/
|
||||||
function wp_page_menu( $args = array() ) {
|
function wp_page_menu( $args = array() ) {
|
||||||
$defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
|
$defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
|
||||||
$args = wp_parse_args( $args, $defaults );
|
$args = wp_parse_args( $args, $defaults );
|
||||||
$args = apply_filters( 'wp_page_menu_args', $args );
|
$args = apply_filters( 'wp_page_menu_args', $args );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user