From 7e98ec2a8b20f57725be627b79e1fe40e1622468 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Feb 2008 18:35:01 +0000 Subject: [PATCH] Silence some exected warnings in ftpext. Props DD32. see #5586 git-svn-id: https://develop.svn.wordpress.org/trunk@7039 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-ftpext.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index cf40a76eed..70e59c7878 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -276,14 +276,14 @@ class WP_Filesystem_FTPext{ function delete($file,$recursive=false) { if ( $this->is_file($file) ) - return ftp_delete($this->link,$file); + return @ftp_delete($this->link,$file); if ( !$recursive ) - return ftp_rmdir($this->link,$file); + return @ftp_rmdir($this->link,$file); $filelist = $this->dirlist($file); foreach ($filelist as $filename => $fileinfo) { $this->delete($file.'/'.$filename,$recursive); } - return ftp_rmdir($this->link,$file); + return @ftp_rmdir($this->link,$file); } function exists($file){ @@ -297,8 +297,8 @@ class WP_Filesystem_FTPext{ } function is_dir($path){ $cwd = $this->cwd(); - if ( ftp_chdir($this->link, $path) ) { - ftp_chdir($this->link, $cwd); + if ( @ftp_chdir($this->link, $path) ) { + @ftp_chdir($this->link, $cwd); return true; } return false;