[wp-trac] [WordPress Trac] #18950: get_post_types() does not return post-types registered with verbose alternatives of the $public argument

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 17 15:52:17 UTC 2012


#18950: get_post_types() does not return post-types registered with verbose
alternatives of the $public argument
----------------------------+------------------------------
 Reporter:  fireproofsocks  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Post Types      |     Version:  3.4.1
 Severity:  major           |  Resolution:
 Keywords:  close           |
----------------------------+------------------------------

Comment (by fireproofsocks):

 The problem is that WP does not recognize the equivalence of its
 arguments, not the default values for them.  @doodlebee may have
 registered post types incorrectly, but the problem remains.   By marking
 this closed, you are essentially saying that the "public" attribute is its
 own self-sufficient attribute and is not a short-hand notation for setting
 other attributes.  Since none of the post-type functionality follows
 unique behavior for the public attribute and it is instead used as a
 convenience argument for querying post-types, I don't see how you can
 architecturally justify the public attribute as being self-standing in
 this way.

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


More information about the wp-trac mailing list