From f3fb286c0a9e02096bfd5abf9f03a5979bf5459d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 9 Mar 2013 02:29:29 +0000 Subject: [PATCH] Pass the post ID to the_title filter in post_formats_compat(). see #23347. git-svn-id: http://core.svn.wordpress.org/trunk@23655 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-formats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index 828447b6e1..3896d11863 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -321,7 +321,7 @@ function post_formats_compat( $content, $id = 0 ) { '%s', empty( $compat['link_class'] ) ? '' : sprintf( 'class="%s" ', esc_attr( $compat['link_class'] ) ), esc_url( $meta['url'] ), - empty( $post->post_title ) ? esc_url( $meta['url'] ) : apply_filters( 'the_title', $post->post_title ) + empty( $post->post_title ) ? esc_url( $meta['url'] ) : apply_filters( 'the_title', $post->post_title, $post->ID ) ); } }