wp.passwordStrength undefined on registration page
-
Hello,
I am developing in theme Twenty-Twentyfive (TT5). Using TML version 7.2.2 there is a JS error on my registration page when typing into
#pass1because the core scriptpassword-strength-meterwhich is called by…/wp-content/plugins/theme-my-login/assets/scripts/theme-my-login.jsis not being enqueued. This causeswp.passwordStrengthto beundefined, freezing the indicator element with an empty I circumvented this problem by placing the following into my functions.php:
add_action( 'wp_enqueue_scripts', function() {// check if TML is active on current page
if ( function_exists( 'theme_my_login' ) ) {
// force loading meter
wp_enqueue_script( 'password-strength-meter' );
}
});Maybe this can be incorporated into the plugin.
Thank you and regards
Mike
You must be logged in to reply to this topic.