[wp-trac] [WordPress Trac] #27498: Canonical redirect is applied upon POST request
WordPress Trac
noreply at wordpress.org
Tue Sep 2 04:45:03 UTC 2014
#27498: Canonical redirect is applied upon POST request
---------------------------------+-----------------------------
Reporter: c.axelsson | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Canonical | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch 4.0-early | Focuses:
---------------------------------+-----------------------------
Comment (by nacin):
template-loader.php is way simpler:
{{{
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters(
'exit_on_http_head', true ) )
exit();
}}}
This also happens to fail when it isn't set, but you're usually not
running template-loader.php via CLI.
I'm fine with adjusting template-loader.php later, just pointing out where
else we do this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27498#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list