[wp-trac] [WordPress Trac] #20666: Custom header image cropping can create identical attachments

WordPress Trac wp-trac at lists.automattic.com
Sun May 13 20:22:02 UTC 2012


#20666: Custom header image cropping can create identical attachments
----------------------------+------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.4
Component:  Appearance      |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 ryan]:
 > Perhaps we should also call wp_upload_dir() to get a newly dated upload
 dir instead of reusing the old dir when cropping an existing image from
 the media library.

 `step_3()` in `wp-admin/custom-header.php` would still expect the new
 attachment to be in the same directory as the original file: [[BR]]
 http://core.trac.wordpress.org/browser/trunk/wp-admin/custom-
 header.php#L877

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


More information about the wp-trac mailing list