diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-admin/js/password-strength-meter.js --- a/wp/wp-admin/js/password-strength-meter.js Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-admin/js/password-strength-meter.js Tue Jun 09 03:35:32 2015 +0200 @@ -1,3 +1,4 @@ +/* global zxcvbn */ window.wp = window.wp || {}; var passwordStrength; @@ -40,7 +41,7 @@ for ( i = 0; i < userInputFieldsLength; i++ ) { currentField = $( '#' + userInputFields[ i ] ); - if ( 0 == currentField.length ) { + if ( 0 === currentField.length ) { continue; } @@ -58,7 +59,7 @@ // Remove empty values, short words, and duplicates. Short words are likely to cause many false positives. blacklist = $.grep( blacklist, function( value, key ) { - if ( '' == value || 4 > value.length ) { + if ( '' === value || 4 > value.length ) { return false; } @@ -67,7 +68,7 @@ return blacklist; } - } + }; // Backwards compatibility. passwordStrength = wp.passwordStrength.meter;