| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/WPCAFE/wp-content/plugins/jetpack-boost/app/lib/ |
Upload File : |
<?php
/**
* Implement debug helper methods.
*
* @link https://automattic.com
* @since 1.0.0
* @package automattic/jetpack-boost
*/
namespace Automattic\Jetpack_Boost\Lib;
/**
* Class Debug
*/
class Debug {
/**
* Returns whether the debug mode has been triggered.
*/
public static function is_debug_mode() {
$script_debug = defined( 'SCRIPT_DEBUG' ) && \SCRIPT_DEBUG;
$manual_debug_mode = filter_input( INPUT_GET, 'jetpack-boost-debug' );
$debug = $script_debug || $manual_debug_mode;
/**
* Filter debug status on/off
*
* @param bool $debug_status enable or disable debug mode.
*
* @since 1.0.0
*/
return apply_filters( 'jetpack_boost_debug', $debug );
}
}