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. Built from https://develop.svn.wordpress.org/trunk@44119 git-svn-id: http://core.svn.wordpress.org/trunk@43949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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