WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2013 08:11:23 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Pass the post ID to the_title filter in post_formats_compat(). props danielbachhuber. see #23347.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-formats.php

    r23914 r23924  
    335335                    empty( $compat['link_class'] ) ? '' : sprintf( 'class="%s" ', esc_attr( $compat['link_class'] ) ),
    336336                    esc_url( $url ),
    337                     empty( $post->post_title ) ? esc_url( $meta['url'] ) : apply_filters( 'the_title', $post->post_title )
     337                    empty( $post->post_title ) ? esc_url( $meta['url'] ) : apply_filters( 'the_title', $post->post_title, $post->ID )
    338338                );
    339339            }
Note: See TracChangeset for help on using the changeset viewer.