WordPress.org

Make WordPress Core

Changeset 30703


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.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r30678 r30703  
    318318            if ( isset($files[ $key ]) ){
    319319
    320                 // Lets try that folder:
     320                // Let's try that folder:
    321321                $newdir = trailingslashit(path_join($base, $key));
    322322                if ( $this->verbose )
  • 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 ) ) {
  • trunk/src/wp-includes/class-wp.php

    r30105 r30703  
    206206
    207207                        if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
    208                             // this is a verbose page match, lets check to be sure about it
     208                            // This is a verbose page match, let's check to be sure about it.
    209209                            if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) )
    210210                                continue;
  • trunk/src/wp-includes/rewrite.php

    r30669 r30703  
    364364
    365365            if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
    366                 // this is a verbose page match, lets check to be sure about it
     366                // This is a verbose page match, let's check to be sure about it.
    367367                if ( ! get_page_by_path( $matches[ $varmatch[1] ] ) )
    368368                    continue;
Note: See TracChangeset for help on using the changeset viewer.