From 59f4b8af87ee2033323307a982680ee64a2b332b Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 1 Oct 2024 21:22:20 +0300 Subject: [PATCH] fix(two-factor): move `load_plugin_textdomain()` to `init` --- shared-plugins/two-factor/class-two-factor-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-plugins/two-factor/class-two-factor-core.php b/shared-plugins/two-factor/class-two-factor-core.php index 6a990c87fd..4d798993c4 100644 --- a/shared-plugins/two-factor/class-two-factor-core.php +++ b/shared-plugins/two-factor/class-two-factor-core.php @@ -93,7 +93,7 @@ class Two_Factor_Core { * @since 0.1-dev */ public static function add_hooks( $compat ) { - add_action( 'plugins_loaded', array( __CLASS__, 'load_textdomain' ) ); + add_action( 'init', array( __CLASS__, 'load_textdomain' ) ); add_action( 'init', array( __CLASS__, 'get_providers' ) ); add_action( 'wp_login', array( __CLASS__, 'wp_login' ), 10, 2 ); add_filter( 'wp_login_errors', array( __CLASS__, 'maybe_show_reset_password_notice' ) );