Make WordPress Core


Ignore:
Timestamp:
05/27/2021 01:49:27 AM (3 years ago)
Author:
noisysocks
Message:

Widgets: Remove unnecessary enqueue of 'format-library' assets

It is not necessary to enqueue 'format-library' assets here as this is done when
triggering the 'enqueue_block_editor_assets' action.

Follows [51028].
See #51506.
Props isabel_brison.

File:
1 edited

Legend:

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

    r50996 r51037  
    862862            wp_enqueue_script( 'wp-customize-widgets' );
    863863            wp_enqueue_style( 'wp-customize-widgets' );
    864             wp_enqueue_script( 'wp-format-library' );
    865             wp_enqueue_style( 'wp-format-library' );
    866864
    867865            /** This action is documented in edit-form-blocks.php */
Note: See TracChangeset for help on using the changeset viewer.