Make WordPress Core

Changeset 37533


Ignore:
Timestamp:
05/23/2016 03:03:18 PM (10 years ago)
Author:
ocean90
Message:

Database: Remove debug comments in dbDelta().

File:
1 edited

Legend:

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

    r37532 r37533  
    21842184                $flds = explode("\n", $qryline);
    21852185
    2186                 // todo: Remove this?
    2187                 //echo "<hr/><pre>\n".print_r(strtolower($table), true).":\n".print_r($cqueries, true)."</pre><hr/>";
    2188 
    21892186                // For every field line specified in the query.
    21902187                foreach ($flds as $fld) {
     
    22522249
    22532250                                // Get the default value from the array.
    2254                                         // todo: Remove this?
    2255                                         //echo "{$cfields[strtolower($tablefield->Field)]}<br>";
    22562251                                if ( preg_match( "| DEFAULT '(.*?)'|i", $cfields[ $tablefield_field_lowercased ], $matches ) ) {
    22572252                                        $default_value = $matches[1];
     
    23372332                                                unset( $indices[ $aindex ] );
    23382333                                                break;
    2339                                                 // todo: Remove this?
    2340                                                 //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n";
    23412334                                        }
    23422335                                }
    2343                                 // todo: Remove this?
    2344                                 //else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br /><b>Did not find index:</b>".$index_string."<br />".print_r($indices, true)."</pre>\n";
    23452336                        }
    23462337                }
     
    23602351        if ($execute) {
    23612352                foreach ($allqueries as $query) {
    2362                         // todo: Remove this?
    2363                         //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">".print_r($query, true)."</pre>\n";
    23642353                        $wpdb->query($query);
    23652354                }
Note: See TracChangeset for help on using the changeset viewer.