From 5183b18ace3e06643a0b0d676c7f0d31f2f1e549 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 6 Aug 2012 00:01:32 +0000 Subject: [PATCH] Twenty Twelve: check for empty variable for simpler logic, props jkudish. See #21479. git-svn-id: https://develop.svn.wordpress.org/trunk@21449 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index b886af0c40..0a7f25c3b5 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -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' );