Support » Plugin: KC Settings » Radio Box returns checked="true" on both

  • Resolved if6was9design

    (@if6was9design)


    Created a simple yes/no radio box to tell if page needs support for custom gallery layout, but as you can see below, both return an array for current with value of 1 for true. so the last html element becomes true even if the in the database the other value is selected.

    Array
    (
        [type] => radio
        [attr] => Array
            (
                [name] => kc-postmeta[gallery][gallery_true]
                [class] => kcs-radio
            )
    
        [current] => Array
            (
                [0] => 1
            )
    
        [options] => Array
            (
                [0] => Array
                    (
                        [value] => 1
                        [label] => Yes
                    )
    
                [1] => Array
                    (
                        [value] => 0
                        [label] => No
                    )
    
            )
    
        [check_sep] => Array
            (
                [0] =>
                [1] => <br />
            )
    
    )
    
    <label class="kcs-check kcs-radio"><input type="radio" value="1" name="kc-postmeta[gallery][gallery_true]" class="kcs-radio" checked="true"> Yes</label>
    
    <label class="kcs-check kcs-radio"><input type="radio" value="0" name="kc-postmeta[gallery][gallery_true]" class="kcs-radio" checked="true"> No</label>

    http://wordpress.org/extend/plugins/kc-settings/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Radio Box returns checked="true" on both’ is closed to new replies.