Make WordPress Core

Changeset 28187


Ignore:
Timestamp:
04/22/2014 10:40:33 PM (10 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

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

    r28116 r28187  
    242242        if ( empty(self::$first_init) ) {
    243243            if ( is_admin() ) {
    244                 add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js'), 50 );
    245                 add_action( 'admin_footer', array( __CLASS__, 'enqueue_scripts'), 1 );
     244                add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );
     245                add_action( 'admin_print_footer_scripts', array( __CLASS__, 'enqueue_scripts' ), 1 );
    246246            } else {
    247                 add_action( 'wp_print_footer_scripts', array( __CLASS__, 'editor_js'), 50 );
    248                 add_action( 'wp_footer', array( __CLASS__, 'enqueue_scripts'), 1 );
     247                add_action( 'wp_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );
     248                add_action( 'wp_print_footer_scripts', array( __CLASS__, 'enqueue_scripts' ), 1 );
    249249            }
    250250        }
Note: See TracChangeset for help on using the changeset viewer.