Skip to content

Commit 297ff7c

Browse files
committed
General: Only override $table_prefix if not defined
1 parent 27233a0 commit 297ff7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
*
139139
* @global string $table_prefix The database table prefix.
140140
*/
141-
$GLOBALS['table_prefix'] = $table_prefix;
141+
$GLOBALS['table_prefix'] = isset( $GLOBALS['table_prefix'] ) ? $GLOBALS['table_prefix'] : $table_prefix;
142142

143143
// Set the database table prefix and the format specifiers for database table columns.
144144
wp_set_wpdb_vars();

0 commit comments

Comments
 (0)