[wp-trac] [WordPress Trac] #55109: Plugins no longer download to tmp folder

WordPress Trac noreply at wordpress.org
Thu Feb 17 17:42:23 UTC 2022


#55109: Plugins no longer download to tmp folder
-------------------------------------------------+----------------------
 Reporter:  antonynz                             |       Owner:  Clorith
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9.1
Component:  Filesystem API                       |     Version:  5.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing fixed-major  |     Focuses:
-------------------------------------------------+----------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"52761" 52761]:
 {{{
 #!CommitTicketReference repository="" revision="52761"
 Filesystem API: Use a temp folder for `Content-Disposition` files.

 #38231 added support for files fetched remotely to have their filename
 defined by the host using the `Content-Disposition` header. This would
 then take priority over the existing temporary file name created with
 `wp_tempnam()` earlier in the process.

 The change unintentionally omitted the temporary directory path used
 during uploads, since the `wp_tempnam()` function would have added it
 previously, so that files with this header ended up being stored in the
 WordPress root folder, or wp-admin folder, when triggered by WP_Cron or
 user interactions respectively.

 This change makes sure the file path includes the temporary directory
 location when the header is used.

 Follow-up to [51939].

 Props antonynz, azouamauriac, Clorith.
 Merges [52734] and [52760] to the 5.9 branch.
 Fixes #55109.
 }}}

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


More information about the wp-trac mailing list