Clean cache for orphaned pages. Props hailin. fixes #5457
git-svn-id: https://develop.svn.wordpress.org/trunk@6403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6aa006ce3c
commit
3861075e5f
|
@ -303,8 +303,10 @@ function page_rows( $pages ) {
|
||||||
*/
|
*/
|
||||||
if ( count($children_pages) > 0 ) {
|
if ( count($children_pages) > 0 ) {
|
||||||
$empty_array = array();
|
$empty_array = array();
|
||||||
foreach ($children_pages as $orphan_page)
|
foreach ( $children_pages as $orphan_page ) {
|
||||||
display_page_row($orphan_page, $empty_array, 0);
|
clean_page_cache( $orphan_page->ID);
|
||||||
|
display_page_row( $orphan_page, $empty_array, 0 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue