Skip to content

Commit 2d38c5e

Browse files
committed
Don't create custom icon cache when debugging
It's not used in debugging, so don't create it.
1 parent b03e4e7 commit 2d38c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/includes/conditionals.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ function mc_is_custom_icon() {
6868
} else {
6969
$return = true;
7070
}
71-
set_transient( 'mc_custom_icons', true, HOUR_IN_SECONDS );
71+
if ( ! WP_DEBUG ) {
72+
set_transient( 'mc_custom_icons', true, HOUR_IN_SECONDS );
73+
}
7274
}
7375
}
7476

0 commit comments

Comments
 (0)