Make WordPress Core


Ignore:
Timestamp:
12/16/2014 08:32:03 PM (12 years ago)
Author:
johnbillion
Message:

Twenty Fifteen: Don't escape translated strings.

Replace every unnecessary instance of esc_html__() and esc_html_e() with just __() and _e().

Merges [30896] to the 4.1 branch.

see #30724.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

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

    r30814 r30924  
    3434
    3535        $wp_customize->add_control( 'color_scheme', array(
    36                 'label'    => esc_html__( 'Base Color Scheme', 'twentyfifteen' ),
     36                'label'    => __( 'Base Color Scheme', 'twentyfifteen' ),
    3737                'section'  => 'colors',
    3838                'type'     => 'select',
     
    4949
    5050        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
    51                 'label'       => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),
    52                 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),
     51                'label'       => __( 'Header and Sidebar Text Color', 'twentyfifteen' ),
     52                'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),
    5353                'section'     => 'colors',
    5454        ) ) );
     
    6565
    6666        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
    67                 'label'       => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),
    68                 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),
     67                'label'       => __( 'Header and Sidebar Background Color', 'twentyfifteen' ),
     68                'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),
    6969                'section'     => 'colors',
    7070        ) ) );
    7171
    7272        // Add an additional description to the header image section.
    73         $wp_customize->get_section( 'header_image' )->description = esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' );
     73        $wp_customize->get_section( 'header_image' )->description = __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' );
    7474}
    7575add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
     
    9595        return apply_filters( 'twentyfifteen_color_schemes', array(
    9696                'default' => array(
    97                         'label'  => esc_html__( 'Default', 'twentyfifteen' ),
     97                        'label'  => __( 'Default', 'twentyfifteen' ),
    9898                        'colors' => array(
    9999                                '#f1f1f1',
     
    106106                ),
    107107                'dark'    => array(
    108                         'label'  => esc_html__( 'Dark', 'twentyfifteen' ),
     108                        'label'  => __( 'Dark', 'twentyfifteen' ),
    109109                        'colors' => array(
    110110                                '#111111',
     
    117117                ),
    118118                'yellow'  => array(
    119                         'label'  => esc_html__( 'Yellow', 'twentyfifteen' ),
     119                        'label'  => __( 'Yellow', 'twentyfifteen' ),
    120120                        'colors' => array(
    121121                                '#f4ca16',
     
    128128                ),
    129129                'pink'    => array(
    130                         'label'  => esc_html__( 'Pink', 'twentyfifteen' ),
     130                        'label'  => __( 'Pink', 'twentyfifteen' ),
    131131                        'colors' => array(
    132132                                '#ffe5d1',
     
    139139                ),
    140140                'purple'  => array(
    141                         'label'  => esc_html__( 'Purple', 'twentyfifteen' ),
     141                        'label'  => __( 'Purple', 'twentyfifteen' ),
    142142                        'colors' => array(
    143143                                '#674970',
     
    150150                ),
    151151                'blue'   => array(
    152                         'label'  => esc_html__( 'Blue', 'twentyfifteen' ),
     152                        'label'  => __( 'Blue', 'twentyfifteen' ),
    153153                        'colors' => array(
    154154                                '#e9f2f9',
Note: See TracChangeset for help on using the changeset viewer.