WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/02/2014 04:42:17 AM (5 years ago)
Author:
DrewAPicture
Message:

Using let's properly in inline comments lets us move on to more pressing matters of inline documentation.

Props trepmal.
Fixes #30570.

File:
1 edited

Legend:

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

    r30648 r30703  
    708708
    709709        $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, lets not prevent installation.
     710        if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation.
    711711            return $source;
    712712
     
    851851        }
    852852
    853         // We don't have the parent theme, lets install it
     853        // We don't have the parent theme, let's install it.
    854854        $api = themes_api('theme_information', array('slug' => $theme_info->get('Template'), 'fields' => array('sections' => false, 'tags' => false) ) ); //Save on a bit of bandwidth.
    855855
     
    10961096        // Check the folder contains a valid theme
    10971097        $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, lets not prevent installation.
     1098        if ( ! is_dir($working_directory) ) // Sanity check, if the above fails, let's not prevent installation.
    10991099            return $source;
    11001100
     
    21022102        }
    21032103
    2104         // Core doesn't output this, so lets 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.
    21052105        if ( 'core' == $type ) {
    21062106            if ( is_wp_error( $upgrade_result ) ) {
Note: See TracChangeset for help on using the changeset viewer.