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

WordPress Trac noreply at wordpress.org
Tue Feb 15 17:47:54 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  |     Focuses:
-------------------------------------+----------------------
Changes (by Clorith):

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


Comment:

 In [changeset:"52734" 52734]:
 {{{
 #!CommitTicketReference repository="" revision="52734"
 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.
 Fixes #55109.
 }}}

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


More information about the wp-trac mailing list