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() ),