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.

Built from https://develop.svn.wordpress.org/trunk@51037


git-svn-id: http://core.svn.wordpress.org/trunk@50646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
noisysocks 2021-05-27 01:50:57 +00:00
parent abde9678b4
commit 37bef4c2c5
3 changed files with 1 additions and 5 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' );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51035';
$wp_version = '5.8-alpha-51037';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.