From ef80505704260dd61704450c9b3a2a09ef146d09 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 14 Feb 2005 07:04:16 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=772 git-svn-id: https://develop.svn.wordpress.org/trunk@2328 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 5c01e7a5d5..26d248b334 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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();