Changeset 30703 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 12/02/2014 04:42:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r30648 r30703 708 708 709 709 $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); 710 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let s not prevent installation.710 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. 711 711 return $source; 712 712 … … 851 851 } 852 852 853 // We don't have the parent theme, let s install it853 // We don't have the parent theme, let's install it. 854 854 $api = themes_api('theme_information', array('slug' => $theme_info->get('Template'), 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth. 855 855 … … 1096 1096 // Check the folder contains a valid theme 1097 1097 $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit(WP_CONTENT_DIR), $source); 1098 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let s not prevent installation.1098 if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation. 1099 1099 return $source; 1100 1100 … … 2102 2102 } 2103 2103 2104 // Core doesn't output this, so let s append it so we don't get confused.2104 // Core doesn't output this, so let's append it so we don't get confused. 2105 2105 if ( 'core' == $type ) { 2106 2106 if ( is_wp_error( $upgrade_result ) ) {
Note: See TracChangeset
for help on using the changeset viewer.