register_taxonomy_for_object_type() sets duplicate values
|Reported by:||kevinB||Owned by:||scribu|
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.
Change History (5)
- Owner set to scribu
- Severity changed from normal to minor
- Status changed from new to reviewing