Tweak wp_page_menu() defaults. Props MichaelH. fixes #7914
git-svn-id: http://svn.automattic.com/wordpress/trunk@9254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
45b8a2b4cd
commit
6f1a62f089
|
@ -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