[wp-trac] [WordPress Trac] #11890: allow get_the_content to accept post ID

WordPress Trac noreply at wordpress.org
Fri Sep 6 09:47:55 UTC 2013


#11890: allow get_the_content to accept post ID
-------------------------+-----------------------------
 Reporter:  williamsba1  |       Owner:  williamsba1
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Future Release
Component:  Template     |     Version:  2.9.1
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+-----------------------------
Changes (by c3mdigital):

 * keywords:  close =>
 * status:  new => closed
 * resolution:   => wontfix


Comment:

 We tried it in [24301] then removed it in [24598].

 >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.

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


More information about the wp-trac mailing list