WordPress.org

Make WordPress Core

Changeset 24935


Ignore:
Timestamp:
07/31/13 20:43:19 (9 months ago)
Author:
nacin
Message:

Twenty Thirteen: Call has_post_format() with the new array style. props obenland, fixes #24905. Merges [24934] to 3.6.

File:
1 edited

Legend:

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

    r24740 r24935  
    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.