WordPress.org

Make WordPress Core

Changeset 25570


Ignore:
Timestamp:
09/23/13 14:50:07 (4 years ago)
Author:
nacin
Message:

Remove redundant title attributes.

props sabreuse.
see #24766.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r25404 r25570  
    727727        $link = __('Edit This'); 
    728728 
    729     $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '" title="' . $link . '">' . $link . '</a>'; 
     729    $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '">' . $link . '</a>'; 
    730730    $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 
    731731 
     
    938938 
    939939    $post_type_obj = get_post_type_object( $post->post_type ); 
    940     $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( $post_type_obj->labels->edit_item ) . '">' . $link . '</a>'; 
     940    $link = '<a class="post-edit-link" href="' . $url . '">' . $link . '</a>'; 
    941941    echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; 
    942942} 
     
    10121012        $link = __('Edit This'); 
    10131013 
    1014     $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . esc_attr__( 'Edit comment' ) . '">' . $link . '</a>'; 
     1014    $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">' . $link . '</a>'; 
    10151015    echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after; 
    10161016} 
     
    10531053        $link = __('Edit This'); 
    10541054 
    1055     $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '" title="' . esc_attr__( 'Edit Link' ) . '">' . $link . '</a>'; 
     1055    $link = '<a href="' . get_edit_bookmark_link( $bookmark ) . '">' . $link . '</a>'; 
    10561056    echo $before . apply_filters( 'edit_bookmark_link', $link, $bookmark->link_id ) . $after; 
    10571057} 
  • 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.