Changes from branches/3.1/wp-includes/rewrite.php at r17519 to trunk/wp-includes/rewrite.php at r17929
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r17519 r17929 768 768 769 769 //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'") ); 771 771 772 772 // If we have no pages get out quick … … 1977 1977 1978 1978 /** 1979 * PHP4Constructor - Calls init(), which runs setup.1979 * Constructor - Calls init(), which runs setup. 1980 1980 * 1981 1981 * @since 1.5.0 … … 1984 1984 * @return WP_Rewrite 1985 1985 */ 1986 function WP_Rewrite() {1986 function __construct() { 1987 1987 $this->init(); 1988 1988 }
Note: See TracChangeset
for help on using the changeset viewer.