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:
Jon Cave
2012-04-23 22:04:35 +00:00
parent 5b9e7c07ba
commit 83a3cc73df
4 changed files with 26 additions and 28 deletions
+1 -1
View File
@@ -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 );
}