Ticket #26526: 26526.2.diff
File 26526.2.diff, 3.1 KB (added by , 11 years ago) |
---|
-
wp-content/themes/twentyfourteen/inc/customizer.php
33 33 // Add the featured content section in case it's not already there. 34 34 $wp_customize->add_section( 'featured_content', array( 35 35 'title' => __( 'Featured Content', 'twentyfourteen' ), 36 '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' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ), 36 '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' ), 37 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), 38 admin_url( 'edit.php?show_sticky=1' ) 39 ), 37 40 'priority' => 130, 38 41 ) ); 39 42 -
wp-content/themes/twentyfourteen/inc/featured-content.php
406 406 public static function customize_register( $wp_customize ) { 407 407 $wp_customize->add_section( 'featured_content', array( 408 408 'title' => __( 'Featured Content', 'twentyfourteen' ), 409 'description' => sprintf( __( 'Use the <a href="%1$s">"featured" tag</a> to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%2$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), admin_url( '/edit.php?tag=featured' ), admin_url( '/edit.php?show_sticky=1' ) ), 409 'description' => sprintf( __( 'Use the <a href="%1$s">$2$s</a> tag to feature your posts. You can change this to a tag of your choice; if no posts match the tag, <a href="%3$s">sticky posts</a> will be displayed instead.', 'twentyfourteen' ), 410 esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ), 411 _x( 'featured', 'featured content default tag', 'twentyfourteen' ), 412 admin_url( 'edit.php?show_sticky=1' ) 413 ), 410 414 'priority' => 130, 411 415 'theme_supports' => 'featured-content', 412 416 ) ); 413 417 414 418 // Add Featured Content settings. 415 419 $wp_customize->add_setting( 'featured-content[tag-name]', array( 416 'default' => 'featured',420 'default' => _x( 'featured', 'featured content default tag', 'twentyfourteen' ), 417 421 'type' => 'option', 418 422 'sanitize_js_callback' => array( __CLASS__, 'delete_transient' ), 419 423 ) ); … … 474 478 'hide-tag' => 1, 475 479 'quantity' => 6, 476 480 'tag-id' => 0, 477 'tag-name' => 'featured',481 'tag-name' => _x( 'featured', 'featured content default tag', 'twentyfourteen' ), 478 482 ); 479 483 480 484 $options = wp_parse_args( $saved, $defaults );