From f4dafc015fcf036735ff0c2439aac49e9074c235 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 14 Feb 2005 07:04:16 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=772 git-svn-id: http://svn.automattic.com/wordpress/trunk@2328 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 5c01e7a5d..26d248b33 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();