Skip to content

Commit d14b485

Browse files
committed
Merge branch 'main' into develop.
2 parents 927de6a + 32ea9a3 commit d14b485

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/Modules/Sign_In_With_Google.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ function () {
180180

181181
// Sign in with Google tag placement logic.
182182
add_action( 'template_redirect', array( $this, 'register_tag' ) );
183-
add_action( 'login_redirect', array( $this, 'register_tag' ) );
183+
// Used to add the tag registration to the login footer in
184+
// `/wp-login.php`, which doesn't use the `template_redirect` action
185+
// like most WordPress pages.
186+
add_action( 'login_init', array( $this, 'register_tag' ) );
184187

185188
// Check to see if the module is connected before registering the block.
186189
if ( $this->is_connected() ) {

0 commit comments

Comments
 (0)