Skip to content

Commit f7600b1

Browse files
committed
changed priority to be able to override login widget
1 parent 5d78cc2 commit f7600b1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

WP_Auth0.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: PLUGIN_NAME
44
* Description: PLUGIN_DESCRIPTION
5-
* Version: 3.2.6
5+
* Version: 3.2.7
66
* Author: Auth0
77
* Author URI: https://auth0.com
88
*/
@@ -12,7 +12,7 @@
1212
define( 'WPA0_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
1313
define( 'WPA0_LANG', 'wp-auth0' );
1414
define( 'AUTH0_DB_VERSION', 11 );
15-
define( 'WPA0_VERSION', '3.2.6' );
15+
define( 'WPA0_VERSION', '3.2.7' );
1616

1717
/**
1818
* Main plugin class
@@ -54,7 +54,7 @@ public function init() {
5454
add_action( 'login_enqueue_scripts', array( $this, 'render_auth0_login_css' ) );
5555

5656
// Add a hook to add Auth0 code on the login page.
57-
add_filter( 'login_message', array( $this, 'render_form' ) );
57+
add_filter( 'login_message', array( $this, 'render_form'), 5);
5858

5959
add_filter( 'auth0_verify_email_page', array( $this, 'render_verify_email_page' ), 0, 3 );
6060

@@ -311,7 +311,6 @@ public function render_verify_email_page($html, $userinfo, $id_token) {
311311
}
312312

313313
public function render_form( $html ) {
314-
315314
if ( isset( $_GET['action'] ) && $_GET['action'] == 'lostpassword' ) {
316315
return $html;
317316
}
@@ -335,6 +334,7 @@ public function render_form( $html ) {
335334
renderAuth0Form();
336335

337336
$html = ob_get_clean();
337+
338338
return $html;
339339
}
340340

@@ -447,5 +447,4 @@ function get_auth0_curatedBlogName() {
447447
}
448448

449449
$a0_plugin = new WP_Auth0();
450-
$a0_plugin->init();
451-
450+
$a0_plugin->init();

0 commit comments

Comments
 (0)