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. Built from https://develop.svn.wordpress.org/trunk@53103 git-svn-id: http://core.svn.wordpress.org/trunk@52692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0f8bdeb263
commit
35913a6309
|
@ -694,7 +694,7 @@ function wp_default_scripts( $scripts ) {
|
|||
|
||||
$scripts->add( 'clipboard', "/wp-includes/js/clipboard$suffix.js", array(), false, 1 );
|
||||
|
||||
$scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array( 'jquery' ), false, 1 );
|
||||
$scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
'wp-ajax-response',
|
||||
'wpAjax',
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-53102';
|
||||
$wp_version = '6.0-alpha-53103';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue