hlashbrooke / WordPress-Plugin-Template

A robust code template for creating a standards-compliant WordPress plugin.
https://hughlashbrooke.com/
GNU General Public License v2.0
1.03k stars 329 forks source link

Multi object types and taxonomy edited every where... #53

Closed rafasashi closed 1 year ago

rafasashi commented 7 years ago

I have a taxonomy with multiple object type registered like this:

Cb_Profiler_Client()->register_taxonomy( 'layer-range', 'Layer Range', 'Layer Range', array('user','layer'));

Now when I edit the taxonomy of user id 236 the taxonomy of the layer id 236 is also edited with the same values...

Is it how it is supposed to be?

rafasashi commented 7 years ago

It is connected to wp_set_object_terms targeting object by ids and the fact that user and custom post-type can have the same ID number...

I have asked a question about it here:

http://wordpress.stackexchange.com/questions/248880/wp-set-object-terms-prevent-edit-multiple-object-types-with-same-id

But its not related to the WordPress-Plugin-Template

Any suggestion please let me know.