Ticket #25817: 25817.2.patch
| File 25817.2.patch, 783 bytes (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/class-wp-upgrader.php
1332 1332 if ( !isset( $current->response ) || $current->response == 'latest' ) 1333 1333 return new WP_Error('up_to_date', $this->strings['up_to_date']); 1334 1334 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 ) ) 1337 1337 return $res; 1338 elseif ( ! $res ) 1339 return new WP_Error( 'fs_unavailable', $this->strings['fs_unavailable'] ); 1338 1340 1339 1341 $wp_dir = trailingslashit($wp_filesystem->abspath()); 1340 1342