Post Formats: get_the_post_format_media does not work without the $post global
|Reported by:||kovshenin||Owned by:||SergeyBiryukov|
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.
Change History (5)
comment:1 SergeyBiryukov — 13 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
Note: See TracTickets for help on using tickets.