Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Jun 29, 2017
2 parents 273ee8e + ce623f9 commit ec6ca7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wpstarter/src/Setup/Steps/WPCliStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public function allowed( Config $config, ArrayAccess $paths )
*/
public function run( ArrayAccess $paths )
{
$wp_install_path = rtrim( "{$paths['root']}/{$paths['wp']}", '/' );
// wp-cli.yml is stored in root (see targetPath()) so we can use relative path to root
$wp_install_path = rtrim( "./{$paths['wp']}", '/' );

$this->vars = array( 'WP_INSTALL_PATH' => $wp_install_path, );
$build = $this->builder->build(
Expand Down
2 changes: 2 additions & 0 deletions wpstarter/templates/wp-config.example
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ define('WPSTARTER_PATH', {{{ENV_REL_PATH}}});
* @var array $env All the variables stored in environment variables
*/
$env = WCM\WPStarter\Helpers::settings({{{ENV_REL_PATH}}}, '{{{ENV_FILE_NAME}}}');

global $table_prefix;
array_walk($env, function ($value, $name) {
switch ($name) {
case 'DB_TABLE_PREFIX':
Expand Down

0 comments on commit ec6ca7b

Please sign in to comment.