git-svn-id: http://svn.automattic.com/wordpress/trunk@2328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 07:04:16 +00:00
parent ab9fa0a56b
commit f4dafc015f
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ function save_mod_rewrite_rules() {
function generate_page_rewrite_rules() {
global $wpdb;
$posts = $wpdb->get_results("SELECT ID, post_name FROM $wpdb->posts WHERE post_status = 'static'");
$posts = $wpdb->get_results("SELECT ID, post_name FROM $wpdb->posts WHERE post_status = 'static' ORDER BY post_parent DESC");
$page_rewrite_rules = array();