register_taxonomy_for_object_type cannot be used with non-post types
|Reported by:||leewillis77||Owned by:|
register_taxonomy_for_object_type checks that the object type is a post_type object, and will not let you register the taxonomy for the object type if it is not:
During discussion with nacin on IRC relating to #11058 he suggesting removing the get_post_type_object check from the new unregister_taxonomy_from_object_type function since it didn't seem to be sensible.
This ticket is open to investigate the restriction in register_taxonomy_for_object_type and see if it can also be removed.
Patch attached in case the collective wisdom decides that it is unnecessary.