User correct var. Props nacin. fixes #12066
git-svn-id: https://develop.svn.wordpress.org/trunk@12889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
88024e6674
commit
22e8867c67
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user