mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix typo in ftpext class. Handle safe mode errors. PRops DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@7393 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -167,7 +167,7 @@ class WP_Filesystem_FTPext{
|
||||
}
|
||||
function put_contents($file,$contents,$type=''){
|
||||
if( empty($type) ){
|
||||
$extension = substr(strrchr($filename, "."), 1);
|
||||
$extension = substr(strrchr($file, "."), 1);
|
||||
$type = isset($this->filetypes[ $extension ]) ? $this->filetypes[ $extension ] : FTP_ASCII;
|
||||
}
|
||||
$temp = tmpfile();
|
||||
|
||||
@@ -203,7 +203,7 @@ function download_url( $url ) {
|
||||
if( ! $tmpfname )
|
||||
return false;
|
||||
|
||||
$handle = fopen($tmpfname, 'w');
|
||||
$handle = @fopen($tmpfname, 'w');
|
||||
if( ! $handle )
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user