From c7ba04ef4a814c0bbebd5b2967c9c99cb8a472fd Mon Sep 17 00:00:00 2001 From: Justin Foell <630830+jrfoell@users.noreply.github.com> Date: Wed, 5 Feb 2020 09:33:55 -0600 Subject: [PATCH] Flip define logic to look for ABSPATH first during exception --- src/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Installer.php b/src/Installer.php index 476295d..d1d88a0 100644 --- a/src/Installer.php +++ b/src/Installer.php @@ -74,7 +74,7 @@ private static function include_wp( $dir ) { * We may encounter a database exception if it's not hooked up, * that's OK if we can still get to the define()s. */ - if ( ! defined( 'WP_CONTENT_DIR' ) && ! defined( 'ABSPATH' ) ) { + if ( ! defined( 'ABSPATH' ) && ! defined( 'WP_CONTENT_DIR' ) ) { return false; } }