mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
* Introduce wp_parse_post_content() and use it in setup_postdata(), get_the_content(), and get_the_remaining_content().
* Add a post ID argument to the_content(), get_the_content(), the_remaining_content(), and get_the_remaining_content(). * Pass the post ID to the the_content filter. * Remove the format_pages global. * Declare format_content and split_content as vars in WP_Post. * phpdoc for the the_content filter that documents the new ID argument and denotes it as not-so-portable. Props gcorne, DrewAPicture, duck_, aaroncampbell see #24330 git-svn-id: https://develop.svn.wordpress.org/trunk@24301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1749,7 +1749,7 @@ function do_trackbacks($post_id) {
|
||||
}
|
||||
|
||||
if ( empty($post->post_excerpt) )
|
||||
$excerpt = apply_filters('the_content', $post->post_content);
|
||||
$excerpt = apply_filters('the_content', $post->post_content, $post->ID);
|
||||
else
|
||||
$excerpt = apply_filters('the_excerpt', $post->post_excerpt);
|
||||
$excerpt = str_replace(']]>', ']]>', $excerpt);
|
||||
|
||||
Reference in New Issue
Block a user