WordPress.org

Make WordPress Core

Ticket #4004: Filter change-02.patch

File Filter change-02.patch, 1019 bytes (added by Dickie, 11 years ago)

Updated to included latest trunk filters.

  • trunk/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(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a>';
     517                // Process the title and the title attribute separately.
     518                $title = apply_filters('the_title', $page->post_title);
     519                $titleAttribute = apply_filters('walker_page_title',$title, $page);
     520               
     521                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape($titleAttribute) . '">' . $title . '</a>';
    518522
    519523                if ( !empty($show_date) ) {
    520524                        if ( 'modified' == $show_date )