Skip to content

Commit

Permalink
Merge pull request #9 from humanmade/allow-table-prefix-override
Browse files Browse the repository at this point in the history
Allow overriding table prefix
  • Loading branch information
joehoyle authored May 13, 2019
2 parents b658eba + e7f228b commit 75bde14
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 75bde14

Please sign in to comment.