Make WordPress Core

Changeset 26039


Ignore:
Timestamp:
11/07/2013 08:36:09 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: better override for Background and Colors descriptions in Customizer, props obenland. See #25869.

File:
1 edited

Legend:

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

    r26038 r26039  
    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',  'twentyfourteen' ),
    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     ) );
     22    // Add custom description to Colors and Background sections.
     23    $wp_customize->get_section( 'colors' )->description     = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
     24    $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
    3625
    3726    // Add the custom accent color setting and control.
Note: See TracChangeset for help on using the changeset viewer.