Ticket #10889: 10889.diff
| File 10889.diff, 2.7 KB (added by Denis-de-Bernardy, 3 years ago) |
|---|
-
wp-admin/includes/class-wp-filesystem-ftpsockets.php
135 135 fwrite($temphandle, $contents); 136 136 fseek($temphandle, 0); //Skip back to the start of the file being written to 137 137 138 $dir = dirname($file); 139 $file = basename($file); 140 if ( $dir && $dir != '.' ) { 141 $dir = $this->find_folder($dir); 142 $this->chdir($dir); 143 } 138 144 $ret = $this->ftp->fput($file, $temphandle); 139 145 140 146 fclose($temphandle); -
wp-admin/includes/class-wp-upgrader.php
323 323 // Create maintenance file to signal that we are upgrading 324 324 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; 325 325 $wp_filesystem->delete($file); 326 $wp_filesystem->put_contents($file, $maintenance_string , FS_CHMOD_FILE);326 $wp_filesystem->put_contents($file, $maintenance_string); 327 327 } else if ( !$enable && $wp_filesystem->exists($file) ) { 328 328 $this->skin->feedback('maintenance_end'); 329 329 $wp_filesystem->delete($file); -
wp-admin/includes/update-core.php
223 223 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; 224 224 $maintenance_file = $to . '.maintenance'; 225 225 $wp_filesystem->delete($maintenance_file); 226 $wp_filesystem->put_contents($maintenance_file, $maintenance_string , FS_CHMOD_FILE);226 $wp_filesystem->put_contents($maintenance_file, $maintenance_string); 227 227 228 228 // Copy new versions of WP files into place. 229 229 $result = copy_dir($from . '/wordpress', $to); -
wp-admin/includes/class-wp-filesystem-ftpext.php
122 122 fwrite($temp, $contents); 123 123 fseek($temp, 0); //Skip back to the start of the file being written to 124 124 125 $dir = dirname($file); 126 $file = basename($file); 127 if ( $dir && $dir != '.' ) { 128 $dir = $this->find_folder($dir); 129 $this->chdir($dir); 130 } 125 131 $ret = @ftp_fput($this->link, $file, $temp, $type); 126 132 127 133 fclose($temp); … … 134 140 return $cwd; 135 141 } 136 142 function chdir($dir) { 137 return @ftp_chdir($ dir);143 return @ftp_chdir($this->link, $dir); 138 144 } 139 145 function chgrp($file, $group, $recursive = false ) { 140 146 return false;
