From 1b52a6fb3677a34e4bf6f14cf5d7caaa34a124b4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 31 Jul 2013 20:42:38 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentythirteen/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index af9049583c..b4234bf1e7 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -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( '', esc_url( get_permalink() ),