Explicitly exclude previews from canonicalization. fixes #5203 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@6263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-10-17 20:14:38 +00:00
parent eba9681b84
commit 89417fbaf0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
function redirect_canonical($requested_url=NULL, $do_redirect=true) { function redirect_canonical($requested_url=NULL, $do_redirect=true) {
global $wp_rewrite, $posts, $is_IIS; 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; return;
if ( !$requested_url ) { if ( !$requested_url ) {