[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 16:04:08 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 markoheijnen):
The public argument is not equal to other arguments. So yes I think it its
own self attribute. When you do set that argument others will start with
another default value what can be overridden if the argument has been set.
It would be weird the other way aroung when setting the show_ui argument
to true will mean you can view the post online.
If you look at this ticket #20164 you can see why query on the public
argument is wrong and it should have been the show_ui argument.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18950#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list