Changeset 7403
- Timestamp:
- 03/19/2008 08:36:23 PM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r7393 r7403 153 153 } 154 154 $temp = tmpfile(); 155 if ( ! $temp ) 156 return false; 155 157 if( ! @ftp_fget($this->link,$temp,$file,$type,$resumepos) ) 156 158 return false; … … 172 174 } 173 175 $temp = tmpfile(); 176 if ( ! $temp ) 177 return false; 174 178 fwrite($temp,$contents); 175 179 fseek($temp, 0); //Skip back to the start of the file being written to -
trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r7369 r7403 160 160 $this->ftp->SetType($type); 161 161 $temp = tmpfile(); 162 if ( ! $temp ) 163 return false; 162 164 if ( ! $this->ftp->fget($temp, $file) ) { 163 165 fclose($temp); … … 184 186 185 187 $temp = tmpfile(); 188 if ( ! $temp ) 189 return false; 186 190 fwrite($temp,$contents); 187 191 fseek($temp, 0); //Skip back to the start of the file being written to
Note: See TracChangeset
for help on using the changeset viewer.