Make WordPress Core

Opened 13 months ago

Closed 9 months ago

Last modified 9 months ago

#62988 closed defect (bug) (duplicate)

class-wp-styles.php sends output too early on media-upload.php

Reported by: kkmuffme's profile kkmuffme Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

Hook a function on send_headers

<?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.

Change History (2)

#1 @kkmuffme
9 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #63501.

#2 @desrosj
9 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.