Remove dot and silence errors in get_filesystem_method()

git-svn-id: https://develop.svn.wordpress.org/trunk@11819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-08-15 08:03:48 +00:00
parent 82a0986656
commit ff64167d03
1 changed files with 3 additions and 3 deletions

View File

@ -636,13 +636,13 @@ function get_filesystem_method($args = array(), $context = false) {
if ( !$context )
$context = WP_CONTENT_DIR;
$context = trailingslashit($context);
$temp_file_name = $context . '.write-test-' . time();
$temp_file_name = $context . 'temp-write-test-' . time();
$temp_handle = @fopen($temp_file_name, 'w');
if ( $temp_handle ) {
if ( getmyuid() == fileowner($temp_file_name) )
if ( getmyuid() == @fileowner($temp_file_name) )
$method = 'direct';
@fclose($temp_handle);
unlink($temp_file_name);
@unlink($temp_file_name);
}
}