Changeset 2083730
- Timestamp:
- 05/08/2019 03:11:41 PM (7 years ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 5 edited
-
assets/js/fields.js (modified) (3 diffs)
-
cfs.php (modified) (2 diffs)
-
includes/form.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
templates/field_html.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/assets/js/fields.js
r1581223 r2083730 102 102 103 103 // browser autofill support 104 $(this).closest('.field').find('.field_meta .field_label a'). html(val);104 $(this).closest('.field').find('.field_meta .field_label a').text(val); 105 105 106 106 var name = $(this).closest('tr').find('.field_name input'); … … 118 118 var $this = $(this); 119 119 setTimeout(function() { 120 $this.closest('.field').find('.field_meta .field_label a'). html($this.val());120 $this.closest('.field').find('.field_meta .field_label a').text($this.val()); 121 121 }, 1); 122 122 }); … … 124 124 $(document).on('keyup', '.field_form .field_name input', function() { 125 125 var val = jQuery(this).val(); 126 $(this).closest('.field').find('.field_meta .field_name'). html(val);126 $(this).closest('.field').find('.field_meta .field_name').text(val); 127 127 }); 128 128 }); -
custom-field-suite/trunk/cfs.php
r2062232 r2083730 4 4 Plugin URI: http://customfieldsuite.com/ 5 5 Description: Visually add custom fields to your WordPress edit pages. 6 Version: 2.5.1 46 Version: 2.5.15 7 7 Author: Matt Gibbs 8 8 Text Domain: cfs … … 23 23 24 24 // setup variables 25 define( 'CFS_VERSION', '2.5.1 4' );25 define( 'CFS_VERSION', '2.5.15' ); 26 26 define( 'CFS_DIR', dirname( __FILE__ ) ); 27 27 define( 'CFS_URL', plugins_url( '', __FILE__ ) ); -
custom-field-suite/trunk/includes/form.php
r1701908 r2083730 392 392 393 393 <?php if ( ! empty( $field->label ) ) : ?> 394 <label><?php echo $field->label; ?></label>394 <label><?php echo esc_html( $field->label ); ?></label> 395 395 <?php endif; ?> 396 396 397 397 <?php if ( ! empty( $field->notes ) ) : ?> 398 <p class="notes"><?php echo $field->notes; ?></p>398 <p class="notes"><?php echo esc_html( $field->notes ); ?></p> 399 399 <?php endif; ?> 400 400 -
custom-field-suite/trunk/readme.txt
r2062232 r2083730 3 3 Tags: custom fields, fields, postmeta, relationship, repeater, file upload 4 4 Requires at least: 4.9 5 Tested up to: 5. 1.15 Tested up to: 5.2 6 6 Stable tag: trunk 7 7 License: GPLv2 … … 47 47 == Changelog == 48 48 49 = 2.5.15 = 50 * Fix: prevent possible XSS for logged-in editors or admins (props reddy.io) 51 49 52 = 2.5.14 = 50 53 * Fix: PHP notice introduced in 2.5.13 -
custom-field-suite/trunk/templates/field_html.php
r1701908 r2083730 7 7 </td> 8 8 <td class="field_label"> 9 <a class="cfs_edit_field row-title"><?php echo $field->label; ?></a>9 <a class="cfs_edit_field row-title"><?php echo esc_html( $field->label ); ?></a> 10 10 </td> 11 11 <td class="field_name"> 12 <?php echo $field->name; ?>12 <?php echo esc_html( $field->name ); ?> 13 13 </td> 14 14 <td class="field_type"> 15 <a class="cfs_edit_field"><?php echo $field->type; ?></a>15 <a class="cfs_edit_field"><?php echo esc_html( $field->type ); ?></a> 16 16 </td> 17 17 </tr>
Note: See TracChangeset
for help on using the changeset viewer.