Make WordPress Core

Changeset 51037


Ignore:
Timestamp:
05/27/2021 01:49:27 AM (4 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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets-form-blocks.php

    r50997 r51037  
    5151wp_enqueue_script( 'wp-edit-widgets' );
    5252wp_enqueue_script( 'admin-widgets' );
    53 wp_enqueue_script( 'wp-format-library' );
    5453wp_enqueue_style( 'wp-edit-widgets' );
    55 wp_enqueue_style( 'wp-format-library' );
    5654
    5755/** This action is documented in edit-form-blocks.php */
  • 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.