WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/30/2016 06:20:31 PM (3 years ago)
Author:
nbachiyski
Message:

Add nonce to AJAX action for script compression setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r37035 r37143  
    198198            wp_die();
    199199        } elseif ( 'no' == $_GET['test'] ) {
     200            check_ajax_referer( 'update_can_compress_scripts' );
    200201            update_site_option('can_compress_scripts', 0);
    201202        } elseif ( 'yes' == $_GET['test'] ) {
     203            check_ajax_referer( 'update_can_compress_scripts' );
    202204            update_site_option('can_compress_scripts', 1);
    203205        }
Note: See TracChangeset for help on using the changeset viewer.