Make WordPress Core


Ignore:
Timestamp:
09/03/2011 02:18:10 PM (14 years ago)
Author:
duck_
Message:

Fix typos in documentation (wp-admin/). See #18560.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r18618 r18632  
    213213
    214214        if ( $clear_destination ) {
    215             //We're going to clear the destination if theres something there
     215            //We're going to clear the destination if there's something there
    216216            $this->skin->feedback('remove_old');
    217217            $removed = true;
     
    225225                return new WP_Error('remove_old_failed', $this->strings['remove_old_failed']);
    226226        } elseif ( $wp_filesystem->exists($remote_destination) ) {
    227             //If we're not clearing the destination folder and something exists there allready, Bail.
     227            //If we're not clearing the destination folder and something exists there already, Bail.
    228228            //But first check to see if there are actually any files in the folder.
    229229            $_files = $wp_filesystem->dirlist($remote_destination);
     
    305305        $delete_package = ($download != $package); // Do not delete a "local" file
    306306
    307         //Unzip's the file into a temporary directory
     307        //Unzips the file into a temporary directory
    308308        $working_dir = $this->unpack_package( $download, $delete_package );
    309309        if ( is_wp_error($working_dir) ) {
     
    326326            $this->skin->feedback('process_failed');
    327327        } else {
    328             //Install Suceeded
     328            //Install Succeeded
    329329            $this->skin->feedback('process_success');
    330330        }
     
    435435        add_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade'), 10, 2);
    436436        add_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'), 10, 4);
    437         //'source_selection' => array(&$this, 'source_selection'), //theres a track ticket 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.
    438438
    439439        $this->run(array(
     
    447447                ));
    448448
    449         // Cleanup our hooks, incase something else does a upgrade on this connection.
     449        // Cleanup our hooks, in case something else does a upgrade on this connection.
    450450        remove_filter('upgrader_pre_install', array(&$this, 'deactivate_plugin_before_upgrade'));
    451451        remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'));
     
    532532        $this->skin->footer();
    533533
    534         // Cleanup our hooks, incase something else does a upgrade on this connection.
     534        // Cleanup our hooks, in case something else does a upgrade on this connection.
    535535        remove_filter('upgrader_clear_destination', array(&$this, 'delete_old_plugin'));
    536536
     
    813813        $this->skin->footer();
    814814
    815         // Cleanup our hooks, incase something else does a upgrade on this connection.
     815        // Cleanup our hooks, in case something else does a upgrade on this connection.
    816816        remove_filter('upgrader_pre_install', array(&$this, 'current_before'), 10, 2);
    817817        remove_filter('upgrader_post_install', array(&$this, 'current_after'), 10, 2);
     
    874874
    875875        //Ensure stylesheet name hasnt changed after the upgrade:
    876         // @TODO: Note, This doesnt handle the Template changing, or the Template name changing.
     876        // @TODO: Note, This doesn't handle the Template changing, or the Template name changing.
    877877        if ( $theme == get_stylesheet() && $theme != $this->result['destination_name'] ) {
    878878            $theme_info = $this->theme_info();
     
    917917
    918918/**
    919  * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combiantion with the wp-admin/includes/update-core.php file
     919 * Core Upgrader class for WordPress. It allows for WordPress to upgrade itself in combination with the wp-admin/includes/update-core.php file
    920920 *
    921921 * @TODO More Detailed docs, for methods as well.
Note: See TracChangeset for help on using the changeset viewer.