mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Editor: Ensure the required assets for the block directory are enqueued.
This fixes an issue where the block directory appears unstyled due to the stylesheets not being enqueued. Props ryelle, timothyblynjacobs, earnjam. Fixes #50661. git-svn-id: https://develop.svn.wordpress.org/trunk@48537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -365,14 +365,13 @@ wp_enqueue_media(
|
||||
);
|
||||
wp_tinymce_inline_scripts();
|
||||
wp_enqueue_editor();
|
||||
wp_enqueue_script( 'wp-block-directory' );
|
||||
|
||||
|
||||
/**
|
||||
* Styles
|
||||
*/
|
||||
wp_enqueue_style( 'wp-edit-post' );
|
||||
wp_enqueue_style( 'wp-format-library' );
|
||||
wp_enqueue_style( 'wp-block-directory' );
|
||||
|
||||
/**
|
||||
* Fires after block assets have been enqueued for the editing interface.
|
||||
|
||||
Reference in New Issue
Block a user