Make WordPress Core

Changeset 53103


Ignore:
Timestamp:
04/08/2022 05:58:09 AM (2 years ago)
Author:
peterwilsoncc
Message:

Script loader: Add wp-a11y as dependency of wp-ajax-response.

Ensure wp.a11y.speak() is available when called in wp-ajax-response.

Follow up to [52170].

Props afercia.
Fixes #55544.
See #42937.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r53060 r53103  
    695695    $scripts->add( 'clipboard', "/wp-includes/js/clipboard$suffix.js", array(), false, 1 );
    696696
    697     $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array( 'jquery' ), false, 1 );
     697    $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
    698698    did_action( 'init' ) && $scripts->localize(
    699699        'wp-ajax-response',
Note: See TracChangeset for help on using the changeset viewer.