HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/jennysmasks.com/wp-content/plugins/wp-super-cache/inc/preload-notification.php
<?php

// phpcs:disable WordPress.Security.NonceVerification.Recommended

function wpsc_preload_notification_scripts() {
	if (
		isset( $_GET['page'] ) && $_GET['page'] === 'wpsupercache' &&
		isset( $_GET['tab'] ) && $_GET['tab'] === 'preload'
	) {
		wp_enqueue_script(
			'preload-notification',
			plugins_url( '/js/preload-notification.js', __DIR__ ),
			array( 'jquery', 'wp-i18n' ),
			WPSC_VERSION_ID,
			true
		);

		wp_localize_script(
			'preload-notification',
			'wpsc_preload_ajax',
			array(
				'ajax_url'       => admin_url( 'admin-ajax.php' ),
				'preload_status' => wpsc_get_preload_status( true ),
			)
		);
	}
}

add_action( 'admin_footer', 'wpsc_preload_notification_scripts' );