Skip to content

Commit 8ef2e91

Browse files
committed
Fix embedded views in other fields
1 parent 3d772f1 commit 8ef2e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ function gravityview_field_output( $passed_args, $context = null ) {
16271627
return '';
16281628
}
16291629

1630-
if ( '' !== $placeholders['value'] && ! empty( $args['wpautop'] ) ) {
1630+
if ( '' !== $placeholders['value'] && ! empty( $args['wpautop'] ) && (isset($field['id']) && $field['id'] !== 'gravityview_view') ) {
16311631
$placeholders['value'] = wpautop( $placeholders['value'] );
16321632
}
16331633

0 commit comments

Comments
 (0)