Make WordPress Core


Ignore:
Timestamp:
08/15/2009 08:03:48 AM (17 years ago)
Author:
azaozz
Message:

Remove dot and silence errors in get_filesystem_method()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r11808 r11819  
    637637                        $context = WP_CONTENT_DIR;
    638638                $context = trailingslashit($context);
    639                 $temp_file_name = $context . '.write-test-' . time();
     639                $temp_file_name = $context . 'temp-write-test-' . time();
    640640                $temp_handle = @fopen($temp_file_name, 'w');
    641641                if ( $temp_handle ) {
    642                         if ( getmyuid() == fileowner($temp_file_name) )
     642                        if ( getmyuid() == @fileowner($temp_file_name) )
    643643                                $method = 'direct';
    644644                        @fclose($temp_handle);
    645                         unlink($temp_file_name);
     645                        @unlink($temp_file_name);
    646646                }
    647647        }
Note: See TracChangeset for help on using the changeset viewer.