WordPress.org

Make WordPress Core

Changeset 42545


Ignore:
Timestamp:
01/22/2018 07:24:02 PM (3 years ago)
Author:
westonruter
Message:

Widgets: Ensure media is explicitly enqueued from Text widget in case Media widgets are unregistered.

Amends [41344].
See #40854.
Fixes #43125.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r42343 r42545  
    401401    public function enqueue_admin_scripts() {
    402402        wp_enqueue_editor();
     403        wp_enqueue_media();
    403404        wp_enqueue_script( 'text-widgets' );
    404405        wp_add_inline_script( 'text-widgets', 'wp.textWidgets.init();', 'after' );
Note: See TracChangeset for help on using the changeset viewer.