Suggestion: “Update” should use PHP’s specified upload_tmp_dir, not assume /tmp
-
Hi,
We had to change PHP’s upload_tmp_dir to get around an issue we were having. But this also seems to disable our ability to update WordPress’s core, plugins, etc. because the update routines look for the downloaded files in /tmp. The fix was easy enough:
define( 'WP_TEMP_DIR', ini_get( 'upload_tmp_dir' ) );
But this seems like it should be WordPress’s default behaviour (to try to load the update files from PHP’s specified upload directory, not expect they’ll always be in /tmp).
Hope this helps,
Colin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Suggestion: “Update” should use PHP’s specified upload_tmp_dir, not assume /tmp’ is closed to new replies.