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

WordPress Trac noreply at wordpress.org
Wed Oct 21 10:36:11 UTC 2015


#34386: Get_post_types  double calls....
--------------------------+-----------------------------
 Reporter:  selnomeria    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `get_post_types()` has argument '''_builtin''', not correctly
 implemented...

 when i created custom QUERY,  I have to call that function twice:

 {{{
 $args['post_type'] =
 array_merge(get_post_types(array('_builtin'=>true)),get_post_types(array('_builtin'=>false)));
 }}}

 so, its good, if there was a value of '' '_builtin'=>"ALL" '', so it gets
 both of them, not only TRUE or FALSE ones...

 It will save DATABASE calls!!

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


More information about the wp-trac mailing list