Ticket #5586: 5586.14.diff
File 5586.14.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-filesystem-direct.php
8 8 $this->permission = umask(); 9 9 } 10 10 function connect(){ 11 return ;11 return true; 12 12 } 13 13 function setDefaultPermissions($perm){ 14 14 $this->permission = $perm; … … 17 17 return str_replace('\\','/',ABSPATH); 18 18 } 19 19 function get_base_dir($base = '.', $echo = false){ 20 return find_base_dir($base, $echo);20 return $this->find_base_dir($base, $echo); 21 21 } 22 22 function get_contents($file){ 23 23 return @file_get_contents($file); -
wp-admin/update.php
10 10 $type = get_filesystem_method(); 11 11 12 12 if ( 'direct' == $type ) 13 return array();13 return true; 14 14 15 15 if( ! $credentials = get_option('ftp_credentials') ) 16 16 $credentials = array();