Changeset 42761 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 02/27/2018 02:30:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r42745 r42761 192 192 if ( ! WP_Filesystem( $credentials, $directories[0], $allow_relaxed_file_ownership ) ) { 193 193 $error = true; 194 if ( is_object( $wp_filesystem ) && $wp_filesystem->errors-> get_error_code() ) {194 if ( is_object( $wp_filesystem ) && $wp_filesystem->errors->has_errors() ) { 195 195 $error = $wp_filesystem->errors; 196 196 } … … 204 204 } 205 205 206 if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors-> get_error_code() ) {206 if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { 207 207 return new WP_Error( 'fs_error', $this->strings['fs_error'], $wp_filesystem->errors ); 208 208 }
Note: See TracChangeset
for help on using the changeset viewer.