Opened 19 years ago
Closed 17 years ago
#6699 closed defect (bug) (fixed)
get_temp_dir() should be more flexible
| Reported by: | RoyalKnight | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch early |
| Cc: | Focuses: |
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
@
17 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
@
17 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.