mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Pass the post ID to the_title filter in post_formats_compat(). props danielbachhuber. see #23347.
git-svn-id: http://core.svn.wordpress.org/trunk@23924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d546ad739
commit
7412235232
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user