Changeset 26148
- Timestamp:
- 11/14/2013 02:01:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r26049 r26148 1335 1335 1336 1336 $res = $this->fs_connect( array(ABSPATH, WP_CONTENT_DIR) ); 1337 if ( is_wp_error($res) )1337 if ( ! $res || is_wp_error( $res ) ) { 1338 1338 return $res; 1339 } 1339 1340 1340 1341 $wp_dir = trailingslashit($wp_filesystem->abspath()); … … 1899 1900 'attempt_rollback' => true, /* only available for core updates */ 1900 1901 ) ); 1902 1903 // if the filesystem is unavailable, false is returned. 1904 if ( false === $upgrade_result ) { 1905 $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); 1906 } 1901 1907 1902 1908 // 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.