git-svn-id: https://develop.svn.wordpress.org/trunk@2328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60c3b346cd
commit
ef80505704
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user