WordPress.org

Make WordPress Core

Ticket #25540: 25540.simple.diff

File 25540.simple.diff, 1.0 KB (added by celloexpressions, 4 years ago)

Remove the header text color control from the customizer, update function docs.

  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    88 
    99/** 
    1010 * Add postMessage support for site title and description for the Theme Customizer. 
     11 * Remove the header text color control, as it isn't very useful considering the solid background color. 
     12 * Add the setting and control for the custom accent color option. 
    1113 * 
    1214 * @param WP_Customize_Manager $wp_customize Theme Customizer object. 
    1315 */ 
     
    1416function twentyfourteen_customize_register( $wp_customize ) { 
    1517        $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage'; 
    1618        $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 
     19         
     20        $wp_customize->remove_control( 'header_textcolor' ); 
    1721 
    1822        $wp_customize->add_setting( 'accent_color', array( 
    1923                'default'           => '#24890d',