From 9c0cb095c70e47e0e939481e35fa240a5d8f19c5 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 3 Apr 2017 00:31:18 +0200 Subject: [PATCH] Code obfuscation: Fix assignment within a condition --- inc/template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 7aa07144..978a7bb7 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -84,7 +84,8 @@ endif; * @return bool */ function _s_categorized_blog() { - if ( false === ( $all_the_cool_cats = get_transient( '_s_categories' ) ) ) { + $all_the_cool_cats = get_transient( '_s_categories' ); + if ( false === $all_the_cool_cats ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'fields' => 'ids',