No canonical-ness for wp-admin. see #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@5921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
276b690c7e
commit
68501fd51b
|
@ -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