mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Script loading: Fix regression after [43738].
After [43738], TinyMCE would be loaded earlier than before, which makes filters run at a different time relative to the loading of TinyMCE. Fix this by calling `wp_print_scripts` at the location where TinyMCE would previously be inserted as a `<script>` tag in the page. Also, an TinyMCE translation related `<script>` that was mistakenly removed in [44115]. Props azaozz, omarreiss, swisspidy, atimmer. Merges [43753], [43754] to trunk. Fixes #45065. git-svn-id: https://develop.svn.wordpress.org/trunk@44119 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1441,6 +1441,10 @@ final class _WP_Editors {
|
||||
if ( ! isset( $concatenate_scripts ) ) {
|
||||
script_concat_settings();
|
||||
}
|
||||
|
||||
wp_print_scripts( array( 'wp-tinymce' ) );
|
||||
|
||||
echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user