From 517c27e2976cc01795575694b0f6606fe642ad44 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 22 Jun 2020 19:07:57 +0000 Subject: [PATCH] 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 --- src/js/_enqueues/wp/password-strength-meter.js | 3 +-- tests/phpunit/tests/admin/includesSchema.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/_enqueues/wp/password-strength-meter.js b/src/js/_enqueues/wp/password-strength-meter.js index 2678d5b9b5..43a38ba403 100644 --- a/src/js/_enqueues/wp/password-strength-meter.js +++ b/src/js/_enqueues/wp/password-strength-meter.js @@ -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.' ) diff --git a/tests/phpunit/tests/admin/includesSchema.php b/tests/phpunit/tests/admin/includesSchema.php index 21feca72c4..4fec944459 100644 --- a/tests/phpunit/tests/admin/includesSchema.php +++ b/tests/phpunit/tests/admin/includesSchema.php @@ -159,7 +159,7 @@ class Tests_Admin_Includes_Schema extends WP_UnitTestCase { 'use_quicktags' => '1', ), array( - // This option disallowed and should never exist. + // This option is disallowed and should never exist. 'use_quicktags' => false, ), ),