mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Deprecate ancient "debugging" tools.
* logIO() and the global $xmlrpc_logging in XML-RPC. * log_app() and the global $app_logging in APP. * debug_fwrite(), debug_fopen(), debug_fclose(), and $debug. see #20051. git-svn-id: https://develop.svn.wordpress.org/trunk@19935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1359,9 +1359,8 @@ function add_clean_index($table, $index) {
|
||||
** false on error
|
||||
*/
|
||||
function maybe_add_column($table_name, $column_name, $create_ddl) {
|
||||
global $wpdb, $debug;
|
||||
global $wpdb;
|
||||
foreach ($wpdb->get_col("DESC $table_name", 0) as $column ) {
|
||||
if ($debug) echo("checking $column == $column_name<br />");
|
||||
if ($column == $column_name) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user