WordPress.org

Make WordPress Core

Ticket #12631: consistent_the_title_filter.12631.diff

File consistent_the_title_filter.12631.diff, 1.5 KB (added by filosofo, 5 years ago)
  • wp-includes/link-template.php

     
    10651065 
    10661066        $title = str_replace('%title', $post->post_title, $title); 
    10671067        $title = str_replace('%date', $date, $title); 
    1068         $title = apply_filters('the_title', $title, $post); 
     1068        $title = apply_filters('the_title', $title, $post->ID); 
    10691069 
    10701070        $link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='"; 
    10711071        $link .= esc_attr( $title ); 
     
    11901190 
    11911191        $title = str_replace('%title', $post->post_title, $title); 
    11921192        $title = str_replace('%date', $date, $title); 
    1193         $title = apply_filters('the_title', $title, $post); 
     1193        $title = apply_filters('the_title', $title, $post->ID); 
    11941194 
    11951195        $link = $start ? "<link rel='start' title='" : "<link rel='end' title='"; 
    11961196        $link .= esc_attr($title); 
     
    12531253 
    12541254        $title = str_replace('%title', $post->post_title, $title); 
    12551255        $title = str_replace('%date', $date, $title); 
    1256         $title = apply_filters('the_title', $title, $post); 
     1256        $title = apply_filters('the_title', $title, $post->ID); 
    12571257 
    12581258        $link = "<link rel='up' title='"; 
    12591259        $link .= esc_attr( $title ); 
     
    13261326        if ( empty($post->post_title) ) 
    13271327                $title = $previous ? __('Previous Post') : __('Next Post'); 
    13281328 
    1329         $title = apply_filters('the_title', $title, $post); 
     1329        $title = apply_filters('the_title', $title, $post->ID); 
    13301330        $date = mysql2date(get_option('date_format'), $post->post_date); 
    13311331        $rel = $previous ? 'prev' : 'next'; 
    13321332