[wp-trac] [WordPress Trac] #10275: Filter logic has been put into the template loader while it not belongs there.
WordPress Trac
noreply at wordpress.org
Wed Nov 5 04:40:19 UTC 2014
#10275: Filter logic has been put into the template loader while it not belongs
there.
--------------------------+-----------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 2.8
Severity: normal | Resolution:
Keywords: | Focuses: template
--------------------------+-----------------------
Changes (by Ninos Ego):
* status: closed => reopened
* focuses: => template
* resolution: maybelater =>
Comment:
Is it planned to remove this filter in one of the next releases? I think
this hack should be removed from code, otherwise you'll see the
attachments image on the attachment page if you're using the the_content
filter for compiling shortcodes in widgets or somewhere else.
For theme developers it should be very easy to add a new line of code to
their single-attachment.php (or use map the attachment image to the
post_thumbnail function). If you want I can publish a patch...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10275#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list