Make WordPress Core


Ignore:
Timestamp:
09/23/2013 02:50:07 PM (11 years ago)
Author:
nacin
Message:

Remove redundant title attributes.

props sabreuse.
see #24766.

File:
1 edited

Legend:

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

    r25471 r25570  
    912912        if ( is_front_page() && !is_paged() )
    913913            $class = 'class="current_page_item"';
    914         $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
     914        $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
    915915        // If the front page is a page, add it to the exclude list
    916916        if (get_option('show_on_front') == 'page') {
     
    11931193        $link_text = $_post->post_title;
    11941194
    1195     return apply_filters( 'wp_get_attachment_link', "<a href='$url' title='$post_title'>$link_text</a>", $id, $size, $permalink, $icon, $text );
     1195    return apply_filters( 'wp_get_attachment_link', "<a href='$url'>$link_text</a>", $id, $size, $permalink, $icon, $text );
    11961196}
    11971197
Note: See TracChangeset for help on using the changeset viewer.