Changeset 2085698
- Timestamp:
- 05/11/2019 01:24:19 AM (7 years ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 4 edited
-
cfs.php (modified) (2 diffs)
-
includes/init.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
templates/page_tools.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/cfs.php
r2083730 r2085698 4 4 Plugin URI: http://customfieldsuite.com/ 5 5 Description: Visually add custom fields to your WordPress edit pages. 6 Version: 2.5.1 56 Version: 2.5.16 7 7 Author: Matt Gibbs 8 8 Text Domain: cfs … … 23 23 24 24 // setup variables 25 define( 'CFS_VERSION', '2.5.1 5' );25 define( 'CFS_VERSION', '2.5.16' ); 26 26 define( 'CFS_DIR', dirname( __FILE__ ) ); 27 27 define( 'CFS_URL', plugins_url( '', __FILE__ ) ); -
custom-field-suite/trunk/includes/init.php
r1646166 r2085698 245 245 } 246 246 247 if ( ! check_ajax_referer( 'cfs_admin_nonce', 'nonce', false ) ) { 248 exit; 249 } 250 247 251 $ajax_method = isset( $_POST['action_type'] ) ? $_POST['action_type'] : false; 248 252 … … 268 272 echo $ajax->$ajax_method( $_POST ); 269 273 } 270 271 exit; 272 }274 } 275 276 exit; 273 277 } 274 278 -
custom-field-suite/trunk/readme.txt
r2083730 r2085698 47 47 == Changelog == 48 48 49 = 2.5.16 50 * Fix: added nonce check as an added security measure (props wp.org plugins team) 51 49 52 = 2.5.15 = 50 53 * Fix: prevent possible XSS for logged-in editors or admins (props reddy.io) -
custom-field-suite/trunk/templates/page_tools.php
r1392932 r2085698 22 22 (function($) { 23 23 $(function() { 24 var cfs_nonce = '<?php echo wp_create_nonce( 'cfs_admin_nonce' ); ?>'; 25 24 26 $('.nav-tab').click(function() { 25 27 $('.tab-content').removeClass('active'); … … 35 37 action: 'cfs_ajax_handler', 36 38 action_type: 'export', 39 nonce: cfs_nonce, 37 40 field_groups: $('#export-field-groups').val() 38 41 }, … … 48 51 action: 'cfs_ajax_handler', 49 52 action_type: 'import', 53 nonce: cfs_nonce, 50 54 import_code: $('#import-code').val() 51 55 }, … … 59 63 $.post(ajaxurl, { 60 64 action: 'cfs_ajax_handler', 61 action_type: 'reset' 65 action_type: 'reset', 66 nonce: cfs_nonce 62 67 }, 63 68 function(response) {
Note: See TracChangeset
for help on using the changeset viewer.