Multisite-Language-Switcher
Multisite-Language-Switcher copied to clipboard
Missing MSLS Dropdown on Taxonomy Edit Screen term.php
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!
Great catch! Would you mind opening a pull request?
I do. Is tomorrow fast enough?
Sure! Take your time. ;-)