Remove obsolete `wp_cache_delete('get_pages', 'posts')` from `clean_post_cache()`.
Fixes #27459. git-svn-id: https://develop.svn.wordpress.org/trunk@28875 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e8f2862421
commit
cf67d53408
|
@ -5258,9 +5258,6 @@ function clean_post_cache( $post ) {
|
|||
*/
|
||||
do_action( 'clean_post_cache', $post->ID, $post );
|
||||
|
||||
if ( is_post_type_hierarchical( $post->post_type ) )
|
||||
wp_cache_delete( 'get_pages', 'posts' );
|
||||
|
||||
if ( 'page' == $post->post_type ) {
|
||||
wp_cache_delete( 'all_page_ids', 'posts' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue