[wp-trac] [WordPress Trac] #20486: Pass full post object to clean_post_cache()

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 23 22:04:37 UTC 2012


#20486: Pass full post object to clean_post_cache()
--------------------------+---------------------
 Reporter:  duck_         |       Owner:  duck_
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.4
Component:  Cache         |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------
Changes (by duck_):

 * owner:   => duck_
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [20569]:
 {{{
 #!CommitTicketReference repository="" revision="20569"
 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()).
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20486#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list