From 8fefe4e13c1ea753afe38ac2b964a707a56a37c3 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 23 May 2016 15:03:18 +0000 Subject: [PATCH] Database: Remove debug comments in `dbDelta()`. git-svn-id: https://develop.svn.wordpress.org/trunk@37533 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 5c29a1a832..4c40a62538 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -2183,9 +2183,6 @@ function dbDelta( $queries = '', $execute = true ) { // Separate field lines into an array. $flds = explode("\n", $qryline); - // todo: Remove this? - //echo "
\n".print_r(strtolower($table), true).":\n".print_r($cqueries, true)."

"; - // For every field line specified in the query. foreach ($flds as $fld) { @@ -2251,8 +2248,6 @@ function dbDelta( $queries = '', $execute = true ) { } // Get the default value from the array. - // todo: Remove this? - //echo "{$cfields[strtolower($tablefield->Field)]}
"; if ( preg_match( "| DEFAULT '(.*?)'|i", $cfields[ $tablefield_field_lowercased ], $matches ) ) { $default_value = $matches[1]; if ($tablefield->Default != $default_value) { @@ -2336,12 +2331,8 @@ function dbDelta( $queries = '', $execute = true ) { if ( ! ( ( $aindex = array_search( $index_string, $indices ) ) === false ) ) { unset( $indices[ $aindex ] ); break; - // todo: Remove this? - //echo "
{$table}:
Found index:".$index_string."
\n"; } } - // todo: Remove this? - //else echo "
{$table}:
Did not find index:".$index_string."
".print_r($indices, true)."
\n"; } } @@ -2359,8 +2350,6 @@ function dbDelta( $queries = '', $execute = true ) { $allqueries = array_merge($cqueries, $iqueries); if ($execute) { foreach ($allqueries as $query) { - // todo: Remove this? - //echo "
".print_r($query, true)."
\n"; $wpdb->query($query); } }