Skip to content

Commit b9613c1

Browse files
authored
Merge pull request #34 from samperrow/dev-1.6.42
Update admin.php
2 parents c2fd958 + 4346437 commit b9613c1

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

admin.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,29 +189,18 @@ public function install_db_table() {
189189
return $this->upgrade_db( $new_table, $old_table );
190190
}
191191

192-
$new_table = $wpdb->prefix . 'pprh_table';
193-
$old_table = $wpdb->prefix . 'gktpp_table';
194-
195-
$prev_table_exists = $wpdb->query(
196-
$wpdb->prepare( 'SHOW TABLES LIKE %s', $old_table )
197-
);
198-
199-
// user is upgrading to new version.
200-
if ( 1 === $prev_table_exists ) {
201-
return $this->upgrade_db( $new_table, $old_table );
202-
}
203-
204192
add_option( 'pprh_autoload_preconnects', 'true', '', 'yes' );
205193
add_option( 'pprh_allow_unauth', 'true', '', 'yes' );
206194
add_option( 'pprh_preconnects_set', 'false', '', 'yes' );
195+
add_option( 'pprh_disable_wp_hints', 'true', '', 'yes' );
207196

208197
$charset_collate = $wpdb->get_charset_collate();
209198

210199
if ( ! function_exists( 'dbDelta' ) ) {
211200
include_once ABSPATH . 'wp-admin/includes/upgrade.php';
212201
}
213202

214-
$pprh_tables = array( $table );
203+
$pprh_tables = array( $new_table );
215204

216205
if ( is_multisite() ) {
217206
$blog_table = $wpdb->base_prefix . 'blogs';

0 commit comments

Comments
 (0)