[wp-trac] [WordPress Trac] #20205: move image_downsize filter to beginning of image_downsize() function

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 8 22:43:47 UTC 2012


#20205: move image_downsize filter to beginning of image_downsize() function
----------------------------+------------------------------
 Reporter:  helgatheviking  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Media           |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by helgatheviking):

 ok, well then what about adding a filter to the wp_attachment_is_image
 check?

 {{{
 if ( !(apply_filters ( 'wp_attachment_is_image' ,
 wp_attachment_is_image($id), $id, $size)))
         return false;
 }}}

 should provide back compatibility while still allowing it to be
 overridden.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20205#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list