Skip to content

Commit

Permalink
Don't create custom icon cache when debugging
Browse files Browse the repository at this point in the history
It's not used in debugging, so don't create it.
  • Loading branch information
joedolson committed Jul 11, 2024
1 parent b03e4e7 commit 2d38c5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/includes/conditionals.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function mc_is_custom_icon() {
} else {
$return = true;
}
set_transient( 'mc_custom_icons', true, HOUR_IN_SECONDS );
if ( ! WP_DEBUG ) {
set_transient( 'mc_custom_icons', true, HOUR_IN_SECONDS );
}
}
}

Expand Down

0 comments on commit 2d38c5e

Please sign in to comment.