Skip to content

Commit f1a2b73

Browse files
authored
Fix embedded views in other fields (#2149)
- Fixes #2090 - The wpautop function breaks the scripts from Datatables, So I disabled them for all gv views fields in this area 💾 [Build file](https://www.dropbox.com/scl/fi/iwvs16imny6ao0sp0apf2/gravityview-2.28.0-03f043413.zip?rlkey=a1k6wa56fxkovhjvoicpxebw3&dl=1) (03f0434).
2 parents c0f9743 + 18db48c commit f1a2b73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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'] ) && 'gravityview_view' !== ( $field['id'] ?? '' ) ) {
16311631
$placeholders['value'] = wpautop( $placeholders['value'] );
16321632
}
16331633

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h
2727
* Fixed: Clearing search removed all URL query parameters and under some circumstances redirected to the homepage.
2828
* Fixed: Searching the View added duplicate search parameters to the URL.
2929
* Fixed: PHP 8.2 deprecation notice related to dynamic property creation.
30+
* Fixed: Entries not displaying when a DataTables View is embedded in a Single Entry page using the List layout.
3031

3132
= 2.28.0 on August 29, 2024 =
3233

0 commit comments

Comments
 (0)