[wp-trac] [WordPress Trac] #19148: get_post_types returning more than desired results, taxonomies arg not respected
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 5 04:25:34 UTC 2011
#19148: get_post_types returning more than desired results, taxonomies arg not
respected
--------------------------+-------------------------
Reporter: Ov3rfly | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.2.1
Severity: normal | Resolution: worksforme
Keywords: |
--------------------------+-------------------------
Changes (by nacin):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Depending on what you're trying to do, you'll want
is_object_in_taxonomy(), or get_object_taxonomies(), or get_taxonomies()
and pull a taxonomy's object_type argument.
The post type's `taxonomies` flag is an argument that wraps
register_taxonomy_for_object_type(). It is not something that then ends up
in the post type object. This data ia stored in only one place (in the
taxonomy object) for a reason.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19148#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list