get_temp_dir() should be more flexible
|Reported by:||RoyalKnight||Owned by:||anonymous|
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?