Make WordPress Core


Ignore:
Timestamp:
12/13/2011 11:45:31 PM (13 years ago)
Author:
ryan
Message:

Use one space, not two, after trailing punctuation. fixes #19537

File:
1 edited

Legend:

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

    r19470 r19593  
    5959        update_option('default_pingback_flag', 0);
    6060
    61     // Create default user.  If the user already exists, the user tables are
    62     // being shared among blogs.  Just set the role in that case.
     61    // Create default user. If the user already exists, the user tables are
     62    // being shared among blogs. Just set the role in that case.
    6363    $user_id = username_exists($user_name);
    6464    $user_password = trim($user_password);
     
    359359    $wp_current_db_version = __get_option('db_version');
    360360
    361     // We are up-to-date.  Nothing to do.
     361    // We are up-to-date. Nothing to do.
    362362    if ( $wp_db_version == $wp_current_db_version )
    363363        return;
     
    395395    $wp_current_db_version = __get_option('db_version');
    396396
    397     // We are up-to-date.  Nothing to do.
     397    // We are up-to-date. Nothing to do.
    398398    if ( $wp_db_version == $wp_current_db_version )
    399399        return;
     
    647647
    648648    // If plugins are not stored in an array, they're stored in the old
    649     // newline separated format.  Convert to new format.
     649    // newline separated format. Convert to new format.
    650650    if ( !is_array( $active_plugins ) ) {
    651651        $active_plugins = explode("\n", trim($active_plugins));
     
    899899    }
    900900
    901     // < 3570 we used linkcategories.  >= 3570 we used categories and link2cat.
     901    // < 3570 we used linkcategories. >= 3570 we used categories and link2cat.
    902902    if ( $wp_current_db_version < 3570 ) {
    903         // Create link_category terms for link categories.  Create a map of link cat IDs
     903        // Create link_category terms for link categories. Create a map of link cat IDs
    904904        // to link_category terms.
    905905        $link_cat_id_map = array();
     
    16911691
    16921692    // Copy files from the old locations to the site theme.
    1693     // TODO: This does not copy arbitrary include dependencies.  Only the
     1693    // TODO: This does not copy arbitrary include dependencies. Only the
    16941694    // standard WP files are copied.
    16951695    $files = array('index.php' => 'index.php', 'wp-layout.css' => 'style.css', 'wp-comments.php' => 'comments.php', 'wp-comments-popup.php' => 'comments-popup.php');
     
    19391939    // Upgrade versions prior to 2.9
    19401940    if ( $wp_current_db_version < 11557 ) {
    1941         // Delete duplicate options.  Keep the option with the highest option_id.
     1941        // Delete duplicate options. Keep the option with the highest option_id.
    19421942        $wpdb->query("DELETE o1 FROM $wpdb->options AS o1 JOIN $wpdb->options AS o2 USING (`option_name`) WHERE o2.option_id > o1.option_id");
    19431943
Note: See TracChangeset for help on using the changeset viewer.