summaryrefslogtreecommitdiffstats
path: root/wp-admin/install-helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/install-helper.php')
-rw-r--r--wp-admin/install-helper.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-admin/install-helper.php b/wp-admin/install-helper.php
index 8f04418..eebe0e3 100644
--- a/wp-admin/install-helper.php
+++ b/wp-admin/install-helper.php
@@ -9,6 +9,7 @@ $debug = 0;
** Returns: true if already exists or on successful completion
** false on error
*/
+if ( ! function_exists('maybe_create_table') ) :
function maybe_create_table($table_name, $create_ddl) {
global $wpdb;
foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
@@ -26,6 +27,7 @@ function maybe_create_table($table_name, $create_ddl) {
}
return false;
}
+endif;
/**
** maybe_add_column()
@@ -33,6 +35,7 @@ function maybe_create_table($table_name, $create_ddl) {
** Returns: true if already exists or on successful completion
** false on error
*/
+if ( ! function_exists('maybe_add_column') ) :
function maybe_add_column($table_name, $column_name, $create_ddl) {
global $wpdb, $debug;
foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
@@ -51,7 +54,7 @@ function maybe_add_column($table_name, $column_name, $create_ddl) {
}
return false;
}
-
+endif;
/**
** maybe_drop_column()