WordPress.org

Make WordPress Core

Ticket #16783: 16783.diff

File 16783.diff, 811 bytes (added by logiclord, 4 years ago)

Title attribute removed.

  • .php

    diff --git a/old.php b/new.php
    index bf4671b..86e3bd4 100644
    old new class Walker_Page extends Walker { 
    10351035 
    10361036                $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page)); 
    10371037 
    1038                 $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>'; 
     1038                $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>'; 
    10391039 
    10401040                if ( !empty($show_date) ) { 
    10411041                        if ( 'modified' == $show_date )