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: https://develop.svn.wordpress.org/trunk@10448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2683a27a8b
commit
2e96af8795
|
@ -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