WordPress.org

Make WordPress Core

Ticket #13558: patch.diff

File patch.diff, 2.5 KB (added by dndrnkrd, 8 years ago)
  • wp-includes/nav-menu-template.php

     
    107107
    108108                $item_output = $args->before;
    109109                $item_output .= '<a'. $attributes .'>';
    110                 $item_output .= $args->link_before . apply_filters( 'the_title', $item->title ) . $args->link_after;
     110                $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
    111111                $item_output .= '</a>';
    112112                $item_output .= $args->after;
    113113
  • wp-includes/general-template.php

     
    11971197                $ak_title_separator = ', ';
    11981198
    11991199        $ak_titles_for_day = array();
    1200         $ak_post_titles = $wpdb->get_results("SELECT post_title, DAYOFMONTH(post_date) as dom "
     1200        $ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom "
    12011201                ."FROM $wpdb->posts "
    12021202                ."WHERE YEAR(post_date) = '$thisyear' "
    12031203                ."AND MONTH(post_date) = '$thismonth' "
     
    12071207        if ( $ak_post_titles ) {
    12081208                foreach ( (array) $ak_post_titles as $ak_post_title ) {
    12091209
    1210                                 $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title ) );
     1210                                $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) );
    12111211
    12121212                                if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
    12131213                                        $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
  • wp-includes/classes.php

     
    12021202
    12031203                $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
    12041204
    1205                 $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page->post_title ) ) ) . '">' . $link_before . apply_filters( 'the_title', $page->post_title ) . $link_after . '</a>';
     1205                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($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>';
    12061206
    12071207                if ( !empty($show_date) ) {
    12081208                        if ( 'modified' == $show_date )