[wp-trac] [WordPress Trac] #46554: Uploaded images goes to wrong folder/date structure

WordPress Trac noreply at wordpress.org
Mon Mar 18 11:35:54 UTC 2019


#46554: Uploaded images goes to wrong folder/date structure
-------------------------------+------------------------------
 Reporter:  kartiks16          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  5.1
 Severity:  normal             |  Resolution:
 Keywords:  2nd-opinion close  |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  2nd-opinion needs-testing needs-patch => 2nd-opinion close


Comment:

 This was a deliberate change made in 4.9, see #10752. Citing the commit
 message:

 > When media is uploaded to a post, the upload directory is set according
 to the date of the post, so that the media URLs in the post match when the
 post was published.
 >
 > A page is a slightly different beast, pages often live for years, and
 are regularly updated to stay relevant. This change causes media uploaded
 to pages to use the upload date to determine the upload directory.

 I don't know if there's an easy way to change the folder structure for
 uploads. What's your use case for that? Why is the changed structure a
 problem?

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


More information about the wp-trac mailing list