From 4a460f37791ba206bf8c4ebec4eb16c620fdde06 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 7 Nov 2013 20:37:08 +0000 Subject: [PATCH] Twenty Fourteen: better override for Background and Colors descriptions in Customizer, props obenland. See #25869. Built from https://develop.svn.wordpress.org/trunk@26039 git-svn-id: http://core.svn.wordpress.org/trunk@25968 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyfourteen/inc/customizer.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/wp-content/themes/twentyfourteen/inc/customizer.php b/wp-content/themes/twentyfourteen/inc/customizer.php index 4a453b65c2..031aface34 100644 --- a/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/wp-content/themes/twentyfourteen/inc/customizer.php @@ -19,20 +19,9 @@ function twentyfourteen_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - // Add custom description to colors section. - $wp_customize->add_section( 'colors', array( - 'title' => __( 'Colors', 'twentyfourteen' ), - 'description' => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ), - 'priority' => 40, - ) ); - - // Add custom description to background image section. - $wp_customize->add_section( 'background_image', array( - 'title' => __( 'Background Image', 'twentyfourteen' ), - 'description' => __( 'Background may only be visible on wide screens.', 'twentyfourteen' ), - 'theme_supports' => 'custom-background', - 'priority' => 80, - ) ); + // Add custom description to Colors and Background sections. + $wp_customize->get_section( 'colors' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' ); + $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' ); // Add the custom accent color setting and control. $wp_customize->add_setting( 'accent_color', array(