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: | kovshenin | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Post Formats | Version: | 3.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
#2
@
13 years ago
- Resolution fixed
- Status closed → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 23937: