[wp-trac] [WordPress Trac] #20205: move image_downsize filter to beginning of image_downsize() function
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 9 13:32:15 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):
what about passing the $attachment_id to the icon_dir filter as a second
parameter? that shouldn't cause any back-compat issues.
{{{
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC .
'/images/crystal', $attachment_id );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20205#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list