[wp-trac] [WordPress Trac] #26992: Failing to make new yyyy/mm for uploads affects existing URLs (WP_CONTENT_URL, wp_get_attachment_url and GUID)

WordPress Trac noreply at wordpress.org
Tue Oct 7 17:42:59 UTC 2014


#26992: Failing to make new yyyy/mm for uploads affects existing URLs
(WP_CONTENT_URL, wp_get_attachment_url and GUID)
--------------------------+------------------------------
 Reporter:  tivnet        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by wpdavis):

 * keywords:   => has-patch


Comment:

 Confirmed: This is a stupid, annoying thing. Attached is a patch that only
 checks for a permissions error if it's a newly-uploaded file. Else the
 script is just using the basedir piece of wp_upload_dir, and the fact that
 there is a permissions error is completely irrelevant.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26992#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list