Ticket #5586: 5586.6.diff

File 5586.6.diff, 486 bytes (added by DD32, 4 months ago)
  • wp-admin/includes/update.php

    old new  
    142142 
    143143        //Get the Base folder 
    144144        $base = $wp_filesystem->get_base_dir(); 
     145         
     146        if ( empty($base) ) 
     147                return new WP_Error('fs_nowordpress', __('Unable to locate WordPress directory.')); 
    145148 
    146149        // Get the URL to the zip file 
    147150        $r = $current->response[ $plugin ];