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:
parent
5a98759e8d
commit
5dc37883b2
|
@ -636,13 +636,13 @@ function get_filesystem_method($args = array(), $context = false) {
|
||||||
if ( !$context )
|
if ( !$context )
|
||||||
$context = WP_CONTENT_DIR;
|
$context = WP_CONTENT_DIR;
|
||||||
$context = trailingslashit($context);
|
$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');
|
$temp_handle = @fopen($temp_file_name, 'w');
|
||||||
if ( $temp_handle ) {
|
if ( $temp_handle ) {
|
||||||
if ( getmyuid() == fileowner($temp_file_name) )
|
if ( getmyuid() == @fileowner($temp_file_name) )
|
||||||
$method = 'direct';
|
$method = 'direct';
|
||||||
@fclose($temp_handle);
|
@fclose($temp_handle);
|
||||||
unlink($temp_file_name);
|
@unlink($temp_file_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue