Skip to content

Commit dbb719f

Browse files
committed
Build/Test & External Libraries : Fix jQuery deprecation.
jQuery.isArray is deprecated. Array.isArray is safe and used in other parts of the code base. See: #51812 git-svn-id: https://develop.svn.wordpress.org/trunk@50627 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f7d5b2b commit dbb719f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/qunit/wp-admin/js/password-strength-meter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jQuery( function() {
9595
QUnit.test( 'user input disallowed list array should contain expected words', function( assert ) {
9696
var disallowedList = wp.passwordStrength.userInputDisallowedList();
9797

98-
assert.ok( jQuery.isArray( disallowedList ), 'disallowed list is an array' );
98+
assert.ok( Array.isArray( disallowedList ), 'disallowed list is an array' );
9999
assert.ok( jQuery.inArray( 'WordPress', disallowedList ) > -1, 'disallowed list contains "WordPress" from page title' );
100100
assert.ok( jQuery.inArray( 'tests', disallowedList ) > -1, 'disallowed list contains "tests" from site URL' );
101101
});

0 commit comments

Comments
 (0)