WordPress.org

Make WordPress Core

Ticket #4004: 4004.diff

File 4004.diff, 794 bytes (added by rob1n, 7 years ago)

A different, Page_Walker-based filter name.

  • wp-includes/classes.php

     
    514514                elseif ( $_current_page && $page->ID == $_current_page->post_parent ) 
    515515                        $css_class .= ' current_page_parent'; 
    516516 
    517                 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape($page->post_title) . '">' . $page->post_title . '</a>'; 
     517                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('walker_page_title', $page->post_title)) . '">' . $page->post_title . '</a>'; 
    518518 
    519519                if ( !empty($show_date) ) { 
    520520                        if ( 'modified' == $show_date )