[wp-trac] [WordPress Trac] #61189: REST API: Attachments are not uploaded to the post's year/month folder

WordPress Trac noreply at wordpress.org
Fri May 10 18:58:09 UTC 2024


#61189: REST API: Attachments are not uploaded to the post's year/month folder
--------------------------------------+-------------------------
 Reporter:  swissspidy                |       Owner:  swissspidy
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.6
Component:  Media                     |     Version:  4.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58130" 58130]:
 {{{
 #!CommitTicketReference repository="" revision="58130"
 REST API: Ensure attachments are uploaded to the post's year/month folder.

 If organizing uploads into month- and year-based folders, uploading an
 attachment to an existing post should store the file in `wp-
 content/uploads/<year>/<month>` based on the post's publish date. This is
 in line with the behavior in classic editor / the media modal.

 Props swissspidy, adamsilverstein, timothyblynjacobs, skithund,
 sergeybiryukov, patricia70.
 Fixes #61189.
 }}}

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


More information about the wp-trac mailing list