Multisite-Language-Switcher icon indicating copy to clipboard operation
Multisite-Language-Switcher copied to clipboard

Missing MSLS Dropdown on Taxonomy Edit Screen term.php

Open dollseb opened this issue 8 months ago • 3 comments

A customer asked why he can't change the assignment of a translation for a custom taxonomy tag afterwards like on a regular page or a post. By this I mean a page like this: term.php?taxonomy=nameoftax&tag_ID=XX

Then in your source code I saw that there is no action that registers the dropdown there and I just added this code after line 74:

includes/MslsPlugin.php add_action( 'load-term.php', [ MslsPostTag::class, 'init' ] );

As far as I can see, it's enough to add this line so when editing a taxonomy entry the corresponding term in another language can be selected afterwards. Was the entry not set for a specific reason? Does this cause any problems?

Thanks and many greetings!

dollseb avatar Oct 18 '23 14:10 dollseb

Great catch! Would you mind opening a pull request?

lloc avatar Oct 18 '23 15:10 lloc

I do. Is tomorrow fast enough?

dollseb avatar Oct 18 '23 15:10 dollseb

Sure! Take your time. ;-)

lloc avatar Oct 26 '23 15:10 lloc