Make WordPress Core

Changeset 18739


Ignore:
Timestamp:
09/21/2011 08:04:14 PM (13 years ago)
Author:
ryan
Message:

Do not output title attributes in the page walker since they match the anchor and are thus superfluous. Props logiclord. fixes #16783

File:
1 edited

Legend:

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

    r18712 r18739  
    10431043        $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
    10441044
    1045         $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page->post_title, $page->ID ) ) ) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
     1045        $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
    10461046
    10471047        if ( !empty($show_date) ) {
Note: See TracChangeset for help on using the changeset viewer.