• Resolved miked62

    (@miked62)


    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 #pass1 because the core script password-strength-meter which is called by …/wp-content/plugins/theme-my-login/assets/scripts/theme-my-login.js is not being enqueued. This causes wp.passwordStrength to be undefined, 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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.