From 297ff7c82a2fbeaf71b454ce92cc7af55f0f30d4 Mon Sep 17 00:00:00 2001 From: Ninos Ego Date: Fri, 27 Jun 2025 13:30:14 +0200 Subject: [PATCH] General: Only override `$table_prefix` if not defined --- src/wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-settings.php b/src/wp-settings.php index f5a0929db87c1..04bf2fb1151ce 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -138,7 +138,7 @@ * * @global string $table_prefix The database table prefix. */ -$GLOBALS['table_prefix'] = $table_prefix; +$GLOBALS['table_prefix'] = isset( $GLOBALS['table_prefix'] ) ? $GLOBALS['table_prefix'] : $table_prefix; // Set the database table prefix and the format specifiers for database table columns. wp_set_wpdb_vars();