From a528be21adb50581542981b97cd27d8cff02b4d2 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 22 Apr 2014 22:40:33 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@28187 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 022882f3a2..b74e76276e 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -241,11 +241,11 @@ 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__, 'editor_js' ), 50 ); + 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__, 'editor_js' ), 50 ); + add_action( 'wp_print_footer_scripts', array( __CLASS__, 'enqueue_scripts' ), 1 ); } }