WordPress.org

Make WordPress Core

Changeset 11465


Ignore:
Timestamp:
05/27/2009 12:56:32 AM (11 years ago)
Author:
ryan
Message:

Fix unlink warning. see #9936

File:
1 edited

Legend:

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

    r11454 r11465  
    632632        $temp_file_name = ABSPATH . '.' . time();
    633633        $temp_handle = @fopen($temp_file_name, 'w');
    634         if ( $temp_handle && getmyuid() == fileowner($temp_file_name) )
    635             $method = 'direct';
    636         @fclose($temp_handle);
    637         unlink($temp_file_name);
     634        if ( $temp_handle ) {
     635            if ( getmyuid() == fileowner($temp_file_name) )
     636                $method = 'direct';
     637            @fclose($temp_handle);
     638            unlink($temp_file_name);
     639        }
    638640    }
    639641
Note: See TracChangeset for help on using the changeset viewer.