Changeset 27881
- Timestamp:
- 04/01/2014 02:57:52 AM (12 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-upgrader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
-
branches/3.7/src/wp-admin/includes/class-wp-upgrader.php
r25981 r27881 1334 1334 1335 1335 $res = $this->fs_connect( array(ABSPATH, WP_CONTENT_DIR) ); 1336 if ( is_wp_error($res) )1336 if ( ! $res || is_wp_error( $res ) ) { 1337 1337 return $res; 1338 } 1338 1339 1339 1340 $wp_dir = trailingslashit($wp_filesystem->abspath()); … … 1897 1898 'attempt_rollback' => true, /* only available for core updates */ 1898 1899 ) ); 1900 1901 // if the filesystem is unavailable, false is returned. 1902 if ( false === $upgrade_result ) { 1903 $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); 1904 } 1899 1905 1900 1906 // Core doesn't output this, so lets append it so we don't get confused
Note: See TracChangeset
for help on using the changeset viewer.