[wp-trac] [WordPress Trac] #41461: Sort out missing attachment.php template somehow
WordPress Trac
noreply at wordpress.org
Tue Oct 3 14:16:16 UTC 2017
#41461: Sort out missing attachment.php template somehow
-------------------------+------------------------------
Reporter: mor10 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: close | Focuses:
-------------------------+------------------------------
Changes (by johnbillion):
* keywords: => close
* type: defect (bug) => enhancement
* version: trunk =>
* component: Media => Themes
Comment:
None of the default themes since Twenty Fourteen have included an
`attachment.php` template file, but they all correctly handle displaying
attachments (at least, image attachments) via template parts that are
included in `single.php`.
Technically, a theme could only include `index.php` and still gracefully
handle the display of attachments.
I think detecting whether or not a theme correctly supports attachments is
pretty much impossible. Does the theme review guidelines cover the display
of attachments? If not, that would probably be the best approach here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41461#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list