From cbe8e288d48099120efeea94b5b8dc006122fc99 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Sat, 1 Nov 2014 03:25:43 +0000 Subject: [PATCH] Twenty Fourteen: Make featured content in Customizer contextual to the front page. Props celloexpressions, fixes #29578. git-svn-id: https://develop.svn.wordpress.org/trunk@30143 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfourteen/inc/customizer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index bd5367747d..78a667f08a 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfourteen/inc/customizer.php @@ -37,12 +37,13 @@ function twentyfourteen_customize_register( $wp_customize ) { // Add the featured content section in case it's not already there. $wp_customize->add_section( 'featured_content', array( - 'title' => __( 'Featured Content', 'twentyfourteen' ), - 'description' => sprintf( __( 'Use a tag to feature your posts. If no posts match the tag, sticky posts will be displayed instead.', 'twentyfourteen' ), + 'title' => __( 'Featured Content', 'twentyfourteen' ), + 'description' => sprintf( __( 'Use a tag to feature your posts. If no posts match the tag, sticky posts will be displayed instead.', 'twentyfourteen' ), esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), admin_url( 'edit.php?show_sticky=1' ) ), - 'priority' => 130, + 'priority' => 130, + 'active_callback' => 'is_front_page', ) ); // Add the featured content layout setting and control.