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
This commit is contained in:
Sergey Biryukov
2013-04-06 08:11:23 +00:00
parent c868bd8540
commit 24a18ed5a1

View File

@@ -334,7 +334,7 @@ function post_formats_compat( $content, $id = 0 ) {
'<a %shref="%s">%s</a>',
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;