[wp-trac] [WordPress Trac] #23392: Sooner filtering for image_downsize()
WordPress Trac
noreply at wordpress.org
Tue Feb 5 08:49:01 UTC 2013
#23392: Sooner filtering for image_downsize()
-----------------------------+-------------------------
Reporter: anatolbroder | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Media
Version: | Severity: normal
Keywords: has-patch |
-----------------------------+-------------------------
In the function ''image_downsize()'' we have an initialization block with
two non trivial time-consuming procedures inside.
{{{
$img_url = wp_get_attachment_url($id);
$meta = wp_get_attachment_metadata($id);
}}}
The filter ''image_downsize'' is below the block. But the filter
parameters don’t interact with the initialization block. If we move the
filter before the initialization block, plugins using the filter will save
time.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23392>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list