Skip to content

Commit 5d65335

Browse files
committed
gw-merge-tag-modifier-sentence.php: Fixed issue where values that contained commas could break the sentence formatting.
1 parent b804072 commit 5d65335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-merge-tag-modifier-sentence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
return $value;
2626
}
2727

28-
$values = array_map( 'trim', explode( ',', $value ) );
28+
$values = array_filter( array_map( 'trim', $raw_values ) );
2929
$count = count( $values );
3030

3131
if ( $count > 1 ) {

0 commit comments

Comments
 (0)