[wp-trac] [WordPress Trac] #25082: register_taxonomy_for_object_type cannot be used with non-post types
WordPress Trac
noreply at wordpress.org
Fri Aug 23 22:18:49 UTC 2013
#25082: register_taxonomy_for_object_type cannot be used with non-post types
--------------------------+----------------------
Reporter: leewillis77 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.0
Severity: normal | Resolution: wontfix
Keywords: has-patch |
--------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
On further thought, this function should be limited to post types. I was
wrong earlier.
Registering a taxonomy for an object type that isn't a post type is a
fairly dangerous affair. If a single taxonomy handles both a post type and
a non-post type, you end up with ID conflicts. I'm not sure I can think of
a situation where it should be allowed. Removing this check therefore
probably isn't prudent — actual assignment of a non-post object type
should occur only on registration of the taxonomy.
Wontfix.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25082#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list