[wp-trac] [WordPress Trac] #20657: Custom Header Image Cropping deletes header images

WordPress Trac wp-trac at lists.automattic.com
Tue May 15 12:00:38 UTC 2012


#20657: Custom Header Image Cropping deletes header images
--------------------------+-----------------------
 Reporter:  westi         |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  3.4
Component:  Appearance    |     Version:  3.4
 Severity:  blocker       |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:18 ryan]:
 > Seems we'd need get_attached_file() to create the dst_file path and name
 and use _load_image_to_edit_path() as the source when doing the copy().

 Right, done in [attachment:20657.10.patch]. Perhaps we should also silence
 a possible warning from `copy()` in case a file is not accessible for some
 reason (included in the patch). The error message will be displayed in
 `step_3()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20657#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list