Plugin Directory

Changeset 3085968


Ignore:
Timestamp:
05/13/2024 03:30:42 PM (23 months ago)
Author:
mgibbs189
Message:

CFS 2.6.7

Location:
custom-field-suite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-field-suite/trunk/cfs.php

    r3080330 r3085968  
    33Plugin Name: Custom Field Suite
    44Description: Visually add custom fields to your WordPress edit pages.
    5 Version: 2.6.6
     5Version: 2.6.7
    66Author: Matt Gibbs
    77Text Domain: cfs
     
    2222
    2323        // setup variables
    24         define( 'CFS_VERSION', '2.6.6' );
     24        define( 'CFS_VERSION', '2.6.7' );
    2525        define( 'CFS_DIR', dirname( __FILE__ ) );
    2626        define( 'CFS_URL', plugins_url( '', __FILE__ ) );
  • custom-field-suite/trunk/readme.txt

    r3080330 r3085968  
    4747== Changelog ==
    4848
     49= 2.6.7 =
     50* Reverted some int casting to prevent errors
     51* Refactor coming soon (hopefully)
     52
    4953= 2.6.6 =
    5054* Even more sanitization (props wp.org team)
  • custom-field-suite/trunk/templates/field_html.php

    r3080330 r3085968  
    3333                                        </div>
    3434                                    </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 ); ?>" />
    3636                                </td>
    3737                                <td class="field_name">
     
    4444                                        </div>
    4545                                    </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 ); ?>" />
    4747                                </td>
    4848                                <td class="field_type">
    4949                                    <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]">
    5151                                        <?php foreach ( CFS()->fields as $type ) : ?>
    5252                                        <?php $selected = ($type->name == $field->type) ? ' selected' : ''; ?>
     
    6060                </tr>
    6161
    62                 <?php CFS()->fields[ $field->type ]->options_html( (int) $field->weight, $field ); ?>
     62                <?php CFS()->fields[ $field->type ]->options_html( $field->weight, $field ); ?>
    6363
    6464                <tr class="field_notes">
     
    7272                    </td>
    7373                    <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>
    7575                    </td>
    7676                </tr>
Note: See TracChangeset for help on using the changeset viewer.