Make WordPress Core

Ticket #25444: customize-v2.diff

File customize-v2.diff, 1.8 KB (added by andg, 11 years ago)

Thanks, rzen, your version sounds definitely better!

  • wp-admin/customize.php

    diff --git a/wp-admin/customize.php b/wp-admin/customize.php
    index 6f33708..f7fbbdd 100644
    a b add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20 
    3131add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts'     );
    3232add_action( 'customize_controls_print_styles',         'print_admin_styles', 20 );
    3333
     34/**
     35 * Customize controls initialization, fired before scripts are enqueued.
     36 *
     37 * @since 3.4
     38 */
    3439do_action( 'customize_controls_init' );
    3540
    3641wp_enqueue_script( 'customize-controls' );
    wp_enqueue_style( 'customize-controls' ); 
    3843
    3944wp_enqueue_script( 'accordion' );
    4045
     46/**
     47 * Fires during customizer control scripts enqueue.
     48 *
     49 * @since 3.4
     50 */
    4151do_action( 'customize_controls_enqueue_scripts' );
    4252
    4353// Let's roll.
    $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', ' 
    6676$admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
    6777?><title><?php echo $admin_title; ?></title><?php
    6878
     79/**
     80 * Fired when customizer styles are printed in the page.
     81 *
     82 * @since 3.4
     83 */
    6984do_action( 'customize_controls_print_styles' );
     85
     86/**
     87 * Fired when customizer scripts are printed in the page.
     88 *
     89 * @since 3.4
     90 */
    7091do_action( 'customize_controls_print_scripts' );
    7192?>
    7293</head>
    do_action( 'customize_controls_print_scripts' ); 
    129150        <div id="customize-preview" class="wp-full-overlay-main"></div>
    130151        <?php
    131152
     153        /**
     154         * Fired when customizer scripts are printed in the page's footer.
     155         *
     156         * @since 3.4
     157         */
    132158        do_action( 'customize_controls_print_footer_scripts' );
    133159
    134160        // If the frontend and the admin are served from the same domain, load the