WordPress.org

Make WordPress Core

Ticket #30173: encoding-customizer-twentyfifteen.diff

File encoding-customizer-twentyfifteen.diff, 1.1 KB (added by jeherve, 6 years ago)

Twenty Fifteen: fix encoding issue with color heading in Customizer

  • src/wp-content/themes/twentyfifteen/inc/customizer.php

    diff --git src/wp-content/themes/twentyfifteen/inc/customizer.php src/wp-content/themes/twentyfifteen/inc/customizer.php
    index 89b3b40..83b9ea3 100644
    function twentyfifteen_customize_register( $wp_customize ) { 
    5353        ) );
    5454
    5555        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
    56                 'label'   => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
     56                'label'   => __( 'Header & Sidebar Background Color', 'twentyfifteen' ),
    5757                'section' => 'colors',
    5858        ) ) );
    5959}
    add_action( 'customize_controls_enqueue_scripts', 'twentyfifteen_customize_contr 
    656656function twentyfifteen_customize_preview_js() {
    657657        wp_enqueue_script( 'twentyfifteen-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141005', true );
    658658}
    659 add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' );
    660  No newline at end of file
     659add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' );