Skip to content
Commit f8fa46a0 authored by Ryan Boren's avatar Ryan Boren
Browse files

Make choosing a header image from the media library play nicely with file...

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


git-svn-id: https://core.svn.wordpress.org/trunk@20384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 9f68b2b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment