Make WordPress Core

Changeset 50627


Ignore:
Timestamp:
03/31/2021 08:27:06 PM (4 years ago)
Author:
jorbin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/wp-admin/js/password-strength-meter.js

    r48121 r50627  
    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' );
Note: See TracChangeset for help on using the changeset viewer.