mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Accept a post object in clean_post_cache(). Fixes #20486.
The post_type can then be accessed to properly clean the taxonomy relationships cache. The full object is useful in situations when an ID might reference a post that has been removed from the database (e.g. wp_delete_post()). git-svn-id: https://develop.svn.wordpress.org/trunk@20569 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3150,5 +3150,5 @@ function update_page_cache( &$pages ) {
|
||||
function clean_page_cache( $id ) {
|
||||
_deprecated_function( __FUNCTION__, 3.4, 'clean_post_cache()' );
|
||||
|
||||
clean_post_cache( $id, 'page' );
|
||||
clean_post_cache( $id );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user