mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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:
parent
fc33615fb5
commit
875424adae
@ -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
Block a user