[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 May 14 03:44:38 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):

 Global $pages in setup_postdata() is a problem. Passing an ID makes no
 difference since get_the_content() goes to $pages for the content.
 24330.2.diff works around this, but the surgery is not minor.

 The new $format_pages variable is usually a straight up duplicate of
 $pages. Storing the content twice in globals could use up a lot of memory.

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


More information about the wp-trac mailing list