WordPress.org

Forums

KC Settings
[resolved] Radio Box returns checked="true" on both (2 posts)

  1. if6was9design
    Member
    Posted 2 years ago #

    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/

  2. Dzikri Aziz
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the late reply and thank you for the bug report!

    It's been fixed in version 2.8.2 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.