mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Allow plugins to provide a canonical redirect_url even if WordPress does not provide its own. props wnorris. fixes #8975 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e027822f45
commit
9b9508e187
@ -279,7 +279,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
|||||||
$redirect_url .= '?' . $redirect['query'];
|
$redirect_url .= '?' . $redirect['query'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !$redirect_url || $redirect_url == $requested_url )
|
if ( $redirect_url == $requested_url )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE
|
// Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE
|
||||||
|
Loading…
Reference in New Issue
Block a user