: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// phpcs:disable WordPress.Security.NonceVerification.Recommended
function wpsc_preload_notification_scripts() {
isset( $_GET['page'] ) && $_GET['page'] === 'wpsupercache' &&
isset( $_GET['tab'] ) && $_GET['tab'] === 'preload'
plugins_url( '/js/preload-notification.js', __DIR__ ),
array( 'jquery', 'wp-i18n' ),
'ajax_url' => admin_url( 'admin-ajax.php' ),
'preload_status' => wpsc_get_preload_status( true ),
add_action( 'admin_footer', 'wpsc_preload_notification_scripts' );