Make WordPress Core


Ignore:
Timestamp:
05/20/2013 11:05:50 AM (13 years ago)
Author:
ryan
Message:
  • 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r24275 r24301  
    17501750
    17511751    if ( empty($post->post_excerpt) )
    1752         $excerpt = apply_filters('the_content', $post->post_content);
     1752        $excerpt = apply_filters('the_content', $post->post_content, $post->ID);
    17531753    else
    17541754        $excerpt = apply_filters('the_excerpt', $post->post_excerpt);
Note: See TracChangeset for help on using the changeset viewer.