WordPress.org

Make WordPress Core

Ticket #50093: 50093.diff

File 50093.diff, 31.6 KB (added by audrasjb, 7 months ago)

Remove a11y/js from JS dependencies

  • deleted file src/js/_enqueues/wp/a11y.js

    diff --git a/src/js/_enqueues/wp/a11y.js b/src/js/_enqueues/wp/a11y.js
    deleted file mode 100644
    index 3869dd3c3d..0000000000
    + -  
    1 /**
    2  * @output wp-includes/js/wp-a11y.js
    3  */
    4 
    5 /** @namespace wp */
    6 window.wp = window.wp || {};
    7 
    8 ( function ( wp, $ ) {
    9         'use strict';
    10 
    11         var $containerPolite,
    12                 $containerAssertive,
    13                 previousMessage = '';
    14 
    15         /**
    16          * Update the ARIA live notification area text node.
    17          *
    18          * @since 4.2.0
    19          * @since 4.3.0 Introduced the 'ariaLive' argument.
    20          *
    21          * @param {String} message    The message to be announced by Assistive Technologies.
    22          * @param {String} [ariaLive] The politeness level for aria-live. Possible values:
    23          *                            polite or assertive. Default polite.
    24          * @return {void}
    25          */
    26         function speak( message, ariaLive ) {
    27                 // Clear previous messages to allow repeated strings being read out.
    28                 clear();
    29 
    30                 // Remove HTML tags, ensuring only text is sent to screen readers.
    31                 message = wp.sanitize.stripTagsAndEncodeText( message );
    32 
    33                 /*
    34                  * Safari 10+VoiceOver don't announce repeated, identical strings. We use
    35                  * a `no-break space` to force them to think identical strings are different.
    36                  * See ticket #36853.
    37                  */
    38                 if ( previousMessage === message ) {
    39                         message = message + '\u00A0';
    40                 }
    41 
    42                 previousMessage = message;
    43 
    44                 if ( $containerAssertive && 'assertive' === ariaLive ) {
    45                         $containerAssertive.text( message );
    46                 } else if ( $containerPolite ) {
    47                         $containerPolite.text( message );
    48                 }
    49         }
    50 
    51         /**
    52          * Build the live regions markup.
    53          *
    54          * @since 4.3.0
    55          *
    56          * @param {String} ariaLive Optional. Value for the 'aria-live' attribute, default 'polite'.
    57          *
    58          * @return {Object} $container The ARIA live region jQuery object.
    59          */
    60         function addContainer( ariaLive ) {
    61                 ariaLive = ariaLive || 'polite';
    62 
    63                 var $container = $( '<div>', {
    64                         'id': 'wp-a11y-speak-' + ariaLive,
    65                         'aria-live': ariaLive,
    66                         'aria-relevant': 'additions text',
    67                         'aria-atomic': 'true',
    68                         'class': 'screen-reader-text wp-a11y-speak-region'
    69                 });
    70 
    71                 $( document.body ).append( $container );
    72                 return $container;
    73         }
    74 
    75         /**
    76          * Clear the live regions.
    77          *
    78          * @since 4.3.0
    79          */
    80         function clear() {
    81                 $( '.wp-a11y-speak-region' ).text( '' );
    82         }
    83 
    84         /**
    85          * Initialize wp.a11y and define ARIA live notification area.
    86          *
    87          * @since 4.2.0
    88          * @since 4.3.0 Added the assertive live region.
    89          */
    90         $( document ).ready( function() {
    91                 $containerPolite = $( '#wp-a11y-speak-polite' );
    92                 $containerAssertive = $( '#wp-a11y-speak-assertive' );
    93 
    94                 if ( ! $containerPolite.length ) {
    95                         $containerPolite = addContainer( 'polite' );
    96                 }
    97 
    98                 if ( ! $containerAssertive.length ) {
    99                         $containerAssertive = addContainer( 'assertive' );
    100                 }
    101         });
    102 
    103         /** @namespace wp.a11y */
    104         wp.a11y = wp.a11y || {};
    105         wp.a11y.speak = speak;
    106 
    107 }( window.wp, window.jQuery ));
  • src/wp-admin/includes/update-core.php

    diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php
    index 76e19bf81d..6771aadbab 100644
    a b $_old_files = array( 
    792792        // 5.4
    793793        'wp-admin/js/wp-fullscreen-stub.js',
    794794        'wp-admin/js/wp-fullscreen-stub.min.js',
     795        // 5.5
     796        'wp-includes/js/dist/a11y.js',
     797        'wp-includes/js/dist/a11y.min.js',
    795798);
    796799
    797800/**
  • src/wp-includes/assets/script-loader-packages.php

    diff --git a/src/wp-includes/assets/script-loader-packages.php b/src/wp-includes/assets/script-loader-packages.php
    index 45ef6764dc..46b8f9c831 100644
    a b  
    1 <?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => 'ad3d7c2ff7ea54382e4899c66c5675c9'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '4456e0e207c72f2310d3ab8d5c5cdb45'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'e52bd7bfab0d35919427383743b7a404'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ca64759ccf7ee1375290644604d5a53c'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a7f837f42df02a93992f6c4f45ad7fbc'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b8ca1a4b5d34cac0db7ce619c4622007'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '2ecab7994d9ea8896bb299b202aa0424'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'abad910974608c40d5ea18f3552024fc'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0af65293af65bb6a75e99418b8a481fe'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '8b988fb83d5f56bee6f743da7fab2bdb'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'ce7c8b7718536f7362882a3c9116518a'), 'compose.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '558d0aa0defc8c38287d67098b93ca7a'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'b1d8411dc3147751a912e8f10f7a0fa7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '03bc060c8e5cd631368e08edd0a9c162'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '76fb3c371b947379ce02b20f31612749'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '3c90e59a038022f147c756f5b72296bd'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '26aefabb46263ab5dac6d7f6c63b664c'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3df277847d8933e5ff2c5f219d945539'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a6586b64552c9c6924b8093e9ef4f74e'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '38692887596784399cfc3ce6a8196272'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '314b18a61fb01db29fdb4046d5b5b7dd'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'bc1e9e1e15f9c68f7fd7ef833cbb9353'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '11a9ed20aa0e5b49a24e416455d2311e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '734f25d51fa10f1aae5f9665f4a06c38'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b01cb5250cb783d826e0dd007e6c960d'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '19282cf2c91bc955d53065ce1caef093'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '76bfc2f8044e53d9670a1cde3ad0a080'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c340b2f09372480c2b25ac881d5b70ba'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '336ecae8a94f43dcf5da6c02b094ea65'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'c5d8b99c1b391e77a65416071cb6e2bd'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bb7e54e4df3002040a4c8090db5fa41c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '49f2761f432a8d522a0c2b76c9e87996'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'da54786f0c6279ce9b5ab56b59efcae3'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'e672279eeae444414e26cce9bc6a6469'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => 'ad448a31fe0b7c76c485caa01d4e831f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '2e7d955b235f3f757927ecc4e82776a7'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '338f399d1b80290391a80c3c9e5349b0'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '403b34f9b8d11aad63bb3475e260a9d6'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '0f38b62271b008146a28d6608115422c'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3da2c3d069de569cb0f0cbf94370b2e5'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0f4a8551daa990e80114889793034ff6'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a1f31c40d19f26a299d2a2b747ded3a5'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '47e21c620824d1f18a1a1f4db20499ae'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '171d3e1624dc772e195616cff3538e65'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '202ac16e99afe7c33c257b248625a947'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '2022e3c957d364d30c905c4acd42f40c'));
    2  No newline at end of file
     1<?php return array('annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '4456e0e207c72f2310d3ab8d5c5cdb45'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'e52bd7bfab0d35919427383743b7a404'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'ca64759ccf7ee1375290644604d5a53c'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a7f837f42df02a93992f6c4f45ad7fbc'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b8ca1a4b5d34cac0db7ce619c4622007'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '2ecab7994d9ea8896bb299b202aa0424'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'abad910974608c40d5ea18f3552024fc'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0af65293af65bb6a75e99418b8a481fe'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '8b988fb83d5f56bee6f743da7fab2bdb'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'ce7c8b7718536f7362882a3c9116518a'), 'compose.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '558d0aa0defc8c38287d67098b93ca7a'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'b1d8411dc3147751a912e8f10f7a0fa7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '03bc060c8e5cd631368e08edd0a9c162'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '76fb3c371b947379ce02b20f31612749'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '3c90e59a038022f147c756f5b72296bd'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '26aefabb46263ab5dac6d7f6c63b664c'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3df277847d8933e5ff2c5f219d945539'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'a6586b64552c9c6924b8093e9ef4f74e'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '38692887596784399cfc3ce6a8196272'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '314b18a61fb01db29fdb4046d5b5b7dd'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'bc1e9e1e15f9c68f7fd7ef833cbb9353'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '11a9ed20aa0e5b49a24e416455d2311e'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '734f25d51fa10f1aae5f9665f4a06c38'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b01cb5250cb783d826e0dd007e6c960d'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '19282cf2c91bc955d53065ce1caef093'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '76bfc2f8044e53d9670a1cde3ad0a080'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c340b2f09372480c2b25ac881d5b70ba'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '336ecae8a94f43dcf5da6c02b094ea65'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'c5d8b99c1b391e77a65416071cb6e2bd'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bb7e54e4df3002040a4c8090db5fa41c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '49f2761f432a8d522a0c2b76c9e87996'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'da54786f0c6279ce9b5ab56b59efcae3'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'e672279eeae444414e26cce9bc6a6469'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => 'ad448a31fe0b7c76c485caa01d4e831f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '2e7d955b235f3f757927ecc4e82776a7'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '338f399d1b80290391a80c3c9e5349b0'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '403b34f9b8d11aad63bb3475e260a9d6'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '0f38b62271b008146a28d6608115422c'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3da2c3d069de569cb0f0cbf94370b2e5'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0f4a8551daa990e80114889793034ff6'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a1f31c40d19f26a299d2a2b747ded3a5'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '47e21c620824d1f18a1a1f4db20499ae'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '171d3e1624dc772e195616cff3538e65'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '202ac16e99afe7c33c257b248625a947'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '2022e3c957d364d30c905c4acd42f40c'));
     2 No newline at end of file
  • src/wp-includes/script-loader.php

    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index 2e9a1bcd45..97a20c69c0 100644
    a b function wp_default_packages_scripts( $scripts ) { 
    232232        $suffix = wp_scripts_get_suffix();
    233233
    234234        // Expects multidimensional array like:
    235         //      'a11y.js' => array('dependencies' => array(...), 'version' => '...'),
    236235        //      'annotations.js' => array('dependencies' => array(...), 'version' => '...'),
    237236        //      'api-fetch.js' => array(...
    238237        $assets = include ABSPATH . WPINC . '/assets/script-loader-packages.php';
    function wp_default_scripts( $scripts ) { 
    774773        $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$dev_suffix.js", array( 'jquery-effects-core' ), '1.11.4', 1 );
    775774
    776775        $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget' ), '1.11.4', 1 );
    777         $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.11.4', 1 );
     776        $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$dev_suffix.js", array( 'jquery-ui-menu' ), '1.11.4', 1 );
    778777        $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$dev_suffix.js", array( 'jquery-ui-core', 'jquery-ui-widget' ), '1.11.4', 1 );
    779778        $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$dev_suffix.js", array( 'jquery-ui-core' ), '1.11.4', 1 );
    780779        $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$dev_suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button', 'jquery-ui-position' ), '1.11.4', 1 );
    function wp_default_scripts( $scripts ) { 
    10421041        $scripts->add( 'htmlhint', '/wp-includes/js/codemirror/htmlhint.js', array(), '0.9.14-xwp' );
    10431042        $scripts->add( 'htmlhint-kses', '/wp-includes/js/codemirror/htmlhint-kses.js', array( 'htmlhint' ) );
    10441043        $scripts->add( 'code-editor', "/wp-admin/js/code-editor$suffix.js", array( 'jquery', 'wp-codemirror', 'underscore' ) );
    1045         $scripts->add( 'wp-theme-plugin-editor', "/wp-admin/js/theme-plugin-editor$suffix.js", array( 'wp-util', 'wp-sanitize', 'jquery', 'jquery-ui-core', 'wp-a11y', 'underscore' ) );
     1044        $scripts->add( 'wp-theme-plugin-editor', "/wp-admin/js/theme-plugin-editor$suffix.js", array( 'wp-util', 'wp-sanitize', 'jquery', 'jquery-ui-core', 'underscore' ) );
    10461045        did_action( 'init' ) && $scripts->add_inline_script(
    10471046                'wp-theme-plugin-editor',
    10481047                sprintf(
    function wp_default_scripts( $scripts ) { 
    11091108
    11101109        $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'hoverintent-js' ), false, 1 );
    11111110
    1112         $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
     1111        $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery' ), false, 1 );
    11131112        did_action( 'init' ) && $scripts->localize(
    11141113                'wplink',
    11151114                'wpLinkL10n',
    function wp_default_scripts( $scripts ) { 
    11391138
    11401139        $scripts->add( 'customize-base', "/wp-includes/js/customize-base$suffix.js", array( 'jquery', 'json2', 'underscore' ), false, 1 );
    11411140        $scripts->add( 'customize-loader', "/wp-includes/js/customize-loader$suffix.js", array( 'customize-base' ), false, 1 );
    1142         $scripts->add( 'customize-preview', "/wp-includes/js/customize-preview$suffix.js", array( 'wp-a11y', 'customize-base' ), false, 1 );
     1141        $scripts->add( 'customize-preview', "/wp-includes/js/customize-preview$suffix.js", array( 'customize-base' ), false, 1 );
    11431142        $scripts->add( 'customize-models', '/wp-includes/js/customize-models.js', array( 'underscore', 'backbone' ), false, 1 );
    11441143        $scripts->add( 'customize-views', '/wp-includes/js/customize-views.js', array( 'jquery', 'underscore', 'imgareaselect', 'customize-models', 'media-editor', 'media-views' ), false, 1 );
    1145         $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base', 'wp-a11y', 'wp-util', 'jquery-ui-core' ), false, 1 );
     1144        $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base', 'wp-util', 'jquery-ui-core' ), false, 1 );
    11461145        did_action( 'init' ) && $scripts->localize(
    11471146                'customize-controls',
    11481147                '_wpCustomizeControlsL10n',
    function wp_default_scripts( $scripts ) { 
    12201219        $scripts->add( 'customize-nav-menus', "/wp-admin/js/customize-nav-menus$suffix.js", array( 'jquery', 'wp-backbone', 'customize-controls', 'accordion', 'nav-menu', 'wp-sanitize' ), false, 1 );
    12211220        $scripts->add( 'customize-preview-nav-menus', "/wp-includes/js/customize-preview-nav-menus$suffix.js", array( 'jquery', 'wp-util', 'customize-preview', 'customize-selective-refresh' ), false, 1 );
    12221221
    1223         $scripts->add( 'wp-custom-header', "/wp-includes/js/wp-custom-header$suffix.js", array( 'wp-a11y' ), false, 1 );
     1222        $scripts->add( 'wp-custom-header', "/wp-includes/js/wp-custom-header$suffix.js", array(), false, 1 );
    12241223
    12251224        $scripts->add( 'accordion', "/wp-admin/js/accordion$suffix.js", array( 'jquery' ), false, 1 );
    12261225
    function wp_default_scripts( $scripts ) { 
    12411240
    12421241        // To enqueue media-views or media-editor, call wp_enqueue_media().
    12431242        // Both rely on numerous settings, styles, and templates to operate correctly.
    1244         $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement', 'wp-api-request', 'wp-a11y', 'wp-i18n' ), false, 1 );
     1243        $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement', 'wp-api-request', 'wp-i18n' ), false, 1 );
    12451244        $scripts->set_translations( 'media-views' );
    12461245        $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 );
    12471246        $scripts->add( 'media-audiovideo', "/wp-includes/js/media-audiovideo$suffix.js", array( 'media-editor' ), false, 1 );
    function wp_default_scripts( $scripts ) { 
    12901289
    12911290                $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 );
    12921291
    1293                 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete', 'wp-a11y' ), false, 1 );
     1292                $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
    12941293                did_action( 'init' ) && $scripts->localize(
    12951294                        'tags-suggest',
    12961295                        'tagsSuggestL10n',
    function wp_default_scripts( $scripts ) { 
    13031302                        )
    13041303                );
    13051304
    1306                 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize' ), false, 1 );
     1305                $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-sanitize' ), false, 1 );
    13071306                did_action( 'init' ) && $scripts->localize(
    13081307                        'post',
    13091308                        'postL10n',
    function wp_default_scripts( $scripts ) { 
    13521351
    13531352                $scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ) );
    13541353
    1355                 $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'wp-a11y' ), false, 1 );
     1354                $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 );
    13561355                did_action( 'init' ) && $scripts->add_inline_script(
    13571356                        'admin-widgets',
    13581357                        sprintf(
    function wp_default_scripts( $scripts ) { 
    13751374                $scripts->add( 'media-image-widget', "/wp-admin/js/widgets/media-image-widget$suffix.js", array( 'media-widgets' ) );
    13761375                $scripts->add( 'media-gallery-widget', "/wp-admin/js/widgets/media-gallery-widget$suffix.js", array( 'media-widgets' ) );
    13771376                $scripts->add( 'media-video-widget', "/wp-admin/js/widgets/media-video-widget$suffix.js", array( 'media-widgets', 'media-audiovideo', 'wp-api-request' ) );
    1378                 $scripts->add( 'text-widgets', "/wp-admin/js/widgets/text-widgets$suffix.js", array( 'jquery', 'backbone', 'editor', 'wp-util', 'wp-a11y' ) );
    1379                 $scripts->add( 'custom-html-widgets', "/wp-admin/js/widgets/custom-html-widgets$suffix.js", array( 'jquery', 'backbone', 'wp-util', 'jquery-ui-core', 'wp-a11y' ) );
     1377                $scripts->add( 'text-widgets', "/wp-admin/js/widgets/text-widgets$suffix.js", array( 'jquery', 'backbone', 'editor', 'wp-util' ) );
     1378                $scripts->add( 'custom-html-widgets', "/wp-admin/js/widgets/custom-html-widgets$suffix.js", array( 'jquery', 'backbone', 'wp-util', 'jquery-ui-core' ) );
    13801379
    1381                 $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone', 'wp-a11y', 'customize-base' ), false, 1 );
     1380                $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone', 'customize-base' ), false, 1 );
    13821381
    1383                 $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'tags-suggest', 'wp-a11y' ), false, 1 );
     1382                $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 );
    13841383                did_action( 'init' ) && $scripts->localize(
    13851384                        'inline-edit-post',
    13861385                        'inlineEditL10n',
    function wp_default_scripts( $scripts ) { 
    13931392                        )
    13941393                );
    13951394
    1396                 $scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
     1395                $scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery' ), false, 1 );
    13971396                did_action( 'init' ) && $scripts->localize(
    13981397                        'inline-edit-tax',
    13991398                        'inlineEditL10n',
    function wp_default_scripts( $scripts ) { 
    14141413                        )
    14151414                );
    14161415
    1417                 $scripts->add( 'site-health', "/wp-admin/js/site-health$suffix.js", array( 'clipboard', 'jquery', 'wp-util', 'wp-a11y', 'wp-i18n' ), false, 1 );
     1416                $scripts->add( 'site-health', "/wp-admin/js/site-health$suffix.js", array( 'clipboard', 'jquery', 'wp-util', 'wp-i18n' ), false, 1 );
    14181417                $scripts->set_translations( 'site-health' );
    14191418
    1420                 $scripts->add( 'privacy-tools', "/wp-admin/js/privacy-tools$suffix.js", array( 'jquery', 'wp-a11y', 'wp-i18n' ), false, 1 );
     1419                $scripts->add( 'privacy-tools', "/wp-admin/js/privacy-tools$suffix.js", array( 'jquery', 'wp-i18n' ), false, 1 );
    14211420                did_action( 'init' ) && $scripts->localize(
    14221421                        'privacy-tools',
    14231422                        'privacyToolsL10n',
    function wp_default_scripts( $scripts ) { 
    14331432                        )
    14341433                );
    14351434
    1436                 $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util', 'wp-a11y', 'wp-sanitize' ), false, 1 );
     1435                $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util', 'wp-sanitize' ), false, 1 );
    14371436                did_action( 'init' ) && $scripts->localize(
    14381437                        'updates',
    14391438                        '_wpUpdatesSettings',
    function wp_default_scripts( $scripts ) { 
    15411540                        )
    15421541                );
    15431542
    1544                 $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox', 'wp-util', 'wp-a11y' ), false, 1 );
     1543                $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox', 'wp-util' ), false, 1 );
    15451544
    15461545                $scripts->add( 'list-revisions', "/wp-includes/js/wp-list-revisions$suffix.js" );
    15471546