[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 13 21:15:27 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 gcorne):

 I agree that it is well established behavior, but I don't agree that it is
 expected. The usage in {{{do_trackbacks()}}} is evidence that it is easy
 to not be aware of the state needed to properly apply {{{the_content}}}.
 It is also unfortunate that we are adding *new* code that is relying on
 {{{$GLOBALS['post']}}. At this point, isn't everyone in agreement that
 usage of the global {{{$post}}} should be frowned upon if not deprecated?

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


More information about the wp-trac mailing list