Opened 17 years ago
Closed 15 years ago
#6699 closed defect (bug) (fixed)
get_temp_dir() should be more flexible
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Administration | Keywords: | has-patch early |
Focuses: | Cc: |
Description
Currently this function returns "/tmp/" even if there's another way to get the correct temp-path. So you should extend this function with "ini_get('upload_tmp_dir')" before you return "/tmp/" as the last way out. Of course it's possible to set "WP_TEMP_DIR" in config-file, but why don't do it the automatic way?
Attachments (1)
Change History (10)
#5
@
16 years ago
On Windows usually there is no /tmp/ dir. You should check TEMP and TMP environment variables - if they exists, use them instead of returning /tmp.
#6
@
16 years ago
true, but even now that part of the function never gets used, as far as I can tell.
Note: See
TracTickets for help on using
tickets.
Setting to 2.6 as its a change which is needed, and while it does not yet have a patch, one will be along soon enough.