Skip to content

Commit df23573

Browse files
committed
Do not rely on the config file to boot
1 parent b45e379 commit df23573

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/wp-load.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,6 @@
103103

104104
wp_die( $die, __( 'WordPress › Error' ) );
105105
}
106+
107+
/** Sets up WordPress vars and included files. */
108+
require_once ABSPATH . 'wp-settings.php';

wp-config-sample.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,3 @@
9292

9393

9494
/* That's all, stop editing! Happy publishing. */
95-
96-
/** Absolute path to the WordPress directory. */
97-
if ( ! defined( 'ABSPATH' ) ) {
98-
define( 'ABSPATH', __DIR__ . '/' );
99-
}
100-
101-
/** Sets up WordPress vars and included files. */
102-
require_once ABSPATH . 'wp-settings.php';

0 commit comments

Comments
 (0)