From 01d852fe7f91306208c10c67b9e7f70f8b146c1a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 25 Dec 2005 21:16:27 +0000 Subject: [PATCH] Silence mkdir(). git-svn-id: https://develop.svn.wordpress.org/trunk@3358 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 67892b8927..eaaab76dce 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -850,7 +850,7 @@ function wp_upload_dir() { // Make sure we have an uploads dir if ( ! file_exists( $path ) ) { - if ( ! mkdir( $path ) ) + if ( ! @ mkdir( $path ) ) return array('error' => "Unable to create directory $path. Is its parent directory writable by the server?"); @ chmod( $path, $dir_perms ); } @@ -864,14 +864,14 @@ function wp_upload_dir() { // Make sure we have a yearly dir if ( ! file_exists( $pathy ) ) { - if ( ! mkdir( $pathy ) ) + if ( ! @ mkdir( $pathy ) ) return array('error' => "Unable to create directory $pathy. Is $path writable?"); @ chmod( $pathy, $dir_perms ); } // Make sure we have a monthly dir if ( ! file_exists( $pathym ) ) { - if ( ! mkdir( $pathym ) ) + if ( ! @ mkdir( $pathym ) ) return array('error' => "Unable to create directory $pathym. Is $pathy writable?"); @ chmod( $pathym, $dir_perms ); }