Skip to content

Commit

Permalink
fix(two-factor): move load_plugin_textdomain() to init
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Oct 1, 2024
1 parent 3a9b969 commit 59f4b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-plugins/two-factor/class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down

0 comments on commit 59f4b8a

Please sign in to comment.