WordPress.org

Make WordPress Core

Ticket #5586: 5586.6.diff

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

     
    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 ];