Make WordPress Core

Ticket #28504: 28504.twentyfourteen.diff

File 28504.twentyfourteen.diff, 915 bytes (added by celloexpressions, 11 years ago)

Add a custom icon to Twenty Fourteen's "Featured Content" section.

  • src/wp-content/themes/twentyfourteen/inc/customizer.php

     
    3333        // Add the featured content section in case it's not already there.
    3434        $wp_customize->add_section( 'featured_content', array(
    3535                'title'       => __( 'Featured Content', 'twentyfourteen' ),
     36                'icon'        => 'dashicons-star-filled',
    3637                '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' ),
    3738                        esc_url( add_query_arg( 'tag', _x( 'featured', 'featured content default tag slug', 'twentyfourteen' ), admin_url( 'edit.php' ) ) ),
    3839                        admin_url( 'edit.php?show_sticky=1' )