[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
Tue Jul 9 05:22:52 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:  closed
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
--------------------------+---------------------

Comment (by nacin):

 In [changeset:"24598"]:
 {{{
 #!CommitTicketReference repository="" revision="24598"
 Remove wp_parse_post_content(), get_paged_content(), paginate_content()
 from 3.6, and remove the new $id parameters for get_the_content() and
 the_content().

 The content parsing functions are good abstractions, but are no longer
 needed by core and are too closely tied to legacy globals, rather than
 paving a new path.

 For get_the_content() and the_content(), this only worsens the function
 prototype. It muddies theme-specific display (more links, etc) with
 filtered content. `apply_filters( 'the_content', $post->post_content )` is
 sufficient practice for now.

 see #24330, [24301]. see #23625, [23804].
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24330#comment:30>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list