$excerpt =
str_replace( ']]>', ']]>',
$excerpt );
$excerpt =
wp_html_excerpt( $excerpt, 252, '…'
);
/** This filter is documented in wp-includes/post-template.php */
$post_title =
apply_filters( 'the_title',
$post->post_title,
$post->ID
);
$post_title =
strip_tags( $post_title );
if ( $to_ping ) { foreach ( (array) $to_ping as $tb_ping ) { $tb_ping =
trim( $tb_ping );
if ( !
in_array( $tb_ping,
$pinged, true
) ) { trackback( $tb_ping,
$post_title,
$excerpt,
$post->ID
);
$pinged[] =
$tb_ping;
} else { $wpdb->
query( $wpdb->
prepare( "UPDATE
$wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s,
'')) WHERE ID = %d",
$tb_ping,
$post->ID
) );
} }