Make WordPress Core

Changeset 30143


Ignore:
Timestamp:
11/01/2014 03:25:43 AM (10 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: Make featured content in Customizer contextual to the front page.

Props celloexpressions, fixes #29578.

File:
1 edited

Legend:

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

    r29903 r30143  
    3838    // Add the featured content section in case it's not already there.
    3939    $wp_customize->add_section( 'featured_content', array(
    40         'title'       => __( 'Featured Content', 'twentyfourteen' ),
    41         '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' ),
     40        'title'           => __( 'Featured Content', 'twentyfourteen' ),
     41        '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' ),
    4242            esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
    4343            admin_url( 'edit.php?show_sticky=1' )
    4444        ),
    45         'priority'    => 130,
     45        'priority'        => 130,
     46        'active_callback' => 'is_front_page',
    4647    ) );
    4748
Note: See TracChangeset for help on using the changeset viewer.