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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3356 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2005-12-24 16:26:55 +00:00
parent d3105dc988
commit 541c30cc70
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 ) {