WordPress.org

Plugin Directory

Changeset 762910


Ignore:
Timestamp:
08/27/13 10:31:58 (4 years ago)
Author:
Atomicsmash
Message:

Added empty var fix

Location:
advanced-custom-fields-limiter-field/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • advanced-custom-fields-limiter-field/trunk/acf-limiter.php

    r703730 r762910  
    44Plugin URI: http://wordpress.org/extend/plugins/advanced-custom-fields-limiter-field/ 
    55Description: This field provides a textarea that limits the number of characters the a user can add. The limit is cleanly represented by a jQuery Ui progress bar. You can define the number of characters on a per field basis. 
    6 Version: 1.0.4 
     6Version: 1.0.5 
    77Author: Atomic Smash - David Darke 
    88Author URI: atomicsmash.co.uk 
  • advanced-custom-fields-limiter-field/trunk/limiter-v3.php

    r702510 r762910  
    152152            <td> 
    153153                <?php 
     154                 
     155                // Set to Yes if value isn't set 
     156                if(!isset($field['displayCount'])){ 
     157                    $field['displayCount'] = 1; 
     158                } 
     159                 
    154160                do_action('acf/create_field', array( 
    155161                    'type'  =>  'radio', 
  • advanced-custom-fields-limiter-field/trunk/limiter-v4.php

    r702510 r762910  
    9999            <td> 
    100100                <?php 
     101                 
     102                 
     103                // Set to Yes if value isn't set 
     104                if(!isset($field['displayCount'])){ 
     105                    $field['displayCount'] = 1; 
     106                } 
     107                 
    101108                do_action('acf/create_field', array( 
    102109                    'type'  =>  'radio', 
    103110                    'name'  =>  'fields['.$field['name'].'][displayCount]', 
    104111                    'value' =>  $field['displayCount'], 
    105                     'layout'    =>  'horizontal', 
    106                     'choices' => array('No','Yes') 
     112                    'layout'    =>  'verticle', 
     113                    'choices' => array( 
     114                        1   =>  __("Yes",'acf'), 
     115                        0   =>  __("No",'acf') 
     116                    ) 
    107117                )); 
    108118                ?> 
  • advanced-custom-fields-limiter-field/trunk/readme.txt

    r703730 r762910  
    3939== Changelog == 
    4040 
     41= 1.0.5 = 
     42* Adding empty var fix 
     43 
    4144= 1.0.4 = 
    4245* Bug fixes with jQuery UI 
Note: See TracChangeset for help on using the changeset viewer.