Tweak wp_page_menu() defaults. Props MichaelH. fixes #7914
git-svn-id: https://develop.svn.wordpress.org/trunk@9254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f747c73435
commit
fa4ac95135
|
@ -649,7 +649,7 @@ function wp_list_pages($args = '') {
|
|||
* @param array|string $args
|
||||
*/
|
||||
function wp_page_menu( $args = array() ) {
|
||||
$defaults = array('title_li' => '', 'sort_column' => 'menu_order', 'menu_class' => 'menu', 'echo' => false);
|
||||
$defaults = array('sort_column' => 'post_title', 'menu_class' => 'menu', 'echo' => true);
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
$args = apply_filters( 'wp_page_menu_args', $args );
|
||||
|
||||
|
|
Loading…
Reference in New Issue