WordPress.org

Make WordPress Core

Changeset 7039


Ignore:
Timestamp:
02/26/2008 06:35:01 PM (12 years ago)
Author:
ryan
Message:

Silence some exected warnings in ftpext. Props DD32. see #5586

File:
1 edited

Legend:

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

    r6919 r7039  
    277277    function delete($file,$recursive=false) {
    278278        if ( $this->is_file($file) )
    279             return ftp_delete($this->link,$file);
     279            return @ftp_delete($this->link,$file);
    280280        if ( !$recursive )
    281             return ftp_rmdir($this->link,$file);
     281            return @ftp_rmdir($this->link,$file);
    282282        $filelist = $this->dirlist($file);
    283283        foreach ($filelist as $filename => $fileinfo) {
    284284            $this->delete($file.'/'.$filename,$recursive);
    285285        }
    286         return ftp_rmdir($this->link,$file);
     286        return @ftp_rmdir($this->link,$file);
    287287    }
    288288
     
    298298    function is_dir($path){
    299299        $cwd = $this->cwd();
    300         if ( ftp_chdir($this->link, $path) ) {
    301             ftp_chdir($this->link, $cwd);
     300        if ( @ftp_chdir($this->link, $path) ) {
     301            @ftp_chdir($this->link, $cwd);
    302302            return true;
    303303        }
Note: See TracChangeset for help on using the changeset viewer.