mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-12 15:48:34 +02:00
Also, remove the `version` argument from the `wp.deprecated()` call in `password-strength-meter.js`. This argument is for specifying the version a feature will be removed, not when the feature was removed. Props hareesh-pillai. Fixes #50413. Built from https://develop.svn.wordpress.org/trunk@48124 git-svn-id: http://core.svn.wordpress.org/trunk@47893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
1.0 KiB
JavaScript
2 lines
1.0 KiB
JavaScript
/*! This file is auto-generated */
|
|
window.wp=window.wp||{},function(o){wp.passwordStrength={meter:function(e,t,n){return o.isArray(t)||(t=[t.toString()]),e!=n&&n&&0<n.length?5:void 0===window.zxcvbn?-1:zxcvbn(e,t).score},userInputBlacklist:function(){return wp.deprecated("wp.passwordStrength.userInputBlacklist()",{alternative:"wp.passwordStrength.userInputDisallowedList()",plugin:"WordPress",hint:wp.i18n.__("Please consider writing more inclusive code.")}),wp.passwordStrength.userInputDisallowedList()},userInputDisallowedList:function(){var e,t,n,r,i=[],s=[],l=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(i.push(document.title),i.push(document.URL),t=l.length,e=0;e<t;e++)0!==(r=o("#"+l[e])).length&&(i.push(r[0].defaultValue),i.push(r.val()));for(n=i.length,e=0;e<n;e++)i[e]&&(s=s.concat(i[e].replace(/\W/g," ").split(" ")));return s=o.grep(s,function(e,t){return!(""===e||e.length<4)&&o.inArray(e,s)===t})}},window.passwordStrength=wp.passwordStrength.meter}(jQuery); |