Make WordPress Core

Changeset 6263


Ignore:
Timestamp:
10/17/2007 08:14:38 PM (18 years ago)
Author:
markjaquith
Message:

Explicitly exclude previews from canonicalization. fixes #5203 for trunk

File:
1 edited

Legend:

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

    r6173 r6263  
    55    global $wp_rewrite, $posts, $is_IIS;
    66
    7     if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) )
     7    if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() )
    88        return;
    99
Note: See TracChangeset for help on using the changeset viewer.