HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/itself.kauko.lt/wp-content/plugins/jetpack-boost-git/app/lib/class-debug.php
<?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;

		return apply_filters( 'jetpack_boost_debug', $debug );
	}
}