From f7c30e87eb73f7cf1f78159dffbd7b8f10e93a8a Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 28 Apr 2009 17:40:49 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index dccc6ca43b..f881bebc8c 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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 ); } /**