diff --git a/src/bp-core/admin/bp-core-admin-schema.php b/src/bp-core/admin/bp-core-admin-schema.php index cc9a66df15..ee88ed6d85 100644 --- a/src/bp-core/admin/bp-core-admin-schema.php +++ b/src/bp-core/admin/bp-core-admin-schema.php @@ -1246,7 +1246,7 @@ function bp_core_install_suspend() { KEY suspend_details_id (suspend_id,user_id) ) {$charset_collate};"; - $sql[] = "CREATE TABLE {$bp_prefix}bb_suspend_meta ( + $sql[] = "CREATE TABLE {$bp_prefix}bp_suspend_meta ( id bigint(20) NOT NULL AUTO_INCREMENT, suspend_id bigint(20) NOT NULL, meta_key varchar(255) DEFAULT NULL, diff --git a/src/bp-moderation/bp-moderation-functions.php b/src/bp-moderation/bp-moderation-functions.php index e646387335..0d8916c25d 100644 --- a/src/bp-moderation/bp-moderation-functions.php +++ b/src/bp-moderation/bp-moderation-functions.php @@ -2176,8 +2176,8 @@ function bb_moderation_migration_on_update() { * @since BuddyBoss [BBVERSION] */ $bp_prefix = function_exists( 'bp_core_get_table_prefix' ) ? bp_core_get_table_prefix() : $wpdb->base_prefix; - $table_name = $bp_prefix . 'bb_suspend_meta'; - // Check if the 'bb_suspend_meta' table exists. + $table_name = $bp_prefix . 'bp_suspend_meta'; + // Check if the 'bp_suspend_meta' table exists. $table_exists = $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table_name ) ); // phpcs:ignore if ( $table_exists !== $table_name ) { @@ -2185,7 +2185,7 @@ function bb_moderation_migration_on_update() { $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); $bp_prefix = bp_core_get_table_prefix(); - $sql[] = "CREATE TABLE {$bp_prefix}bb_suspend_meta ( + $sql[] = "CREATE TABLE {$bp_prefix}bp_suspend_meta ( id bigint(20) NOT NULL AUTO_INCREMENT, suspend_id bigint(20) NOT NULL, meta_key varchar(255) DEFAULT NULL, diff --git a/src/bp-moderation/classes/class-bp-moderation-component.php b/src/bp-moderation/classes/class-bp-moderation-component.php index 29ebf761e3..42095a4673 100644 --- a/src/bp-moderation/classes/class-bp-moderation-component.php +++ b/src/bp-moderation/classes/class-bp-moderation-component.php @@ -101,13 +101,13 @@ public function setup_globals( $args = array() ) { 'table_name' => $bp->table_prefix . 'bp_suspend', 'table_name_reports' => $bp->table_prefix . 'bp_moderation', 'table_name_meta' => $bp->table_prefix . 'bp_moderation_meta', - 'table_name_suspend_meta' => $bp->table_prefix . 'bb_suspend_meta', + 'table_name_suspend_meta' => $bp->table_prefix . 'bp_suspend_meta', ); // Metadata tables for groups component. $meta_tables = array( 'moderation' => $bp->table_prefix . 'bp_moderation_meta', - 'suspend' => $bp->table_prefix . 'bb_suspend_meta', + 'suspend' => $bp->table_prefix . 'bp_suspend_meta', ); // Fetch the default directory title.