Changeset 3085968
- Timestamp:
- 05/13/2024 03:30:42 PM (23 months ago)
- Location:
- custom-field-suite/trunk
- Files:
-
- 3 edited
-
cfs.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
templates/field_html.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-field-suite/trunk/cfs.php
r3080330 r3085968 3 3 Plugin Name: Custom Field Suite 4 4 Description: Visually add custom fields to your WordPress edit pages. 5 Version: 2.6. 65 Version: 2.6.7 6 6 Author: Matt Gibbs 7 7 Text Domain: cfs … … 22 22 23 23 // setup variables 24 define( 'CFS_VERSION', '2.6. 6' );24 define( 'CFS_VERSION', '2.6.7' ); 25 25 define( 'CFS_DIR', dirname( __FILE__ ) ); 26 26 define( 'CFS_URL', plugins_url( '', __FILE__ ) ); -
custom-field-suite/trunk/readme.txt
r3080330 r3085968 47 47 == Changelog == 48 48 49 = 2.6.7 = 50 * Reverted some int casting to prevent errors 51 * Refactor coming soon (hopefully) 52 49 53 = 2.6.6 = 50 54 * Even more sanitization (props wp.org team) -
custom-field-suite/trunk/templates/field_html.php
r3080330 r3085968 33 33 </div> 34 34 </label> 35 <input type="text" name="cfs[fields][<?php echo (int)$field->weight; ?>][label]" value="<?php echo empty( $field->id ) ? '' : esc_attr( $field->label ); ?>" />35 <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][label]" value="<?php echo empty( $field->id ) ? '' : esc_attr( $field->label ); ?>" /> 36 36 </td> 37 37 <td class="field_name"> … … 44 44 </div> 45 45 </label> 46 <input type="text" name="cfs[fields][<?php echo (int)$field->weight; ?>][name]" value="<?php echo empty( $field->id ) ? '' : esc_attr( $field->name ); ?>" />46 <input type="text" name="cfs[fields][<?php echo $field->weight; ?>][name]" value="<?php echo empty( $field->id ) ? '' : esc_attr( $field->name ); ?>" /> 47 47 </td> 48 48 <td class="field_type"> 49 49 <label><?php _e( 'Field Type', 'cfs' ); ?></label> 50 <select name="cfs[fields][<?php echo (int)$field->weight; ?>][type]">50 <select name="cfs[fields][<?php echo $field->weight; ?>][type]"> 51 51 <?php foreach ( CFS()->fields as $type ) : ?> 52 52 <?php $selected = ($type->name == $field->type) ? ' selected' : ''; ?> … … 60 60 </tr> 61 61 62 <?php CFS()->fields[ $field->type ]->options_html( (int)$field->weight, $field ); ?>62 <?php CFS()->fields[ $field->type ]->options_html( $field->weight, $field ); ?> 63 63 64 64 <tr class="field_notes"> … … 72 72 </td> 73 73 <td> 74 <textarea name="cfs[fields][<?php echo (int)$field->weight; ?>][notes]"><?php echo esc_textarea( $field->notes ); ?></textarea>74 <textarea name="cfs[fields][<?php echo $field->weight; ?>][notes]"><?php echo esc_textarea( $field->notes ); ?></textarea> 75 75 </td> 76 76 </tr>
Note: See TracChangeset
for help on using the changeset viewer.