mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
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:
parent
c5ac9983b2
commit
9ba06a2cbe
@ -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' );
|
||||
|
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user