Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Apr 2, 2018
1 parent cc45905 commit ebb9635
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/divi-dev-utils/WPConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const findConfig = require('find-config');

class WPConfig {
constructor() {
this.config_path = findConfig('wp-config.php');
const cwd = process.env.PWD || process.cwd();

this.config_path = findConfig('wp-config.php', { cwd });
this.config = '';
this._getRegExp = null;

Expand Down

0 comments on commit ebb9635

Please sign in to comment.