From 41f75a2604d9f1ad0ae78a2ca255428345fe4f25 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@11112 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ); } /**