Ticket #5586: 5586.14.diff

File 5586.14.diff, 1.1 kB (added by DD32, 4 months ago)
  • wp-admin/includes/class-wp-filesystem-direct.php

    old new  
    88                $this->permission = umask(); 
    99        } 
    1010        function connect(){ 
    11                 return
     11                return true
    1212        } 
    1313        function setDefaultPermissions($perm){ 
    1414                $this->permission = $perm; 
     
    1717                return str_replace('\\','/',ABSPATH); 
    1818        } 
    1919        function get_base_dir($base = '.', $echo = false){ 
    20                 return find_base_dir($base, $echo); 
     20                return $this->find_base_dir($base, $echo); 
    2121        } 
    2222        function get_contents($file){ 
    2323                return @file_get_contents($file); 
  • wp-admin/update.php

    old new  
    1010                $type = get_filesystem_method(); 
    1111 
    1212        if ( 'direct' == $type ) 
    13                 return array()
     13                return true
    1414                 
    1515        if( ! $credentials = get_option('ftp_credentials') ) 
    1616                $credentials = array();