#35110 closed defect (bug) (fixed)
Twenty Thirteen Image Attachment Page (image.php) Missing Loop
Reported by: | mrwweb | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Bundled Theme | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
Twenty Thirteen's image.php file uses the_ID()
, the_title()
, post_class()
, get_the_title()
, has_excerpt()
, the_excerpt()
the_content()
, etc. yet contains no loop. This means that the template does not show the title, caption, description,
The template should have a loop added to it to properly display the image meta as one would expect on an image attachment page.
A quick test of adding the loop so that it wraps around the <article>
element (before Line 16 to after Line 75) immediately fixed the issue.
Props to @deepbevel for noticing.
Attachments (1)
Change History (12)
#4
@
9 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 4.5
This ticket was mentioned in Slack in #core by ardinent. View the logs.
9 years ago
#6
@
9 years ago
- Owner set to swissspidy
- Resolution set to fixed
- Status changed from new to closed
In 36136:
This ticket was mentioned in Slack in #core-themes by davidakennedy. View the logs.
9 years ago
#8
@
9 years ago
- Keywords fixed-major added
- Milestone changed from 4.5 to 4.4.1
- Resolution fixed deleted
- Status changed from closed to reopened
This has been requested for backport to 4.4.1
This ticket was mentioned in Slack in #core by jorbin. View the logs.
9 years ago
#10
@
9 years ago
- Keywords fixed-major removed
- Milestone changed from 4.4.1 to 4.5
- Resolution set to fixed
- Status changed from reopened to closed
Twenty Thirteen isn't bundled with 4.4, no need for a backport.
I've added the loop on line 16 and after line 85 for the template.