Make WordPress Core


Ignore:
Timestamp:
11/05/2013 09:51:03 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: add Audio post format support. Props celloexpressions, closes #25807.

File:
1 edited

Legend:

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

    r25979 r26020  
    33 * Custom Widget for displaying specific post formats
    44 *
    5  * Displays posts from Aside, Quote, Video, Image, Gallery, and Link formats.
     5 * Displays posts from Aside, Quote, Video, Audio, Image, Gallery, and Link formats.
    66 *
    77 * @link http://codex.wordpress.org/Widgets_API#Developing_Widgets
     
    2121     * @var array
    2222     */
    23     private $formats = array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' );
     23    private $formats = array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery' );
    2424
    2525    /**
     
    4242        parent::__construct( 'widget_twentyfourteen_ephemera', __( 'Twenty Fourteen Ephemera', 'twentyfourteen' ), array(
    4343            'classname'   => 'widget_twentyfourteen_ephemera',
    44             'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Image, Gallery, and Link posts', 'twentyfourteen' ),
     44            'description' => __( 'Use this widget to list your recent Aside, Quote, Video, Audio, Image, Gallery, and Link posts', 'twentyfourteen' ),
    4545        ) );
    4646
    4747        /*
    48          * @todo http://core.trac.wordpress.org/ticket/23257
     48         * @todo http://core.trac.wordpress.org/ticket/23257: Add plural versions of Post Format strings
    4949         */
    5050        $this->format_strings = array(
     
    5252            'image'   => __( 'Images',    'twentyfourteen' ),
    5353            'video'   => __( 'Videos',    'twentyfourteen' ),
     54            'audio'   => __( 'Audio',     'twentyfourteen' ),
    5455            'quote'   => __( 'Quotes',    'twentyfourteen' ),
    5556            'link'    => __( 'Links',     'twentyfourteen' ),
Note: See TracChangeset for help on using the changeset viewer.