WordPress.org

Make WordPress Core

Changeset 24934


Ignore:
Timestamp:
07/31/2013 08:42:38 PM (5 years ago)
Author:
nacin
Message:

Twenty Thirteen: Call has_post_format() with the new array style. props obenland, fixes #24905.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r24740 r24934  
    362362 */
    363363function twentythirteen_entry_date( $echo = true ) {
    364     $format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ): '%2$s';
     364    if ( has_post_format( array( 'chat', 'status' ) ) )
     365        $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
     366    else
     367        $format_prefix = '%2$s';
    365368
    366369    $date = sprintf( '<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>',
Note: See TracChangeset for help on using the changeset viewer.