Make WordPress Core


Ignore:
Timestamp:
10/06/2011 09:09:37 PM (15 years ago)
Author:
markjaquith
Message:

Always pass the post ID as the second argument to the the_title filter. props GaryJ. fixes #16688

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r18827 r18907  
    150150        $string = '<a href="'.get_permalink($post->ID).'">'.$previous;
    151151        if ( 'yes' == $title )
    152                 $string .= apply_filters('the_title', $post->post_title, $post);
     152                $string .= apply_filters('the_title', $post->post_title, $post->ID);
    153153        $string .= '</a>';
    154154        $format = str_replace('%', $string, $format);
     
    186186        $string = '<a href="'.get_permalink($post->ID).'">'.$next;
    187187        if ( 'yes' == $title )
    188                 $string .= apply_filters('the_title', $post->post_title, $nextpost);
     188                $string .= apply_filters('the_title', $post->post_title, $post->ID);
    189189        $string .= '</a>';
    190190        $format = str_replace('%', $string, $format);
Note: See TracChangeset for help on using the changeset viewer.