[wp-trac] [WordPress Trac] #20226: Don't advertise pingback URL on resources that don't support pingbacks
WordPress Trac
noreply at wordpress.org
Fri Sep 25 14:46:17 UTC 2015
#20226: Don't advertise pingback URL on resources that don't support pingbacks
------------------------------+-----------------------------
Reporter: solarissmoke | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Pings/Trackbacks | Version: 3.3
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses: template
------------------------------+-----------------------------
Comment (by chris@…):
I'm slightly confused by this. `send_headers()` job is to figure out what
headers should be sent. What's nice about this is that right before
actually sending them the hook `wp_headers` is called allowing us to
filter them. However, now the `X-Pingback` header has been moved to
`handle_404()` so that function is really
`handle_404_and_maybe_send_pingback_header()`?
I'm actually really for this ticket and have been unsetting that header
using `wp_headers` on pretty much every site for a long time now, but this
seems really hacky.
If this does go through, the docs for `send_headers()` and possibly
`handle_404()` should be updated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20226#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list