mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-23 04:34:41 +00:00
Block Editor: Load TinyMCE inline scripts later.
Previously, the TinyMCE inline scripts were added on the `init` action in the block editor. In the classic editor, however, these scripts are loaded when the TinyMCE window is printed, and some plugins rely on them being loaded later, so they can attach to the appropriate filters. Props pento. Merges [43901] to trunk. Fixes #45338. git-svn-id: https://develop.svn.wordpress.org/trunk@44251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -305,6 +305,7 @@ wp_enqueue_media(
|
||||
'post' => $post->ID,
|
||||
)
|
||||
);
|
||||
wp_tinymce_inline_scripts();
|
||||
wp_enqueue_editor();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user