Remove dot and silence errors in get_filesystem_method()

git-svn-id: http://svn.automattic.com/wordpress/trunk@11819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-08-15 08:03:48 +00:00
parent 5a98759e8d
commit 5dc37883b2
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);
}
}