From 11d7fe1eaf3c97fc60520d50ca8b617c9e819249 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 6 Aug 2013 17:39:33 +0000 Subject: [PATCH] Silence is_dir() to avoud warning when upload_tmp_dir is outside open_basedir. Props dpash fixes #24704 git-svn-id: https://develop.svn.wordpress.org/trunk@24995 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . '/';