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

git-svn-id: https://develop.svn.wordpress.org/trunk@11112 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-28 17:40:49 +00:00
parent 7e3b303f19
commit 41f75a2604
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); $title = sprintf($private_title_format, $title);
} }
} }
return apply_filters( 'the_title', $title ); return apply_filters( 'the_title', $title, $post->ID );
} }
/** /**