refactor: name the index table in uninstall.php (latepoint 0.1.2) #3
+2
-1
@@ -20,7 +20,8 @@ foreach ( $tmdo_latepoint_blogs as $tmdo_latepoint_blog ) {
|
|||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
switch_to_blog( $tmdo_latepoint_blog );
|
switch_to_blog( $tmdo_latepoint_blog );
|
||||||
}
|
}
|
||||||
$wpdb->query( 'DROP TABLE IF EXISTS `' . $wpdb->prefix . 'hpct_latepoint_idx`' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange
|
$tmdo_latepoint_table = $wpdb->prefix . 'hpct_latepoint_idx';
|
||||||
|
$wpdb->query( "DROP TABLE IF EXISTS `{$tmdo_latepoint_table}`" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange
|
||||||
delete_option( 'tmdo_latepoint_db_version' );
|
delete_option( 'tmdo_latepoint_db_version' );
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
|
|||||||
Reference in New Issue
Block a user