Merge pull request #1099 from jrfnl/feature/fix-code-obfuscation

Code obfuscation: Fix assignment within a condition
This commit is contained in:
David A. Kennedy 2017-06-09 11:23:59 -04:00 committed by GitHub
commit 923d8f1f6a
1 changed files with 2 additions and 1 deletions

View File

@ -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',