[wp-trac] [WordPress Trac] #15337: fix get_attachment_template() to pass templates array
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 26 14:40:12 UTC 2012
#15337: fix get_attachment_template() to pass templates array
--------------------------+-----------------------------
Reporter: willnorris | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+-----------------------------
Comment (by jfarthing84):
Also just noticed that with the most specific template, the intended
result isn't even used. For instance, a JPEG image would be
image_jpeg.php. However, get_query_template uses a regular expression that
removes the underscore, thus changing the template it looks for to
imagejpeg.php. I suggest that the underscore be changed to a dash, thus
matching the WordPress file naming convention and avoiding this problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15337#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list