Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (10 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install-helper.php

    r27262 r29206  
    5858        }
    5959    }
    60     //didn't find it try to create it.
     60    // Didn't find it, so try to create it.
    6161    $wpdb->query($create_ddl);
    62     // we cannot directly tell that whether this succeeded!
     62
     63    // We cannot directly tell that whether this succeeded!
    6364    foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
    6465        if ($table == $table_name) {
     
    9192        }
    9293    }
    93     //didn't find it try to create it.
     94
     95    // Didn't find it, so try to create it.
    9496    $wpdb->query($create_ddl);
    95     // we cannot directly tell that whether this succeeded!
     97
     98    // We cannot directly tell that whether this succeeded!
    9699    foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
    97100        if ($column == $column_name) {
     
    119122    foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
    120123        if ($column == $column_name) {
    121             //found it try to drop it.
     124
     125            // Found it, so try to drop it.
    122126            $wpdb->query($drop_ddl);
    123             // we cannot directly tell that whether this succeeded!
     127
     128            // We cannot directly tell that whether this succeeded!
    124129            foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
    125130                if ($column == $column_name) {
     
    129134        }
    130135    }
    131     // else didn't find it
     136    // Else didn't find it.
    132137    return true;
    133138}
     
    168173
    169174        if ($row->Field == $col_name) {
    170             // got our column, check the params
     175
     176            // Got our column, check the params.
    171177            if (($col_type != null) && ($row->Type != $col_type)) {
    172178                ++$diffs;
Note: See TracChangeset for help on using the changeset viewer.