shawfactor / lh-user-taxonomies

This is a WordPress plugin that extends the default taxonomy functionality to users
10 stars 11 forks source link

Fix inability to remove all terms #12

Open richplane opened 6 years ago

richplane commented 6 years ago

The code doesn't appear to deal with the case that the user has all terms removed: no checkboxes checked means no value is posted in $_POST[$key], so no update takes place in save_profile().

robertandrews commented 5 years ago

~~Unfortunately, when I unset any terms from my User, whilst the specified term is unset, the script always insists on setting an alternative one all by itself. The one it sets happens to have an id of 9826. I don't understand it. @richplane @shawfactor ~~

Last comment incorrect. This works.