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:
parent
eba9681b84
commit
89417fbaf0
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue