[wp-trac] [WordPress Trac] #34386: Get_post_types double calls....

WordPress Trac noreply at wordpress.org
Wed Oct 21 10:46:20 UTC 2015


#34386: Get_post_types  double calls....
-------------------------------+------------------------------
 Reporter:  selnomeria         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Posts, Post Types


Comment:

 `get_post_types()` (without a parameter) should return all post types,
 regardless of the `_builtin` value.

 It also does not perform any database calls, since post types are
 registered at runtime.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34386#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list