WordPress.org

Make WordPress Core

Ticket #12066: 12066.diff

File 12066.diff, 654 bytes (added by nacin, 4 years ago)
  • wp-includes/canonical.php

     
    131131                } elseif ( is_author() && !empty($_GET['author']) && preg_match( '|^[0-9]+$|', $_GET['author'] ) ) { 
    132132                        $author = get_userdata(get_query_var('author')); 
    133133                        if ( false !== $author && $redirect_url = get_author_posts_url($author->ID, $author->user_nicename) ) 
    134                                 $redirect['query'] = remove_query_arg('author', $redirect['author']); 
     134                                $redirect['query'] = remove_query_arg('author', $redirect['query']); 
    135135                } 
    136136 
    137137        // paging and feeds