Changeset 2442

Show
Ignore:
Timestamp:
03/14/05 00:55:21 (4 years ago)
Author:
ryan
Message:

Apply filters to trackback content. http://mosquito.wordpress.org/view.php?id=1085 Props: kim

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-post.php

    r2408 r2442  
    526526    $to_ping = get_to_ping($post_id); 
    527527    $pinged  = get_pung($post_id); 
    528     $content = strip_tags($post->post_content); 
    529     $excerpt = strip_tags($post->post_excerpt); 
    530     $post_title = strip_tags($post->post_title); 
    531  
    532     if ( $excerpt ) 
    533         $excerpt = substr($excerpt, 0, 252) . '...'; 
     528 
     529    if (empty($post->post_excerpt)) 
     530        $excerpt = apply_filters('the_content', $post->post_content); 
    534531    else 
    535         $excerpt = substr($content, 0, 252) . '...'; 
     532        $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 
     533    $excerpt = str_replace(']]>', ']]>', $excerpt); 
     534    $excerpt = strip_tags($excerpt); 
     535    $excerpt = substr($excerpt, 0, 252) . '...'; 
     536 
     537    $post_title = apply_filters('the_title', $post->post_title); 
     538    $post_title = strip_tags($post_title); 
    536539 
    537540    if ($to_ping) : foreach ($to_ping as $tb_ping) :