[wp-trac] [WordPress Trac] #35110: Twenty Thirteen Image Attachment Page (image.php) Missing Loop
WordPress Trac
noreply at wordpress.org
Tue Dec 15 22:36:49 UTC 2015
#35110: Twenty Thirteen Image Attachment Page (image.php) Missing Loop
--------------------------+-----------------------------
Reporter: mrwweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
[https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentythirteen/image.php 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 [https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentythirteen/image.php?rev=32116#L16 Line 16] to after
[https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentythirteen/image.php?rev=32116#L75 Line 75])
immediately fixed the issue.
Props to @deepbevel for [https://wordpress.org/support/topic/love-
it-1084?replies=2#post-7772546 noticing].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list