Changeset 7205

Show
Ignore:
Timestamp:
03/10/08 07:44:23 (4 months ago)
Author:
ryan
Message:

Return error if base dir empty. Props DD32. see #5586

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/update.php

    r7155 r7205  
    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