Changeset 18632 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 09/03/2011 02:18:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r18618 r18632 213 213 214 214 if ( $clear_destination ) { 215 //We're going to clear the destination if there s something there215 //We're going to clear the destination if there's something there 216 216 $this->skin->feedback('remove_old'); 217 217 $removed = true; … … 225 225 return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']); 226 226 } elseif ( $wp_filesystem->exists($remote_destination) ) { 227 //If we're not clearing the destination folder and something exists there al lready, Bail.227 //If we're not clearing the destination folder and something exists there already, Bail. 228 228 //But first check to see if there are actually any files in the folder. 229 229 $_files = $wp_filesystem->dirlist($remote_destination); … … 305 305 $delete_package = ($download != $package); // Do not delete a "local" file 306 306 307 //Unzip 's the file into a temporary directory307 //Unzips the file into a temporary directory 308 308 $working_dir = $this->unpack_package( $download, $delete_package ); 309 309 if ( is_wp_error($working_dir) ) { … … 326 326 $this->skin->feedback('process_failed'); 327 327 } else { 328 //Install Suc eeded328 //Install Succeeded 329 329 $this->skin->feedback('process_success'); 330 330 } … … 435 435 add_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade'), 10, 2); 436 436 add_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'), 10, 4); 437 //'source_selection' => array(&$this, 'source_selection'), //there s a trackticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins.437 //'source_selection' => array(&$this, 'source_selection'), //there's a trac ticket to move up the directory for zip's which are made a bit differently, useful for non-.org plugins. 438 438 439 439 $this->run(array( … … 447 447 )); 448 448 449 // Cleanup our hooks, in case something else does a upgrade on this connection.449 // Cleanup our hooks, in case something else does a upgrade on this connection. 450 450 remove_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade')); 451 451 remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin')); … … 532 532 $this->skin->footer(); 533 533 534 // Cleanup our hooks, in case something else does a upgrade on this connection.534 // Cleanup our hooks, in case something else does a upgrade on this connection. 535 535 remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin')); 536 536 … … 813 813 $this->skin->footer(); 814 814 815 // Cleanup our hooks, in case something else does a upgrade on this connection.815 // Cleanup our hooks, in case something else does a upgrade on this connection. 816 816 remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2); 817 817 remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2); … … 874 874 875 875 //Ensure stylesheet name hasnt changed after the upgrade: 876 // @TODO: Note, This doesn t handle the Template changing, or the Template name changing.876 // @TODO: Note, This doesn't handle the Template changing, or the Template name changing. 877 877 if ( $theme == get_stylesheet() && $theme != $this->result['destination_name'] ) { 878 878 $theme_info = $this->theme_info(); … … 917 917 918 918 /** 919 * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combi antion with the wp-admin/includes/update-core.php file919 * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combination with the wp-admin/includes/update-core.php file 920 920 * 921 921 * @TODO More Detailed docs, for methods as well.
Note: See TracChangeset
for help on using the changeset viewer.