Skip to content

Commit 5f98c6b

Browse files
committed
gw-capitilize-submitted-data.php: Added support to capitalize list fields.
1 parent 63b5461 commit 5f98c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-capitilize-submitted-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function gw_capitalize_submitted_data( $form ) {
2828
}
2929
} else {
3030
$input_key = sprintf( 'input_%s', $field['id'] );
31-
if ( is_array( $_POST[ $input_key ] ) ) {
31+
if ( $field->type == 'list' ) {
3232
$_POST[ $input_key ] = array_map( function( $value ) {
3333
return ucwords( strtolower( $value ) );
3434
}, $_POST[ $input_key ] );

0 commit comments

Comments
 (0)