Only variables should be passed by reference.
Props Askapache. Fixes #23032. git-svn-id: https://develop.svn.wordpress.org/trunk@25263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb63aeff1c
commit
a7a070cc2c
@ -829,7 +829,8 @@ class WP_Rewrite {
|
||||
global $wpdb;
|
||||
|
||||
//get pages in order of hierarchy, i.e. children after parents
|
||||
$posts = get_page_hierarchy( $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'page' AND post_status != 'auto-draft'") );
|
||||
$pages = $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'page' AND post_status != 'auto-draft'");
|
||||
$posts = get_page_hierarchy( $pages );
|
||||
|
||||
// If we have no pages get out quick
|
||||
if ( !$posts )
|
||||
|
Loading…
Reference in New Issue
Block a user