WPChef / limit-login-attempts-reloaded

5 stars 9 forks source link

load_plugin_textdomain called too early #202

Open afragen opened 4 weeks ago

afragen commented 4 weeks ago

load_plugin_textdomain needs to be called in the init hook. The plugin calls the function during setup() from the class constructor but not in a hook.

Function load_plugin_textdomain was called incorrectly. Attempted to load translations for the limit-login-attempts-reloaded domain too early. Translations should be loaded after the after_setup_theme action has fired, to ensure that the current user is already set up. (This message was added in version 6.7.0.)
ipajen commented 3 weeks ago

load_plugin_textdomain

afragen commented 3 weeks ago

Though technically I don't believe the function may even need to be called at all as of WP 4.6 or so.