Skip to content

Commit

Permalink
Clean cache for orphaned pages. Props hailin. fixes #5457
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@6403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Dec 18, 2007
1 parent 49d8db4 commit 2c49f47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wp-admin/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
}

Expand Down

0 comments on commit 2c49f47

Please sign in to comment.