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

git-svn-id: http://core.svn.wordpress.org/trunk@24934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-07-31 20:42:38 +00:00
parent bd1d854f10
commit 1b52a6fb36
1 changed files with 4 additions and 1 deletions

View File

@ -361,7 +361,10 @@ if ( ! function_exists( 'twentythirteen_entry_date' ) ) :
* @return string The HTML-formatted post date.
*/
function twentythirteen_entry_date( $echo = true ) {
$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';
if ( has_post_format( array( 'chat', 'status' ) ) )
$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
else
$format_prefix = '%2$s';
$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>',
esc_url( get_permalink() ),