Changeset 37143
- Timestamp:
- 03/30/2016 06:20:31 PM (9 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r37035 r37143 198 198 wp_die(); 199 199 } elseif ( 'no' == $_GET['test'] ) { 200 check_ajax_referer( 'update_can_compress_scripts' ); 200 201 update_site_option('can_compress_scripts', 0); 201 202 } elseif ( 'yes' == $_GET['test'] ) { 203 check_ajax_referer( 'update_can_compress_scripts' ); 202 204 update_site_option('can_compress_scripts', 1); 203 205 } -
trunk/src/wp-admin/includes/template.php
r36698 r37143 1790 1790 ?> 1791 1791 <script type="text/javascript"> 1792 var compressionNonce = <?php echo wp_json_encode( wp_create_nonce( 'update_can_compress_scripts' ) ); ?>; 1792 1793 var testCompression = { 1793 1794 get : function(test) { … … 1809 1810 }; 1810 1811 1811 x.open('GET', ajaxurl + '?action=wp-compression-test&test='+test+'& '+(new Date()).getTime(), true);1812 x.open('GET', ajaxurl + '?action=wp-compression-test&test='+test+'&_ajax_nonce='+compressionNonce+'&'+(new Date()).getTime(), true); 1812 1813 x.send(''); 1813 1814 }
Note: See TracChangeset
for help on using the changeset viewer.