Database: Remove debug comments in `dbDelta()`.

git-svn-id: https://develop.svn.wordpress.org/trunk@37533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2016-05-23 15:03:18 +00:00
parent 9f19752175
commit 8fefe4e13c
1 changed files with 0 additions and 11 deletions

View File

@ -2183,9 +2183,6 @@ function dbDelta( $queries = '', $execute = true ) {
// Separate field lines into an array. // Separate field lines into an array.
$flds = explode("\n", $qryline); $flds = explode("\n", $qryline);
// todo: Remove this?
//echo "<hr/><pre>\n".print_r(strtolower($table), true).":\n".print_r($cqueries, true)."</pre><hr/>";
// For every field line specified in the query. // For every field line specified in the query.
foreach ($flds as $fld) { foreach ($flds as $fld) {
@ -2251,8 +2248,6 @@ function dbDelta( $queries = '', $execute = true ) {
} }
// Get the default value from the array. // Get the default value from the array.
// todo: Remove this?
//echo "{$cfields[strtolower($tablefield->Field)]}<br>";
if ( preg_match( "| DEFAULT '(.*?)'|i", $cfields[ $tablefield_field_lowercased ], $matches ) ) { if ( preg_match( "| DEFAULT '(.*?)'|i", $cfields[ $tablefield_field_lowercased ], $matches ) ) {
$default_value = $matches[1]; $default_value = $matches[1];
if ($tablefield->Default != $default_value) { if ($tablefield->Default != $default_value) {
@ -2336,12 +2331,8 @@ function dbDelta( $queries = '', $execute = true ) {
if ( ! ( ( $aindex = array_search( $index_string, $indices ) ) === false ) ) { if ( ! ( ( $aindex = array_search( $index_string, $indices ) ) === false ) ) {
unset( $indices[ $aindex ] ); unset( $indices[ $aindex ] );
break; break;
// todo: Remove this?
//echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n";
} }
} }
// todo: Remove this?
//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";
} }
} }
@ -2359,8 +2350,6 @@ function dbDelta( $queries = '', $execute = true ) {
$allqueries = array_merge($cqueries, $iqueries); $allqueries = array_merge($cqueries, $iqueries);
if ($execute) { if ($execute) {
foreach ($allqueries as $query) { foreach ($allqueries as $query) {
// todo: Remove this?
//echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">".print_r($query, true)."</pre>\n";
$wpdb->query($query); $wpdb->query($query);
} }
} }