Make WordPress Core


Ignore:
Timestamp:
10/18/2018 01:21:03 PM (6 years ago)
Author:
atimmer
Message:

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.

Props azaozz, omarreiss.
Fixes #45065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-includes/class-wp-editor.php

    r43738 r43753  
    14251425            script_concat_settings();
    14261426        }
     1427
     1428        wp_print_scripts( [ 'wp-tinymce' ] );
    14271429
    14281430        echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
Note: See TracChangeset for help on using the changeset viewer.