Only variables should be passed by reference.
Props Askapache. Fixes #23032. Built from https://develop.svn.wordpress.org/trunk@25263 git-svn-id: http://core.svn.wordpress.org/trunk@25231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d1a40562eb
commit
dd7a6d66af
|
@ -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