Skip to content

Commit

Permalink
Allow overriding table prefix
Browse files Browse the repository at this point in the history
Fixes #2.
  • Loading branch information
joehoyle committed May 11, 2019
1 parent bb8561c commit e7f228b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
}
}

$table_prefix = getenv( 'TABLE_PREFIX' ) ?: 'wp_';
if ( ! isset( $table_prefix ) ) {
$table_prefix = 'wp_';
}

/*
* DB constants are expected to be provided by other modules, as they are
Expand Down

0 comments on commit e7f228b

Please sign in to comment.