WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2013 10:50:50 PM (7 years ago)
Author:
nacin
Message:

Remove redundant title attributes.

props sabreuse.
see #24766.

File:
1 edited

Legend:

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

    r25671 r25675  
    884884function get_archives_link($url, $text, $format = 'html', $before = '', $after = '') {
    885885    $text = wptexturize($text);
    886     $title_text = esc_attr($text);
    887886    $url = esc_url($url);
    888887
    889888    if ('link' == $format)
    890         $link_html = "\t<link rel='archives' title='$title_text' href='$url' />\n";
     889        $link_html = "\t<link rel='archives' title='" . esc_attr( $text ) . "' href='$url' />\n";
    891890    elseif ('option' == $format)
    892891        $link_html = "\t<option value='$url'>$before $text $after</option>\n";
    893892    elseif ('html' == $format)
    894         $link_html = "\t<li>$before<a href='$url' title='$title_text'>$text</a>$after</li>\n";
     893        $link_html = "\t<li>$before<a href='$url'>$text</a>$after</li>\n";
    895894    else // custom
    896         $link_html = "\t$before<a href='$url' title='$title_text'>$text</a>$after\n";
     895        $link_html = "\t$before<a href='$url'>$text</a>$after\n";
    897896
    898897    $link_html = apply_filters( 'get_archives_link', $link_html );
Note: See TracChangeset for help on using the changeset viewer.