Skip to content

Commit

Permalink
Flip define logic to look for ABSPATH first during exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfoell committed Feb 5, 2020
1 parent 85d8e04 commit c7ba04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit c7ba04e

Please sign in to comment.