Pass post ID to the_title filter. Props DD32. see #5746 #9666

git-svn-id: http://svn.automattic.com/wordpress/trunk@11112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-28 17:40:49 +00:00
parent e7f2b40dd7
commit f7c30e87eb
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ function get_the_title( $id = 0 ) {
$title = sprintf($private_title_format, $title);
}
}
return apply_filters( 'the_title', $title );
return apply_filters( 'the_title', $title, $post->ID );
}
/**