Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17519 r17929  
    768768
    769769        //get pages in order of hierarchy, i.e. children after parents
    770         $posts = get_page_hierarchy($wpdb->get_results("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE post_type = 'page'"));
     770        $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'") );
    771771
    772772        // If we have no pages get out quick
     
    19771977
    19781978    /**
    1979      * PHP4 Constructor - Calls init(), which runs setup.
     1979     * Constructor - Calls init(), which runs setup.
    19801980     *
    19811981     * @since 1.5.0
     
    19841984     * @return WP_Rewrite
    19851985     */
    1986     function WP_Rewrite() {
     1986    function __construct() {
    19871987        $this->init();
    19881988    }
Note: See TracChangeset for help on using the changeset viewer.