WordPress.org

Plugin Directory

Changeset 658175


Ignore:
Timestamp:
01/24/13 17:41:26 (15 months ago)
Author:
aaroncampbell
Message:

Make sure all checkbox fields have hidden defaults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • twitter-widget-pro/trunk/wp-twitter-widget.php

    r618401 r658175  
    9797            </p> 
    9898            <p> 
     99                <input type="hidden" value="false" name="<?php echo $this->get_field_name( 'hidereplies' ); ?>" /> 
    99100                <input class="checkbox" type="checkbox" value="true" id="<?php echo $this->get_field_id( 'hidereplies' ); ?>" name="<?php echo $this->get_field_name( 'hidereplies' ); ?>"<?php checked( $instance['hidereplies'], 'true' ); ?> /> 
    100101                <label for="<?php echo $this->get_field_id( 'hidereplies' ); ?>"><?php _e( 'Hide @replies', $this->_slug ); ?></label> 
    101102            </p> 
    102103            <p> 
     104                <input type="hidden" value="false" name="<?php echo $this->get_field_name( 'hidefrom' ); ?>" /> 
    103105                <input class="checkbox" type="checkbox" value="true" id="<?php echo $this->get_field_id( 'hidefrom' ); ?>" name="<?php echo $this->get_field_name( 'hidefrom' ); ?>"<?php checked( $instance['hidefrom'], 'true' ); ?> /> 
    104106                <label for="<?php echo $this->get_field_id( 'hidefrom' ); ?>"><?php _e( 'Hide sending applications', $this->_slug ); ?></label> 
     
    139141            </p> 
    140142            <p> 
     143                <input type="hidden" value="false" name="<?php echo $this->get_field_name( 'targetBlank' ); ?>" /> 
    141144                <input class="checkbox" type="checkbox" value="true" id="<?php echo $this->get_field_id( 'targetBlank' ); ?>" name="<?php echo $this->get_field_name( 'targetBlank' ); ?>"<?php checked( $instance['targetBlank'], 'true' ); ?> /> 
    142145                <label for="<?php echo $this->get_field_id( 'targetBlank' ); ?>"><?php _e( 'Open links in a new window', $this->_slug ); ?></label> 
    143146            </p> 
    144147            <p> 
     148                <input type="hidden" value="false" name="<?php echo $this->get_field_name( 'showXavisysLink' ); ?>" /> 
    145149                <input class="checkbox" type="checkbox" value="true" id="<?php echo $this->get_field_id( 'showXavisysLink' ); ?>" name="<?php echo $this->get_field_name( 'showXavisysLink' ); ?>"<?php checked( $instance['showXavisysLink'], 'true' ); ?> /> 
    146150                <label for="<?php echo $this->get_field_id( 'showXavisysLink' ); ?>"><?php _e( 'Show Link to Twitter Widget Pro', $this->_slug ); ?></label> 
     
    429433                            <label for="twp_showretweets"><?php _e( 'Include retweets', $this->_slug ); ?></label> 
    430434                            <br /> 
     435                            <input type="hidden" value="false" name="twp[hidereplies]" /> 
    431436                            <input class="checkbox" type="checkbox" value="true" id="twp_hidereplies" name="twp[hidereplies]"<?php checked( $this->_settings['twp']['hidereplies'], 'true' ); ?> /> 
    432437                            <label for="twp_hidereplies"><?php _e( 'Hide @replies', $this->_slug ); ?></label> 
    433438                            <br /> 
     439                            <input type="hidden" value="false" name="twp[hidefrom]" /> 
    434440                            <input class="checkbox" type="checkbox" value="true" id="twp_hidefrom" name="twp[hidefrom]"<?php checked( $this->_settings['twp']['hidefrom'], 'true' ); ?> /> 
    435441                            <label for="twp_hidefrom"><?php _e( 'Hide sending applications', $this->_slug ); ?></label> 
     
    443449                            <label for="twp_showfollow"><?php _e( 'Show Follow Link', $this->_slug ); ?></label> 
    444450                            <br /> 
     451                            <input type="hidden" value="false" name="twp[targetBlank]" /> 
    445452                            <input class="checkbox" type="checkbox" value="true" id="twp_targetBlank" name="twp[targetBlank]"<?php checked( $this->_settings['twp']['targetBlank'], 'true' ); ?> /> 
    446453                            <label for="twp_targetBlank"><?php _e( 'Open links in a new window', $this->_slug ); ?></label> 
    447454                            <br /> 
     455                            <input type="hidden" value="false" name="twp[showXavisysLink" /> 
    448456                            <input class="checkbox" type="checkbox" value="true" id="twp_showXavisysLink" name="twp[showXavisysLink]"<?php checked( $this->_settings['twp']['showXavisysLink'], 'true' ); ?> /> 
    449457                            <label for="twp_showXavisysLink"><?php _e( 'Show Link to Twitter Widget Pro', $this->_slug ); ?></label> 
Note: See TracChangeset for help on using the changeset viewer.