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:
Ryan Boren 2008-05-01 21:38:40 +00:00
parent 2ceb2405bc
commit cc6a396a84
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {