No canonical-ness for wp-admin. see #4773
git-svn-id: https://develop.svn.wordpress.org/trunk@5921 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dac74f6c47
commit
ca9bea927b
|
@ -4,7 +4,7 @@
|
||||||
function redirect_canonical() {
|
function redirect_canonical() {
|
||||||
global $wp_rewrite, $posts;
|
global $wp_rewrite, $posts;
|
||||||
|
|
||||||
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() )
|
if ( is_feed() || is_trackback() || is_search() || is_comments_popup() || is_admin() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// build the URL in the address bar
|
// build the URL in the address bar
|
||||||
|
|
Loading…
Reference in New Issue