[wp-trac] [WordPress Trac] #23401: Pass $metadata to intermediate_image_sizes_advanced filter

WordPress Trac noreply at wordpress.org
Wed Feb 6 01:16:31 UTC 2013


#23401: Pass $metadata to intermediate_image_sizes_advanced filter
-----------------------------+------------------------------
 Reporter:  amereservant     |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Post Thumbnails  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by amereservant):

 Replying to [comment:1 markoheijnen]:
 > Interesting idea. You can't use the filter 'image_resize_dimensions'
 because of not knowing the image size and a custom image editor for this
 seems redundant.

 Yeap.  I discovered it after hacking '''Viper007Bond''''s ''Regenerate
 Thumbnail'' plugin and trying to make a basic size check.  I realized that
 a simple post thumbnail size hook wasn't possible, yet it could be by
 passing the $metadata as a var parameter to the filter.

 It doesn't hurt the performance any to add this and it'd be useful to us
 geeks that dive way too far into WP code, attempting to write proper
 plugins.

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


More information about the wp-trac mailing list