[wp-trac] [WordPress Trac] #14658: image_downsize filter always gets only false argument, other are not passed
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 20 16:44:06 UTC 2010
#14658: image_downsize filter always gets only false argument, other are not passed
---------------------------+------------------------------------------------
Reporter: mariokostelac | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.1
Severity: normal | Keywords: image_downsize
---------------------------+------------------------------------------------
I'm in progress of developing some theme for WordPress and realized that:
{{{
add_filter( 'image_downsize', 'mk_image_downsize' );
function mk_image_downsize()
{
var_dump( func_get_args() );
}
}}}
always prints false. image_downsize returns right values, but arguments
are not passed to the filter functions.
I think this is caused by line 142 in wp-includes/media.php file.
{{{
if ( $out = apply_filters('image_downsize', false, $id, $size) )
}}}
False is passed to filter function, but $id and $size are not.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14658>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list