WordPress.org

Make WordPress Core

Changeset 7205


Ignore:
Timestamp:
03/10/2008 07:44:23 AM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.