Make WordPress Core

Ticket #29071: 29071.diff

File 29071.diff, 846 bytes (added by ericlewis, 12 years ago)
  • src/wp-includes/theme.php

    diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
    index 85119ed..0f3b5f4 100644
    a b function _wp_customize_include() {  
    19021902                || ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) )
    19031903        ) )
    19041904                return;
     1905        wp_bootstrap_customize_manager();
     1906}
     1907add_action( 'plugins_loaded', '_wp_customize_include' );
    19051908
     1909/**
     1910 * Include the WP_Customize_Manager class and instantiate it into the wp_customize global.
     1911 *
     1912 * @since 4.0.0
     1913 */
     1914function wp_bootstrap_customize_manager() {
    19061915        require( ABSPATH . WPINC . '/class-wp-customize-manager.php' );
    19071916        // Init Customize class
    19081917        $GLOBALS['wp_customize'] = new WP_Customize_Manager;
    19091918}
    1910 add_action( 'plugins_loaded', '_wp_customize_include' );
    19111919
    19121920/**
    19131921 * Adds settings for the customize-loader script.