|
@@ -22,7 +22,7 @@ discard block |
|
|
block discarded – undo |
|
22
|
22
|
|
|
23
|
23
|
public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
|
24
|
24
|
|
|
25
|
|
- unset( $field_options['search_filter'] ); |
|
|
25
|
+ unset( $field_options[ 'search_filter' ] ); |
|
26
|
26
|
|
|
27
|
27
|
if ( 'edit' === $context ) { |
|
28
|
28
|
return $field_options; |
|
@@ -33,7 +33,7 @@ discard block |
|
|
block discarded – undo |
|
33
|
33
|
$add_options = array(); |
|
34
|
34
|
|
|
35
|
35
|
if ( $field->field->inputType === 'likert' && $field->field->gsurveyLikertEnableScoring ) { |
|
36
|
|
- $add_options['score'] = array( |
|
|
36
|
+ $add_options[ 'score' ] = array( |
|
37
|
37
|
'type' => 'checkbox', |
|
38
|
38
|
'label' => __( 'Show score', 'gravityview' ), |
|
39
|
39
|
'desc' => __( 'Display likert score as a simple number.', 'gravityview' ), |
Please login to merge, or discard this patch.