From 44e0f5ff094539dda468d1db6afc0763769e61ec 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: https://develop.svn.wordpress.org/trunk@23655 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) ); } }