Make WordPress Core

Changeset 25263


Ignore:
Timestamp:
09/05/2013 09:52:44 PM (11 years ago)
Author:
wonderboymusic
Message:

Only variables should be passed by reference.

Props Askapache.
Fixes #23032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rewrite.php

    r25258 r25263  
    830830
    831831        //get pages in order of hierarchy, i.e. children after parents
    832         $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'") );
     832        $pages = $wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'page' AND post_status != 'auto-draft'");
     833        $posts = get_page_hierarchy( $pages );
    833834
    834835        // If we have no pages get out quick
Note: See TracChangeset for help on using the changeset viewer.