Opened 12 years ago
Closed 12 years ago
#23392 closed enhancement (fixed)
Sooner filtering for image_downsize()
Reported by: | anatolbroder | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Introduced in [6952] along with the function itself.