HEX
Server: LiteSpeed
System: Linux onyx.7ho.st 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: atiscoir (1242)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/atiscoir/public_html/wp-content/plugins/popup-maker/classes/Controllers/Debug.php
<?php
/**
 * Debug class
 *
 * @package   PopupMaker
 * @copyright Copyright (c) 2024, Code Atlantic LLC
 */

namespace PopupMaker\Controllers;

use PopupMaker\Plugin\Controller;

defined( 'ABSPATH' ) || exit;

/**
 * Debug controller class.
 *
 * @package PopupMaker\Controllers\Debug
 */
class Debug extends Controller {

	/**
	 * Initialize admin controller.
	 */
	public function init() {
		if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
			return;
		}

		if ( ! defined( 'POPUP_MAKER_DEBUG' ) || ! POPUP_MAKER_DEBUG ) {
			return;
		}

		add_action( 'admin_head', [ $this, 'admin_head' ], 0 );
	}

	/**
	 * Enqueue admin assets.
	 */
	public function admin_head() {
		// phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript ?>
		<script crossOrigin="anonymous" src="//unpkg.com/react-scan/dist/auto.global.js" />
		<?php
	}
}