From 24a18ed5a1749d187d27f0b08d0e7030a23f7dee Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 6 Apr 2013 08:11:23 +0000 Subject: [PATCH] Pass the post ID to the_title filter in post_formats_compat(). props danielbachhuber. see #23347. git-svn-id: https://develop.svn.wordpress.org/trunk@23924 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 fb67cfc674..dc4d9d1d22 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -334,7 +334,7 @@ function post_formats_compat( $content, $id = 0 ) { '%s', empty( $compat['link_class'] ) ? '' : sprintf( 'class="%s" ', esc_attr( $compat['link_class'] ) ), esc_url( $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 ) ); } break;