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
This commit is contained in:
Sergey Biryukov 2013-03-09 02:29:29 +00:00
parent 3ac13b6e6a
commit f3fb286c0a
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,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( $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 )
);
}
}