Explicitly exclude previews from canonicalization. fixes #5203 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@6263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-10-17 20:14:38 +00:00
parent fc33615fb5
commit 875424adae
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
function redirect_canonical($requested_url=NULL, $do_redirect=true) {
global $wp_rewrite, $posts, $is_IIS;
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) )
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() || $is_IIS || ( isset($_POST) && count($_POST) ) || is_preview() )
return;
if ( !$requested_url ) {