[wp-trac] [WordPress Trac] #56068: Send HTTP headers after querying posts in WP::main()

WordPress Trac noreply at wordpress.org
Fri Jul 1 21:21:01 UTC 2022

#56068: Send HTTP headers after querying posts in WP::main()
 Reporter:  SergeyBiryukov              |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Bootstrap/Load              |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  performance

Comment (by SergeyBiryukov):

 Replying to [ticket:56068 SergeyBiryukov]:
 > If that happens, we could also move the `X-Pingback` header, which is
 currently [source:tags/6.0/src/wp-includes/class-wp.php?marks=704-707#L702
 sent in handle_404()] after posts have been queried, as of [34442] /
 #20226, to a more appropriate place, which is `send_headers()` :)

 [attachment:"56068.2.diff"] addresses this part.

 Instead of adding a new `@since` entry for `X-Pingback` header being moved
 back to `WP::send_headers()`, I think we can repurpose the existing one to
 describe more specifically what was done in [34442].

Ticket URL: <https://core.trac.wordpress.org/ticket/56068#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list