[wp-trac] [WordPress Trac] #58189: post_type parameter in update_post_caches() accepts more than a single post type

WordPress Trac noreply at wordpress.org
Tue Apr 25 09:16:04 UTC 2023


#58189: post_type parameter in update_post_caches() accepts more than a single post
type
--------------------------+-----------------------------
 Reporter:  DrewAPicture  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:
 Severity:  trivial       |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 In `update_post_caches()`, the `post_type` parameter is documented as only
 accepting a single post type, which is inaccurate. It actually accepts a
 single post type, 'any' for any post type, and also an array of post
 types.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58189>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list