helgatheviking / Radio-Buttons-for-Taxonomies

Turn any WordPress taxonomy into a list of radio buttons, which forces users to select only 1 term!
53 stars 28 forks source link

Doens´t work on multisite #36

Closed rborgiel closed 6 years ago

rborgiel commented 9 years ago

Hi Kathy, great plugin you did, but i have one question. When i uncomment these lines of my code it works on multisite´s.

// prevent weirdness with multisite
       if( function_exists( 'ms_is_switched' ) && ms_is_switched() )
       return $post_id;

Can you explain these lines? is it necessary?

helgatheviking commented 9 years ago

Looks like I used the same extremely descriptive words as the commit message. And since that was a year ago, so I have little idea what that code is meant to be doing. Based on what ms_is_switched() does I'd guess it was meant to only save the terms on the current site and not randomly on any others.

Are you saying that with these lines in place you cannot save terms on a sub site?

helgatheviking commented 6 years ago

I'm able to save single terms on each sub-site, so closing. Looks like the ms_is_switched() was added by the developers from Multilingual Press as related to https://github.com/helgatheviking/Radio-Buttons-for-Taxonomies/issues/23