@@ -844,8 +844,8 @@ 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 'send_late_headers '} action. For this default to apply, a filter must be
848- * added by the time the template is included at the {@see 'wp_before_include_template'} action. This allows
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
849849 * template responses to be streamed as much as possible when no template enhancements are registered to apply.
850850 * This filter allows a site to opt in to adding such template enhancement filters during the rendering of the
851851 * template.
@@ -854,7 +854,7 @@ function wp_should_output_buffer_template_for_enhancement(): bool {
854854 *
855855 * @param bool $use_output_buffer Whether an output buffer is started.
856856 */
857- return (bool ) apply_filters ( 'wp_should_output_buffer_template_for_enhancement ' , has_filter ( 'wp_template_enhancement_output_buffer ' ) || has_action ( 'send_late_headers ' ) );
857+ return (bool ) apply_filters ( 'wp_should_output_buffer_template_for_enhancement ' , has_filter ( 'wp_template_enhancement_output_buffer ' ) || has_action ( 'wp_send_late_headers ' ) );
858858}
859859
860860/**
@@ -989,7 +989,7 @@ function wp_finalize_template_enhancement_output_buffer( string $output, int $ph
989989 *
990990 * @param string $filtered_output Filtered output buffer.
991991 */
992- do_action ( 'send_late_headers ' , $ filtered_output );
992+ do_action ( 'wp_send_late_headers ' , $ filtered_output );
993993
994994 return $ filtered_output ;
995995}
0 commit comments