WordPress.org

Make WordPress Core

Ticket #3366: 3366.diff

File 3366.diff, 814 bytes (added by rob1n, 15 years ago)

Well, apparently the the_title filter wasn't being applied. Patch adds filters.

  • 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('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a>';
    518518
    519519                if ( !empty($show_date) ) {
    520520                        if ( 'modified' == $show_date )