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:
Scott Taylor 2013-09-05 21:52:44 +00:00
parent eb63aeff1c
commit a7a070cc2c
1 changed files with 2 additions and 1 deletions

View File

@ -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 )