From 3861075e5f6fabab7e34391e65c80034edcb1b35 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Dec 2007 19:38:17 +0000 Subject: [PATCH] Clean cache for orphaned pages. Props hailin. fixes #5457 git-svn-id: https://develop.svn.wordpress.org/trunk@6403 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 8d699d5502..376de80049 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -303,8 +303,10 @@ function page_rows( $pages ) { */ if ( count($children_pages) > 0 ) { $empty_array = array(); - foreach ($children_pages as $orphan_page) - display_page_row($orphan_page, $empty_array, 0); + foreach ( $children_pages as $orphan_page ) { + clean_page_cache( $orphan_page->ID); + display_page_row( $orphan_page, $empty_array, 0 ); + } } }