From 59e57dd6af1fdfd104b46737675b418c7b9f01fb Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 28 Jan 2010 17:30:50 +0000 Subject: [PATCH] User correct var. Props nacin. fixes #12066 git-svn-id: http://svn.automattic.com/wordpress/trunk@12889 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/canonical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 6a60f4d64e..af059f0db5 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -131,7 +131,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) { } elseif ( is_author() && !empty($_GET['author']) && preg_match( '|^[0-9]+$|', $_GET['author'] ) ) { $author = get_userdata(get_query_var('author')); if ( false !== $author && $redirect_url = get_author_posts_url($author->ID, $author->user_nicename) ) - $redirect['query'] = remove_query_arg('author', $redirect['author']); + $redirect['query'] = remove_query_arg('author', $redirect['query']); } // paging and feeds