Make WordPress Core


Ignore:
Timestamp:
10/06/2011 09:09:37 PM (13 years ago)
Author:
markjaquith
Message:

Always pass the post ID as the second argument to the the_title filter. props GaryJ. fixes #16688

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r18723 r18907  
    10131013            foreach ( (array) $arcresults as $arcresult ) {
    10141014                if ( $arcresult->post_date != '0000-00-00 00:00:00' ) {
    1015                     $url  = get_permalink($arcresult);
    1016                     $arc_title = $arcresult->post_title;
    1017                     if ( $arc_title )
    1018                         $text = strip_tags(apply_filters('the_title', $arc_title));
     1015                    $url  = get_permalink( $arcresult );
     1016                    if ( $arcresult->post_title )
     1017                        $text = strip_tags( apply_filters( 'the_title', $arcresult->post_title, $arcresult->ID ) );
    10191018                    else
    10201019                        $text = $arcresult->ID;
Note: See TracChangeset for help on using the changeset viewer.