Opened 13 years ago
Closed 13 years ago
#24003 closed defect (bug) (fixed)
Post Formats: get_the_post_format_media does not work without the $post global
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.6 | Priority: | normal |
| Severity: | normal | Version: | 3.6 |
| Component: | Post Formats | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (5)
#1
@
13 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
#2
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
24003.2.diff is a similar fix for get_the_post_format_image and get_attached_images. Sorry for not catching these together. Thought I'd squeeze it in here, but let me know if you want a separate ticket for this.
Note: See
TracTickets for help on using
tickets.
In 23937: