mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00: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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user