WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/20/2012 03:55:32 PM (9 years ago)
Author:
helen
Message:

its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.

File:
1 edited

Legend:

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

    r22019 r23191  
    195195        elseif ( count($source_files) == 0 )
    196196            return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], __( 'The plugin contains no files.' ) ); //There are no files?
    197         else //Its 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.
    198198            $source = trailingslashit($source);
    199199
     
    616616        $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin) );
    617617
    618         if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If its already vanished.
     618        if ( ! $wp_filesystem->exists($this_plugin_dir) ) //If it's already vanished.
    619619            return $removed;
    620620
    621621        // 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 its not the root plugin folder
     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 folder
    623623            $deleted = $wp_filesystem->delete($this_plugin_dir, true);
    624624        else
     
    15981598
    15991599/**
    1600  * Upgrade Skin helper for File uploads. This class handles the upload process and passes it as if its 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.
    16011601 *
    16021602 * @TODO More Detailed docs, for methods as well.
     
    16161616            wp_die(__('Please select a file'));
    16171617
    1618         //Handle a newly uploaded file, Else assume its already been uploaded
     1618        //Handle a newly uploaded file, Else assume it's already been uploaded
    16191619        if ( ! empty($_FILES) ) {
    16201620            $overrides = array( 'test_form' => false, 'test_type' => false );
Note: See TracChangeset for help on using the changeset viewer.