Open swissspidy opened 3 weeks ago
was added in WordPress 4.6
Yep 👍
I noticed they changed this since I opened my previous PR (#657) which I accidentally deleted
Thanks. Will review and consider to use this as we escalated the WP min ver from v4.0 to v4.9.
The plugin was loading translations too early on
plugins_loaded
. Plugins should wait untilinit
to ensure the current user has been set up, so that the current user's locale can be respected.That said, why manually load translations when WordPress can do it for you :-)
Removes the manual
load_plugin_textdomain()
call to rely on WordPress to load translations at the right time, which was added in WordPress 4.6.