[wp-trac] [WordPress Trac] #24162: Add filter hook to get_post_format_meta()
WordPress Trac
noreply at wordpress.org
Fri Apr 26 05:58:13 UTC 2013
#24162: Add filter hook to get_post_format_meta()
--------------------------+--------------------------
Reporter: stuntbox | Owner: markjaquith
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.6
Component: Post Formats | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------------
Comment (by alexkingorg):
Hmm, interesting. I hadn't realized about the standardization on
`get_post()` vs `global $post`, thanks for the explanation.
This does introduce an additional set of SQL calls for loading up the post
if it's not already in object cache. Doesn't seem necessary if the
$post_id isn't 0.
Is it the job of this function to check that the post ID is valid? Seems
like a lot of responsibility to put on this guy. :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24162#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list