Make WordPress Core

Ticket #25869: 25869.patch

File 25869.patch, 1.2 KB (added by rachelbaker, 11 years ago)

Added section descriptions to Background Image and Colors default sections.

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

     
    1919        $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
    2020        $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
    2121
     22        // Add custom description to colors section.
     23        $wp_customize->add_section( 'colors' array(
     24                'title'          => __( 'Colors' ),
     25                'description'    => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
     26                'priority'       => 40,
     27        ) );
     28
     29        // Add custom description to background image section.
     30        $wp_customize->add_section( 'background_image', array(
     31                'title'          => __( 'Background Image', 'twentyfourteen' ),
     32                'description'    => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ),
     33                'theme_supports' => 'custom-background',
     34                'priority'       => 80,
     35        ) );
     36
    2237        // Add the custom accent color setting and control.
    2338        $wp_customize->add_setting( 'accent_color', array(
    2439                'default'           => '#24890d',