WordPress.org

Make WordPress Core

Changeset 7393


Ignore:
Timestamp:
03/19/2008 02:46:27 AM (13 years ago)
Author:
ryan
Message:

Fix typo in ftpext class. Handle safe mode errors. PRops DD32. see #5586

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r7369 r7393  
    168168    function put_contents($file,$contents,$type=''){
    169169        if( empty($type) ){
    170             $extension = substr(strrchr($filename, "."), 1);
     170            $extension = substr(strrchr($file, "."), 1);
    171171            $type = isset($this->filetypes[ $extension ]) ? $this->filetypes[ $extension ] : FTP_ASCII;
    172172        }
  • trunk/wp-admin/includes/file.php

    r7327 r7393  
    204204        return false;
    205205
    206     $handle = fopen($tmpfname, 'w');
     206    $handle = @fopen($tmpfname, 'w');
    207207    if( ! $handle )
    208208        return false;
Note: See TracChangeset for help on using the changeset viewer.