diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 869da31b09..820069518d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1424,7 +1424,7 @@ function get_temp_dir() { } $temp = ini_get('upload_tmp_dir'); - if ( is_dir( $temp ) && wp_is_writable( $temp ) ) + if ( @is_dir( $temp ) && wp_is_writable( $temp ) ) return trailingslashit( rtrim( $temp, '\\' ) ); $temp = WP_CONTENT_DIR . '/';