Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2096,9 +2096,14 @@ function wpsc_config_file_notices() {
}
add_action( 'admin_notices', 'wpsc_config_file_notices' );
function wpsc_dismiss_indexhtml_warning() {
check_ajax_referer( "wpsc-index-dismiss" );
update_site_option( 'wp_super_cache_index_detected', 3 );
die( 0 );
check_ajax_referer( 'wpsc-index-dismiss' );

if ( ! current_user_can( 'manage_options' ) ) {
wp_send_json_error( null, 403 );
}

update_site_option( 'wp_super_cache_index_detected', 3 );
die( 0 );
}
add_action( 'wp_ajax_wpsc-index-dismiss', 'wpsc_dismiss_indexhtml_warning' );

Expand Down
Loading