Twenty Fourteen: Make featured content in Customizer contextual to the front page.
Props celloexpressions, fixes #29578. Built from https://develop.svn.wordpress.org/trunk@30143 git-svn-id: http://core.svn.wordpress.org/trunk@30143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92536aae65
commit
6ddbf3c8bd
|
@ -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 <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ),
|
||||
'title' => __( 'Featured Content', 'twentyfourteen' ),
|
||||
'description' => sprintf( __( 'Use a <a href="%1$s">tag</a> to feature your posts. If no posts match the tag, <a href="%2$s">sticky posts</a> 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.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-alpha-30142';
|
||||
$wp_version = '4.1-alpha-30143';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue