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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user