Make WordPress Core


Ignore:
Timestamp:
11/01/2025 04:44:21 AM (6 months ago)
Author:
westonruter
Message:

General: Rename wp_send_late_headers action to wp_finalized_template_enhancement_output_buffer.

Also update docs for wp_finalized_template_enhancement_output_buffer action and wp_template_enhancement_output_buffer filter to warn against attempting to open an output buffer in callbacks or else a PHP fatal error will occur.

Developed in https://github.com/WordPress/wordpress-develop/pull/10443

Follow-up to [61088], [60936].

Props westonruter, dmsnell.
See #43258.
Fixes #64126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r61088 r61111  
    589589         * Fires once the requested HTTP headers for caching, content type, etc. have been sent.
    590590         *
    591          * The {@see 'wp_send_late_headers'} action may be used to send headers after rendering the template into an
    592          * output buffer.
     591         * The {@see 'wp_finalized_template_enhancement_output_buffer'} action may be used to send
     592         * headers after rendering the template into an output buffer.
    593593         *
    594594         * @since 2.1.0
Note: See TracChangeset for help on using the changeset viewer.