diff --git a/includes/fields/class-acf-field-wysiwyg.php b/includes/fields/class-acf-field-wysiwyg.php index 367e295a..6617645d 100644 --- a/includes/fields/class-acf-field-wysiwyg.php +++ b/includes/fields/class-acf-field-wysiwyg.php @@ -428,12 +428,15 @@ function format_value( $value, $post_id, $field ) { return $value; } + + if ( is_string( $value ) ) { - // apply filters - $value = apply_filters( 'acf_the_content', $value ); + // apply filters + $value = apply_filters( 'acf_the_content', $value ); - // follow the_content function in /wp-includes/post-template.php - $value = str_replace( ']]>', ']]>', $value ); + // follow the_content function in /wp-includes/post-template.php + $value = str_replace( ']]>', ']]>', $value ); + } return $value; }