Code obfuscation: Fix assignment within a condition

This commit is contained in:
jrfnl 2017-04-03 00:31:18 +02:00
parent b330bbaba7
commit 9c0cb095c7
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ endif;
* @return bool * @return bool
*/ */
function _s_categorized_blog() { 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. // Create an array of all the categories that are attached to posts.
$all_the_cool_cats = get_categories( array( $all_the_cool_cats = get_categories( array(
'fields' => 'ids', 'fields' => 'ids',