Skip to content

Commit eef6fa5

Browse files
Apply alternative suggestion
Co-authored-by: Weston Ruter <[email protected]>
1 parent e6bbbfc commit eef6fa5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-settings.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
*
141141
* @global string $table_prefix The database table prefix.
142142
*/
143-
if ( ! isset( $GLOBALS['table_prefix'] ) && isset( $table_prefix ) ) {
143+
if ( ! isset( $GLOBALS['table_prefix'] ) ) {
144+
assert( isset( $table_prefix ) );
144145
$GLOBALS['table_prefix'] = $table_prefix;
145146
}
146147

0 commit comments

Comments
 (0)