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. git-svn-id: https://develop.svn.wordpress.org/trunk@48124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
52b1c0c9d3
commit
517c27e297
@ -53,13 +53,12 @@ window.wp = window.wp || {};
|
|||||||
* as username, first name, email etc.
|
* as username, first name, email etc.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @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.
|
* @return {string[]} The array of words to be disallowed.
|
||||||
*/
|
*/
|
||||||
userInputBlacklist : function() {
|
userInputBlacklist : function() {
|
||||||
wp.deprecated( 'wp.passwordStrength.userInputBlacklist()', {
|
wp.deprecated( 'wp.passwordStrength.userInputBlacklist()', {
|
||||||
version: '5.5.0',
|
|
||||||
alternative: 'wp.passwordStrength.userInputDisallowedList()',
|
alternative: 'wp.passwordStrength.userInputDisallowedList()',
|
||||||
plugin: 'WordPress',
|
plugin: 'WordPress',
|
||||||
hint: wp.i18n.__( 'Please consider writing more inclusive code.' )
|
hint: wp.i18n.__( 'Please consider writing more inclusive code.' )
|
||||||
|
@ -159,7 +159,7 @@ class Tests_Admin_Includes_Schema extends WP_UnitTestCase {
|
|||||||
'use_quicktags' => '1',
|
'use_quicktags' => '1',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
// This option disallowed and should never exist.
|
// This option is disallowed and should never exist.
|
||||||
'use_quicktags' => false,
|
'use_quicktags' => false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user