WordPress.org

Plugin Directory

Changeset 1494624


Ignore:
Timestamp:
09/12/16 16:08:00 (15 months ago)
Author:
kovshenin
Message:

Sync with GitHub master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • camptix/trunk/camptix.php

    r1490436 r1494624  
    41414141    function question_field_checkbox( $name, $user_value, $question ) { 
    41424142        $values = get_post_meta( $question->ID, 'tix_values', true ); 
     4143        $user_value_esc = array_map( 'esc_attr', (array) $user_value ); 
    41434144        ?> 
    41444145        <?php if ( $values ) : ?> 
     
    41464147                <label> 
    41474148                    <input 
    4148                         <?php checked( in_array( $question_value, (array) $user_value ) ); ?> 
     4149                        <?php checked( in_array( $question_value, array_merge( (array) $user_value, array_values( $user_value_esc ) ) ) ); ?> 
    41494150                        name="<?php echo esc_attr( $name ); ?>[<?php echo esc_attr( sanitize_title_with_dashes( $question_value ) ); ?>]" 
    41504151                        type="checkbox" 
Note: See TracChangeset for help on using the changeset viewer.