[wp-trac] [WordPress Trac] #32319: the_content filter should provide reference to post

WordPress Trac noreply at wordpress.org
Sat May 9 09:56:51 UTC 2015


#32319: the_content filter should provide reference to post
-------------------------------+------------------------------
 Reporter:  shramee            |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.2.2
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  Administration => Posts, Post Types


Comment:

 Hi @shramee, welcome to Trac!

 Unfortunately, a consistent fix does not seem feasible here. Even if we
 pass the post ID or object to all the instances in core, a lot of plugins
 and themes still use `apply_filters( 'the_content', $content )` without
 passing the ID.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32319#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list