Twenty Fifteen: adding help text to explain how color changes to header and sidebar are affected by responsive design.
Props iamtakashi, iandstewart, fixes #30165. Built from https://develop.svn.wordpress.org/trunk@30272 git-svn-id: http://core.svn.wordpress.org/trunk@30272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
78c26017c6
commit
c3ec04c532
|
@ -42,8 +42,9 @@ function twentyfifteen_customize_register( $wp_customize ) {
|
|||
) );
|
||||
|
||||
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
|
||||
'label' => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ),
|
||||
'section' => 'colors',
|
||||
'label' => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),
|
||||
'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
|
||||
'section' => 'colors',
|
||||
) ) );
|
||||
|
||||
// Remove the core header textcolor control, as it shares the sidebar text color.
|
||||
|
@ -56,9 +57,13 @@ function twentyfifteen_customize_register( $wp_customize ) {
|
|||
) );
|
||||
|
||||
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
|
||||
'label' => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
|
||||
'section' => 'colors',
|
||||
'label' => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),
|
||||
'description' => esc_html__( 'Only applied to the sidebar on wider screens. On small screens the sidebar will become the header.', 'twentyfifteen' ),
|
||||
'section' => 'colors',
|
||||
) ) );
|
||||
|
||||
// Add an additional description to the header image section.
|
||||
$wp_customize->get_section( 'header_image' )->description = esc_html__( 'Only applied to the sidebar on wide screens. On small screens it will be applied to the header.', 'twentyfifteen' );
|
||||
}
|
||||
add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-alpha-30271';
|
||||
$wp_version = '4.1-alpha-30272';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue