Skip to content

Commit 9597e17

Browse files
author
Antti Kuosmanen
committed
Use a textfield to display values with newlines
1 parent d8f349f commit 9597e17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-cpt-wplf-submission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function metabox_submission() {
185185
<?php $value = $postmeta[ $field ][0]; ?>
186186
<tr>
187187
<th><strong><?php echo $field; ?></strong></th>
188-
<?php if( strlen( $value ) > 60 ) : ?>
188+
<?php if( strlen( $value ) > 60 || strpos( $value, "\n" ) ) : ?>
189189
<td><textarea style="width:100%" readonly><?php echo $value; ?></textarea></td>
190190
<?php else : ?>
191191
<td><input style="width:100%" type="text" value="<?php echo $value; ?>" readonly></td>

0 commit comments

Comments
 (0)