Make WordPress Core

Ticket #26559: 26559.patch

File 26559.patch, 2.0 KB (added by joedolson, 13 years ago)

Remove title attribute patch for author-template.php

  • wp-includes/author-template.php

     
    171171 */
    172172function get_the_author_link() {
    173173        if ( get_the_author_meta('url') ) {
    174                 return '<a href="' . esc_url( get_the_author_meta('url') ) . '" title="' . esc_attr( sprintf(__("Visit %s&#8217;s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>';
     174                return '<a href="' . esc_url( get_the_author_meta('url') ) . '" rel="author external">' . get_the_author() . '</a>';
    175175        } else {
    176176                return get_the_author();
    177177        }
     
    236236        if ( !is_object( $authordata ) )
    237237                return false;
    238238        $link = sprintf(
    239                 '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
     239                '<a href="%1$s" rel="author">%2$s</a>',
    240240                esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),
    241                 esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
    242241                get_the_author()
    243242        );
    244243
     
    369368                        $return .= '<li>';
    370369                }
    371370
    372                 $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name) ) . '">' . $name . '</a>';
     371                $link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '">' . $name . '</a>';
    373372
    374373                if ( !empty( $feed_image ) || !empty( $feed ) ) {
    375374                        $link .= ' ';
     
    379378
    380379                        $link .= '<a href="' . get_author_feed_link( $author->ID ) . '"';
    381380
    382                         $alt = $title = '';
     381                        $alt = '';
    383382                        if ( !empty( $feed ) ) {
    384                                 $title = ' title="' . esc_attr( $feed ) . '"';
    385383                                $alt = ' alt="' . esc_attr( $feed ) . '"';
    386384                                $name = $feed;
    387                                 $link .= $title;
    388385                        }
    389386
    390387                        $link .= '>';
    391388
    392389                        if ( !empty( $feed_image ) )
    393                                 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . $title . ' />';
     390                                $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . ' />';
    394391                        else
    395392                                $link .= $name;
    396393