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.


git-svn-id: https://develop.svn.wordpress.org/trunk@51037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Robert Anderson 2021-05-27 01:49:27 +00:00
parent c5ac9983b2
commit 9ba06a2cbe
2 changed files with 0 additions and 4 deletions

View File

@ -50,9 +50,7 @@ wp_add_inline_script(
wp_enqueue_script( 'wp-edit-widgets' );
wp_enqueue_script( 'admin-widgets' );
wp_enqueue_script( 'wp-format-library' );
wp_enqueue_style( 'wp-edit-widgets' );
wp_enqueue_style( 'wp-format-library' );
/** This action is documented in edit-form-blocks.php */
do_action( 'enqueue_block_editor_assets' );

View File

@ -861,8 +861,6 @@ final class WP_Customize_Widgets {
wp_enqueue_script( 'wp-customize-widgets' );
wp_enqueue_style( 'wp-customize-widgets' );
wp_enqueue_script( 'wp-format-library' );
wp_enqueue_style( 'wp-format-library' );
/** This action is documented in edit-form-blocks.php */
do_action( 'enqueue_block_editor_assets' );