[wp-trac] [WordPress Trac] #24162: Add filter hook to get_post_format_meta()
WordPress Trac
noreply at wordpress.org
Thu Apr 25 20:21:34 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 |
--------------------------+--------------------------
Changes (by alexkingorg):
* status: closed => reopened
* resolution: fixed =>
Comment:
Whoops, I think my patch was incomplete - we should also pass the
`$post_id` to the filter so there is context to work with.
Additionally, the `$post_id` param to the function is listed as optional,
but there is nothing to have it fall back on the `global $post`, I added
this as well. The `$post_id` is passed to `get_post_format()` which
requires the post id (doesn't fall back on `global $post`).
Sorry for not catching this sooner. Updated patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24162#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list