Make WordPress Core


Ignore:
Timestamp:
03/18/2014 10:01:46 PM (13 years ago)
Author:
johnbillion
Message:

Remove a redundant title attribute. See #26559. Props joedolson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/author-template.php

    r27550 r27593  
    388388                        $link .= '<a href="' . get_author_feed_link( $author->ID, $feed_type ) . '"';
    389389
    390                         $alt = $title = '';
     390                        $alt = '';
    391391                        if ( !empty( $feed ) ) {
    392                                 $title = ' title="' . esc_attr( $feed ) . '"';
    393392                                $alt = ' alt="' . esc_attr( $feed ) . '"';
    394393                                $name = $feed;
    395                                 $link .= $title;
    396394                        }
    397395
    … …  
    399397
    400398                        if ( !empty( $feed_image ) )
    401                                 $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . $title . ' />';
     399                                $link .= '<img src="' . esc_url( $feed_image ) . '" style="border: none;"' . $alt . ' />';
    402400                        else
    403401                                $link .= $name;
Note: See TracChangeset for help on using the changeset viewer.