From ff64167d03a58104322a41b1bae3ec9df6ed19ab Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 15 Aug 2009 08:03:48 +0000 Subject: [PATCH] Remove dot and silence errors in get_filesystem_method() git-svn-id: https://develop.svn.wordpress.org/trunk@11819 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/file.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index eae700f474..5b93b8fe2c 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -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); } }