[wp-trac] [WordPress Trac] #15606: Remove Hardcoded Image Extensions
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 29 12:54:48 UTC 2010
#15606: Remove Hardcoded Image Extensions
---------------------------+------------------------------------------------
Reporter: acumensystems | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
---------------------------+------------------------------------------------
Hi,
As the web changes, browsers support more image extensions. Part of what
I'm doing is write plugins that extend Wordpress's ability to thumbnail
beyond the norm (PDFs for example).
In order to extend functionality and provide the most support to existing
themes, one way is to override functions like `wp_attachment_is_image()`.
Rather than full overriding, it would be better still to change the data
their logic is based on. However, these functions do make some unfortunate
hard-coded assumptions.
This function, in wp-includes/post.php includes the code:
{{{
$image_exts = array('jpg', 'jpeg', 'gif', 'png');
}}}
I believe that should refer to a global array. This is not in object
scope, so where would be best to place it?
Best,
Leo
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15606>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list