Fix page permalink 404 when pages are reordered. Props David House. fixes #2071

git-svn-id: https://develop.svn.wordpress.org/trunk@3356 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-12-24 16:26:55 +00:00
parent 7531aa10b7
commit 250ecaaf4f
2 changed files with 24 additions and 5 deletions

View File

@@ -370,7 +370,7 @@ class WP_Query {
$page_path .= ($pathdir!=''?'/':'') . sanitize_title($pathdir);
$all_page_ids = get_all_page_ids();
$reqpage = 0;
$reqpage = 0;
foreach ( $all_page_ids as $page_id ) {
$page = get_page($page_id);
if ( $page->fullpath == $page_path ) {