X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41578db67d72562346e4dbb2a14889b23d522813..0f684a09c03e547d3132bddc970cbeafcd1102f4:/wp-includes/class-wp-editor.php?ds=sidebyside diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 022882f3..b74e7627 100644 --- a/wp-includes/class-wp-editor.php +++ b/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 ); } }