Run WP_Editors::enqueue_scripts() on `admin_print_footer_scripts` priority 1 (later), instead of `admin_footer`. Fixes incompatibility with the customizer. Props feedmeastraycat, see #27853, for trunk.
Built from https://develop.svn.wordpress.org/trunk@28187 git-svn-id: http://core.svn.wordpress.org/trunk@28018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
571353164f
commit
c621255236
|
@ -242,10 +242,10 @@ final class _WP_Editors {
|
|||
if ( empty(self::$first_init) ) {
|
||||
if ( is_admin() ) {
|
||||
add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );
|
||||
add_action( 'admin_footer', array( __CLASS__, 'enqueue_scripts'), 1 );
|
||||
add_action( 'admin_print_footer_scripts', array( __CLASS__, 'enqueue_scripts' ), 1 );
|
||||
} else {
|
||||
add_action( 'wp_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );
|
||||
add_action( 'wp_footer', array( __CLASS__, 'enqueue_scripts'), 1 );
|
||||
add_action( 'wp_print_footer_scripts', array( __CLASS__, 'enqueue_scripts' ), 1 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue