[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
Thu May 16 15:57:01 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):
The patch here plus abstracting some stuff out of get_the_content() as
hinted at in the phpdoc for get_the_remaining_content() could allow us to
avoid shipping with $format_pages. I would really like to avoid
introducing that global.
$post->format_content[] could go into a non-persistent cache bucket with
a key like $post_id:media:$type to avoid decorating the object.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24330#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list