Skip to content

Commit bb0623d

Browse files
committed
Update wp_should_output_buffer_template_for_enhancement docs
1 parent 69943b1 commit bb0623d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,10 @@ function wp_should_output_buffer_template_for_enhancement(): bool {
844844
* Filters whether the template should be output-buffered for enhancement.
845845
*
846846
* By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
847-
* added or if a plugin has added a {@see 'wp_send_late_headers'} action. For this default to apply, a filter must
848-
* be added by the time the template is included at the {@see 'wp_before_include_template'} action. This allows
849-
* template responses to be streamed as much as possible when no template enhancements are registered to apply.
850-
* This filter allows a site to opt in to adding such template enhancement filters during the rendering of the
847+
* added or if a plugin has added a {@see 'wp_send_late_headers'} action. For this default to apply, either of the
848+
* hooks must be added by the time the template is included at the {@see 'wp_before_include_template'} action. This
849+
* allows template responses to be streamed unless the there is code which depends on an output buffer being opened.
850+
* This filter allows a site to opt in to adding such template enhancement filters later during the rendering of the
851851
* template.
852852
*
853853
* @since 6.9.0

0 commit comments

Comments
 (0)