WordPress.org

Make WordPress Core

Changeset 23924


Ignore:
Timestamp:
04/06/13 08:11:23 (13 months 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.