diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php index 2911366f03..e129e6f701 100644 --- a/src/wp-includes/author-template.php +++ b/src/wp-includes/author-template.php @@ -343,12 +343,13 @@ function the_author_posts_link( $deprecated = '' ) { */ function get_author_posts_url( $author_id, $author_nicename = '' ) { global $wp_rewrite; - $auth_ID = (int) $author_id; - $link = $wp_rewrite->get_author_permastruct(); + + $author_id = (int) $author_id; + $link = $wp_rewrite->get_author_permastruct(); if ( empty( $link ) ) { $file = home_url( '/' ); - $link = $file . '?author=' . $auth_ID; + $link = $file . '?author=' . $author_id; } else { if ( '' === $author_nicename ) { $user = get_userdata( $author_id );