Make WordPress Core


Ignore:
Timestamp:
04/19/2009 07:36:28 PM (15 years ago)
Author:
ryan
Message:

consolidate plugin/theme/core upgrade/install functions. Props DD32. see #7875

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r10951 r11005  
    7373    }
    7474
    75     if ( $wp_filesystem->errors->get_error_code() ) {
    76         return $wp_filesystem->errors;
    77     }
    7875
    7976    if ( ! is_object($wp_filesystem) )
    8077        return new WP_Error('fs_unavailable', __('Could not access filesystem.'));
    8178
    82     if ( $wp_filesystem->errors->get_error_code() )
     79    if ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() )
    8380        return new WP_Error('fs_error', __('Filesystem error'), $wp_filesystem->errors);
    8481
Note: See TracChangeset for help on using the changeset viewer.