[wp-trac] [WordPress Trac] #24330: When adding the post_formats_compat the_content filter a post ID argument should be included
WordPress Trac
noreply at wordpress.org
Mon May 20 11:05:50 UTC 2013
#24330: When adding the post_formats_compat the_content filter a post ID argument
should be included
--------------------------+--------------------
Reporter: gcorne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Post Formats | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by ryan):
In [changeset:"24301"]:
{{{
#!CommitTicketReference repository="" revision="24301"
* 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
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24330#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list