wp/wp-load.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-load.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-load.php	Tue Dec 15 13:49:49 2020 +0100
@@ -18,7 +18,7 @@
 
 /** Define ABSPATH as this file's directory */
 if ( ! defined( 'ABSPATH' ) ) {
-	define( 'ABSPATH', dirname( __FILE__ ) . '/' );
+	define( 'ABSPATH', __DIR__ . '/' );
 }
 
 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
@@ -34,24 +34,24 @@
 if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
 
 	/** The config file resides in ABSPATH */
-	require_once( ABSPATH . 'wp-config.php' );
+	require_once ABSPATH . 'wp-config.php';
 
 } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
 
 	/** The config file resides one level above ABSPATH but is not part of another installation */
-	require_once( dirname( ABSPATH ) . '/wp-config.php' );
+	require_once dirname( ABSPATH ) . '/wp-config.php';
 
 } else {
 
-	// A config file doesn't exist
+	// A config file doesn't exist.
 
 	define( 'WPINC', 'wp-includes' );
-	require_once( ABSPATH . WPINC . '/load.php' );
+	require_once ABSPATH . WPINC . '/load.php';
 
 	// Standardize $_SERVER variables across setups.
 	wp_fix_server_vars();
 
-	require_once( ABSPATH . WPINC . '/functions.php' );
+	require_once ABSPATH . WPINC . '/functions.php';
 
 	$path = wp_guess_url() . '/wp-admin/setup-config.php';
 
@@ -66,7 +66,7 @@
 	}
 
 	define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
-	require_once( ABSPATH . WPINC . '/version.php' );
+	require_once ABSPATH . WPINC . '/version.php';
 
 	wp_check_php_mysql_versions();
 	wp_load_translations_early();
@@ -78,9 +78,9 @@
 		'<code>wp-config.php</code>'
 	) . '</p>';
 	$die .= '<p>' . sprintf(
-		/* translators: %s: Codex URL */
+		/* translators: %s: Documentation URL. */
 		__( "Need more help? <a href='%s'>We got it</a>." ),
-		__( 'https://codex.wordpress.org/Editing_wp-config.php' )
+		__( 'https://wordpress.org/support/article/editing-wp-config-php/' )
 	) . '</p>';
 	$die .= '<p>' . sprintf(
 		/* translators: %s: wp-config.php */