Docs: Small inline documentation corrections following [48121].
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
This commit is contained in:
parent
35545bee43
commit
d0d8ce1adb
|
@ -53,13 +53,12 @@ window.wp = window.wp || {};
|
|||
* as username, first name, email etc.
|
||||
*
|
||||
* @since 3.7.0
|
||||
* @deprecated 5.5.0 Use {@see 'userInputBlockList()'} instead.
|
||||
* @deprecated 5.5.0 Use {@see 'userInputDisallowedList()'} instead.
|
||||
*
|
||||
* @return {string[]} The array of words to be disallowed.
|
||||
*/
|
||||
userInputBlacklist : function() {
|
||||
wp.deprecated( 'wp.passwordStrength.userInputBlacklist()', {
|
||||
version: '5.5.0',
|
||||
alternative: 'wp.passwordStrength.userInputDisallowedList()',
|
||||
plugin: 'WordPress',
|
||||
hint: wp.i18n.__( 'Please consider writing more inclusive code.' )
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! This file is auto-generated */
|
||||
window.wp=window.wp||{},function(l){wp.passwordStrength={meter:function(e,n,t){return l.isArray(n)||(n=[n.toString()]),e!=t&&t&&0<t.length?5:void 0===window.zxcvbn?-1:zxcvbn(e,n).score},userInputBlacklist:function(){return wp.deprecated("wp.passwordStrength.userInputBlacklist()",{version:"5.5.0",alternative:"wp.passwordStrength.userInputDisallowedList()",plugin:"WordPress",hint:wp.i18n.__("Please consider writing more inclusive code.")}),wp.passwordStrength.userInputDisallowedList()},userInputDisallowedList:function(){var e,n,t,r,i=[],s=[],o=["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),n=o.length,e=0;e<n;e++)0!==(r=l("#"+o[e])).length&&(i.push(r[0].defaultValue),i.push(r.val()));for(t=i.length,e=0;e<t;e++)i[e]&&(s=s.concat(i[e].replace(/\W/g," ").split(" ")));return s=l.grep(s,function(e,n){return!(""===e||e.length<4)&&l.inArray(e,s)===n})}},window.passwordStrength=wp.passwordStrength.meter}(jQuery);
|
||||
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);
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48123';
|
||||
$wp_version = '5.5-alpha-48124';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue