WordPress.org

Make WordPress Core

Ticket #43125: 43125.0.diff

File 43125.0.diff, 386 bytes (added by westonruter, 3 years ago)
  • src/wp-includes/widgets/class-wp-widget-text.php

    class WP_Widget_Text extends WP_Widget { 
    400400         */
    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' );
    405406        }