Make WordPress Core


Ignore:
Timestamp:
03/30/2016 06:30:40 PM (9 years ago)
Author:
nbachiyski
Message:

Add nonce to AJAX action for script compression setting

Merges [37143] to the 4.4 branch

File:
1 edited

Legend:

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

    r35760 r37144  
    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.