[wp-trac] [WordPress Trac] #16951: register_taxonomy_for_object_type() sets duplicate values
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 23 18:28:29 UTC 2011
#16951: register_taxonomy_for_object_type() sets duplicate values
--------------------------+-----------------------------
Reporter: kevinB | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
If register_taxonomy_for_object_type() is called for an object type which
is already present in the taxonomy's object_type array, a duplicate value
is added to the array.
This is a common occurrence with user-modifiable taxonomy/type definition
in plugins such as GD Custom Posts and Taxonomies, when:
* register_taxonomy() is called with object_type argument, based on a
taxonomy configuration.
* register_taxonomy_for_object_type() is subsequently called, based on a
post type configuration.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16951>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list