[wp-trac] [WordPress Trac] #24003: Post Formats: get_the_post_format_media does not work without the $post global
WordPress Trac
noreply at wordpress.org
Tue Apr 9 12:06:33 UTC 2013
#24003: Post Formats: get_the_post_format_media does not work without the $post
global
-----------------------+--------------------------
Reporter: kovshenin | Type: defect (bug)
Status: new | Priority: normal
Milestone: 3.6 | Component: Post Formats
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------+--------------------------
The `get_the_post_format_media` takes a `$post` argument, but doesn't pass
it on to some of its functions (`has_post_format` and `get_attached_*`),
making those functions work with the `$post` global instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24003>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list