Twenty Twelve: check for empty variable for simpler logic, props jkudish. See #21479.

git-svn-id: http://core.svn.wordpress.org/trunk@21449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-08-06 00:01:32 +00:00
parent b0fd2c6691
commit 9b0ce16eb9
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ function twentytwelve_entry_meta() {
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
if ( '' != $tag_list ) {
$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' );
} elseif ( '' != $categories_list && twentytwelve_is_categorized_site() ) {
} elseif ( ! empty( $categories_list ) && twentytwelve_is_categorized_site() ) {
$utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' );
} else {
$utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' );