Make WordPress Core

Ticket #50698: 50698.diff

File 50698.diff, 584 bytes (added by chintan1896, 5 years ago)
  • wp-includes/author-template.php

    diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php
    index c67c6ea..0cabb95 100644
    a b function wp_list_authors( $args = '' ) { 
    474474
    475475                $link = sprintf(
    476476                        '<a href="%1$s" title="%2$s">%3$s</a>',
    477                         get_author_posts_url( $author->ID, $author->user_nicename ),
     477                        esc_url( get_author_posts_url( $author->ID, $author->user_nicename ) ),
    478478                        /* translators: %s: Author's display name. */
    479479                        esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ),
    480480                        $name