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:
Scott Taylor 2013-09-05 21:53:09 +00:00
parent d1a40562eb
commit dd7a6d66af
1 changed files with 2 additions and 1 deletions

View File

@ -829,7 +829,8 @@ class WP_Rewrite {
global $wpdb; global $wpdb;
//get pages in order of hierarchy, i.e. children after parents //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 we have no pages get out quick
if ( !$posts ) if ( !$posts )