HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/breeze/views/option-tabs-loader.php
<?php
/**
 * Handles the ajax load for tabs.
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
class Breeze_Tab_Loader {

	function __construct() {
		add_action( 'wp_ajax_breeze_load_options_tab', array( &$this, 'breeze_option_tab_display' ) );
	}

	function breeze_option_tab_display() {
		$accepted_tabs = array(
			'basic',
			'file',
			'preload',
			'advanced',
			'database',
			'cdn',
			'tools',
			'faq',
			'varnish',
			'heartbeat',
			'one-click-optimization',
		);

		$requested_tab = ( isset( $_GET['request_tab'] ) ? $_GET['request_tab'] : 'basic' );

		if ( ! in_array( $requested_tab, $accepted_tabs, true ) || true === breeze_is_restricted_access( true ) ) {
			die( '<h3>The requested tab does not exist</h3>' );
		}
		ob_start();
		Breeze_Admin::render( $requested_tab );
		$html_tab_data = ob_get_contents();
		ob_end_clean();

		// Output trusted admin HTML content from plugin's own render function
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		echo $html_tab_data;
		wp_die();
	}
}

new Breeze_Tab_Loader();