WordPress.org

Make WordPress Core

Changeset 47353


Ignore:
Timestamp:
02/24/2020 11:05:14 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Accessibility: Widgets: Restore missing string in script loader.

The string was previously added in [42794] and accidentally removed in [44163].

Props garrett-eclipse, audrasjb.
Fixes #49505.

File:
1 edited

Legend:

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

    r47352 r47353  
    13531353        $scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ) );
    13541354
    1355         $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 );
     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 );
    13561356        did_action( 'init' ) && $scripts->add_inline_script(
    13571357            'admin-widgets',
     
    13601360                wp_json_encode(
    13611361                    array(
    1362                         'save'      => __( 'Save' ),
    1363                         'saved'     => __( 'Saved' ),
    1364                         'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ),
     1362                        'save'        => __( 'Save' ),
     1363                        'saved'       => __( 'Saved' ),
     1364                        'saveAlert'   => __( 'The changes you made will be lost if you navigate away from this page.' ),
     1365                        'widgetAdded' => __( 'Widget has been added to the selected sidebar' ),
    13651366                    )
    13661367                )
Note: See TracChangeset for help on using the changeset viewer.