mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 07:22:01 +01:00
Clean cache for orphaned pages. Props hailin. fixes #5457
git-svn-id: http://svn.automattic.com/wordpress/trunk@6403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49d8db4cbe
commit
2c49f4748b
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user