| Server IP : 216.238.66.20 / Your IP : 216.73.216.199 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/plugins/wp-super-cache/inc/ |
Upload File : |
<?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' ),
'nonce' => wp_create_nonce( 'wpsc-get-preload-status' ),
'preload_status' => wpsc_get_preload_status( true ),
)
);
}
}
add_action( 'admin_footer', 'wpsc_preload_notification_scripts' );