[wp-trac] [WordPress Trac] #12966: get_post_types returning more than desired results
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 12 18:08:06 UTC 2010
#12966: get_post_types returning more than desired results
--------------------------+-------------------------------------------------
Reporter: michaelh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version: 3.0
Severity: normal | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Comment(by sivel):
The problem is with the way the function is documented and how it works.
The docs say "Only post types having attributes that match all arguments
are returned". However it really returns all post types that match at
least 1 of the args. I have a patch coming that fixes this function to
perform the way I think it should as well as match the documentation.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12966#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list