Don't redirect robots. Props thenlich and DD32. fixes #6891
git-svn-id: https://develop.svn.wordpress.org/trunk@7871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2ceb2405bc
commit
cc6a396a84
@ -35,7 +35,7 @@
|
||||
function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
global $wp_rewrite, $is_IIS;
|
||||
|
||||
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() )
|
||||
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() || is_robots() )
|
||||
return;
|
||||
|
||||
if ( !$requested_url ) {
|
||||
|
Loading…
Reference in New Issue
Block a user