Skip to content

Commit

Permalink
Fix: phpcs issue on undefined WordPress function
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTorrisi committed Jan 7, 2025
1 parent a010ca4 commit 4348cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/BurstSafetyMode/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use NewfoldLabs\WP\Module\Performance\ResponseHeaderManager;


$newfold_burst_safety_mode = (bool) get_option( 'newfold_burst_safety_mode', false );
$newfold_cache_level = (int) get_option( 'newfold_cache_level', 0 );
$newfold_burst_safety_mode = function_exists( 'get_option' ) ? (bool) get_option( 'newfold_burst_safety_mode', false ) : false;
$newfold_cache_level = function_exists( 'newfold_cache_level' ) ? (int) get_option( 'newfold_cache_level', 0 ) : 0;

// Check if Performance feature is enabled and it's necessary reset the cache options
if ( class_exists( 'NewfoldLabs\WP\Module\Performance\PerformanceFeatureHooks' ) ) {
Expand Down

0 comments on commit 4348cf6

Please sign in to comment.