Changeset 23191 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 12/20/2012 03:55:32 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/class-wp-upgrader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r22019 r23191 195 195 elseif ( count($source_files) == 0 ) 196 196 return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], __( 'The plugin contains no files.' ) ); //There are no files? 197 else //It s only a single file, The upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename.197 else //It's only a single file, the upgrader will use the foldername of this file as the destination folder. foldername is based on zip filename. 198 198 $source = trailingslashit($source); 199 199 … … 616 616 $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) ); 617 617 618 if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it s already vanished.618 if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it's already vanished. 619 619 return $removed; 620 620 621 621 // If plugin is in its own directory, recursively delete the directory. 622 if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it s not the root plugin folder622 if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that it's not the root plugin folder 623 623 $deleted = $wp_filesystem->delete($this_plugin_dir, true); 624 624 else … … 1598 1598 1599 1599 /** 1600 * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it s a local file to the Upgrade/Installer functions.1600 * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if it's a local file to the Upgrade/Installer functions. 1601 1601 * 1602 1602 * @TODO More Detailed docs, for methods as well. … … 1616 1616 wp_die(__('Please select a file')); 1617 1617 1618 //Handle a newly uploaded file, Else assume it s already been uploaded1618 //Handle a newly uploaded file, Else assume it's already been uploaded 1619 1619 if ( ! empty($_FILES) ) { 1620 1620 $overrides = array( 'test_form' => false, 'test_type' => false );
Note: See TracChangeset
for help on using the changeset viewer.