git-svn-id: https://develop.svn.wordpress.org/trunk@2328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-14 07:04:16 +00:00
parent 60c3b346cd
commit ef80505704
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();