Ticket #12866: 12866.patch
| File 12866.patch, 763 bytes (added by ocean90, 3 years ago) |
|---|
-
wp-admin/includes/file.php
157 157 return trailingslashit($temp); 158 158 159 159 $temp = WP_CONTENT_DIR . '/'; 160 if ( is_dir($temp) && is_writable($temp) )160 if ( is_dir($temp) && @is_writable($temp) ) 161 161 return $temp; 162 162 163 163 if ( function_exists('sys_get_temp_dir') ) { 164 164 $temp = sys_get_temp_dir(); 165 if ( is_writable($temp) )165 if ( @is_writable($temp) ) 166 166 return trailingslashit($temp); 167 167 } 168 168 169 169 $temp = ini_get('upload_tmp_dir'); 170 if ( is_dir($temp) && is_writable($temp) )170 if ( is_dir($temp) && @is_writable($temp) ) 171 171 return trailingslashit($temp); 172 172 173 173 $temp = '/tmp/';
