Make WordPress Core

Ticket #25817: 25817.2.patch

File 25817.2.patch, 783 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/includes/class-wp-upgrader.php

     
    13321332                if ( !isset( $current->response ) || $current->response == 'latest' )
    13331333                        return new WP_Error('up_to_date', $this->strings['up_to_date']);
    13341334
    1335                 $res = $this->fs_connect( array(ABSPATH, WP_CONTENT_DIR) );
    1336                 if ( is_wp_error($res) )
     1335                $res = $this->fs_connect( array( ABSPATH, WP_CONTENT_DIR ) );
     1336                if ( is_wp_error( $res ) )
    13371337                        return $res;
     1338                elseif ( ! $res )
     1339                        return new WP_Error( 'fs_unavailable', $this->strings['fs_unavailable'] );
    13381340
    13391341                $wp_dir = trailingslashit($wp_filesystem->abspath());
    13401342