- $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name) ) . '">' . $name . '</a>';
+ $link = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>',
+ get_author_posts_url( $author->ID, $author->user_nicename ),
+ /* translators: %s: author's display name */
+ esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ),
+ $name
+ );