Changeset 7871

Show
Ignore:
Timestamp:
05/01/08 21:38:40 (6 months ago)
Author:
ryan
Message:

Don't redirect robots. Props thenlich and DD32. fixes #6891

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/canonical.php

    r6998 r7871  
    3636    global $wp_rewrite, $is_IIS; 
    3737 
    38     if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview()
     38    if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() || is_robots()
    3939        return; 
    4040