Pass args as array instead of query string.
git-svn-id: https://develop.svn.wordpress.org/trunk@5876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ef753c3c5
commit
62f1de6322
@ -332,13 +332,13 @@ function wp_widget_pages( $args ) {
|
||||
|
||||
$title = empty( $options['title'] ) ? __( 'Pages' ) : $options['title'];
|
||||
$sortby = empty( $options['sortby'] ) ? 'menu_order' : $options['sortby'];
|
||||
$exclude = empty( $options['exclude'] ) ? '' : '&exclude=' . $options['exclude'];
|
||||
$exclude = empty( $options['exclude'] ) ? '' : $options['exclude'];
|
||||
|
||||
if ( $sortby == 'menu_order' ) {
|
||||
$sortby = 'menu_order, post_title';
|
||||
}
|
||||
|
||||
$out = wp_list_pages( 'title_li=&echo=0&sort_column=' . $sortby . $exclude );
|
||||
$out = wp_list_pages( array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) );
|
||||
|
||||
if ( !empty( $out ) ) {
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user