Skip to content

Commit 1b2e08e

Browse files
committed
Move wp_start_template_enhancement_output_buffer to priority 1000
1 parent 55084d2 commit 1b2e08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/default-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
add_action( 'do_all_pings', 'generic_ping', 10, 0 );
423423
add_action( 'do_robots', 'do_robots' );
424424
add_action( 'do_favicon', 'do_favicon' );
425-
add_action( 'wp_before_include_template', 'wp_start_template_enhancement_output_buffer' );
425+
add_action( 'wp_before_include_template', 'wp_start_template_enhancement_output_buffer', 1000 ); // Late priority to let `wp_template_enhancement_output_buffer` filters and `wp_send_late_headers` actions be registered.
426426
add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 3 );
427427
add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' );
428428
add_action( 'init', 'smilies_init', 5 );

0 commit comments

Comments
 (0)