Make WordPress Core


Ignore:
Timestamp:
11/04/2014 06:41:56 PM (11 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: Simplify the header, sidebar, background controls and make customization faster for users to do. This has the added benefit of fixing our bug where hidden header text wasn't being updated on color scheme switch. Nice.

Props celloexpressions, iamtakashi, fixes #30164 and #29980.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php

    r30208 r30230  
    3636    ) );
    3737
    38     // Add custom sidebar text color setting and control.
     38    // Add custom header and sidebar text color setting and control.
    3939    $wp_customize->add_setting( 'sidebar_textcolor', array(
    4040        'default'           => $color_scheme[4],
     
    4343
    4444    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
    45         'label'   => __( 'Sidebar Text Color', 'twentyfifteen' ),
     45        'label'   => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ),
    4646        'section' => 'colors',
    4747    ) ) );
    4848
    49     // Add custom header background color setting and control.
     49    // Remove the core header textcolor control, as it shares the sidebar text color.
     50    $wp_customize->remove_control( 'header_textcolor' );
     51
     52    // Add custom header and sidebar background color setting and control.
    5053    $wp_customize->add_setting( 'header_background_color', array(
    5154        'default'           => $color_scheme[1],
     
    5457
    5558    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
    56         'label'   => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
     59        'label'   => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
    5760        'section' => 'colors',
    5861    ) ) );
Note: See TracChangeset for help on using the changeset viewer.