Skip to content

Commit

Permalink
use getcwd() as ABSPATH testing fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
joemaller committed Feb 28, 2024
1 parent 526bacc commit 5f4049b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThemeInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ThemeInit

public function __construct($options = [])
{
$this->ABSPATH = defined('ABSPATH') ? ABSPATH : '/'; // WordPress always defines this
$this->ABSPATH = defined('ABSPATH') ? ABSPATH : getcwd(); // WordPress always defines this
$this->WP_DEBUG = defined('WP_DEBUG') && WP_DEBUG;

$defaults = ['showIncludes' => true, 'enableComments' => false, 'jQueryMigrate' => true];
Expand Down

0 comments on commit 5f4049b

Please sign in to comment.