[wp-trac] [WordPress Trac] #62988: class-wp-styles.php sends output too early on media-upload.php
WordPress Trac
noreply at wordpress.org
Wed Feb 19 23:55:24 UTC 2025
#62988: class-wp-styles.php sends output too early on media-upload.php
--------------------------+-----------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hook a function on send_headers
{{{#!php
<?php
add_action( 'send_headers', function foo() { header( 'X-Debug: Foo' ); }
);
}}}
Open:
/wp-admin/media-upload.php?type=image&tab=library&post_id=1234
You'll get a PHP error that headers have already been sent from wp-
includes/class-wp-styles.php
Given this is the "send_headers" hook, there shouldn't be any output sent
at that point yet though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62988>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list