@@ 603-605 (lines=3) @@ | ||
600 | ||
601 | if ( is_array( $field ) ) { |
|
602 | return $field['type'] == 'checkbox' || ( $field['type'] == 'data' && isset($field['data_type']) && $field['data_type'] == 'checkbox' ) || self::is_multiple_select( $field ); |
|
603 | } else { |
|
604 | return $field->type == 'checkbox' || ( $field->type == 'data' && isset( $field->field_options['data_type'] ) && $field->field_options['data_type'] == 'checkbox' ) || self::is_multiple_select($field); |
|
605 | } |
|
606 | } |
|
607 | ||
608 | /** |
|
@@ 617-619 (lines=3) @@ | ||
614 | public static function is_multiple_select( $field ) { |
|
615 | if ( is_array( $field ) ) { |
|
616 | return self::is_option_true( $field, 'multiple' ) && ( ( $field['type'] == 'select' || ( $field['type'] == 'data' && isset( $field['data_type'] ) && $field['data_type'] == 'select') ) ); |
|
617 | } else { |
|
618 | return self::is_option_true( $field, 'multiple' ) && ( ( $field->type == 'select' || ( $field->type == 'data' && isset($field->field_options['data_type'] ) && $field->field_options['data_type'] == 'select') ) ); |
|
619 | } |
|
620 | } |
|
621 | ||
622 | /** |