summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRyan Boren <ryan@git.wordpress.org>2013-08-06 17:39:33 +0000
committerRyan Boren <ryan@git.wordpress.org>2013-08-06 17:39:33 +0000
commit11d7fe1eaf3c97fc60520d50ca8b617c9e819249 (patch)
tree159fc3c937410a92f2b1823f916ac017c23f96eb
parentd05c31d063995a9fac682d5ac7365720ab9a9cf7 (diff)
downloadwordpress-11d7fe1eaf3c97fc60520d50ca8b617c9e819249.tar.gz
wordpress-11d7fe1eaf3c97fc60520d50ca8b617c9e819249.zip
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
-rw-r--r--wp-includes/functions.php2
1 files changed, 1 insertions, 1 deletions
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 . '/';