[wp-trac] [WordPress Trac] #19840: Select custom header or background images from media library
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 6 20:47:27 UTC 2012
#19840: Select custom header or background images from media library
------------------------------+-----------------------
Reporter: jane | Owner: ryan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Media | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Comment (by ryan):
In [20384]:
{{{
#!CommitTicketReference repository="" revision="20384"
Make choosing a header image from the media library play nicely with file
replication plugins that do not guarantee images will be retained in the
local filesystem.
* When passing an attachment ID to wp_crop_image(), use
load_image_to_edit() to fetch the image via a url fopen when the image
does not exist in the filesystem.
* Move load_image_to_edit() to wp-admin/includes/image.php so that it is
always available for admin pages loads.
* Fallback to the height and width stored in the attachment meta when the
image no longer exists in the filesystem.
see #19840
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19840#comment:42>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list