define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content'
);
require_once ABSPATH . WPINC . '/functions.php';
$path =
wp_guess_url() . '/wp-admin/setup-config.php';
// Redirect to setup-config.php.
if ( !
str_contains( $_SERVER['REQUEST_URI'
], 'setup-config'
) ) { header( 'Location: ' .
$path );
exit;
} wp_load_translations_early();
// Die with an error message.
$die = '<p>' .
sprintf( /* translators: %s: wp-config.php */
__( "There doesn't seem to be a %s file. It is needed before the installation can continue."
),
'<code>wp-config.php</code>'
) . '</p>';
$die .= '<p>' .
sprintf( /* translators: 1: Documentation URL, 2: wp-config.php */
__( 'Need more help? <a href="%1$s">Read the support article on %2$s</a>.'
),
__( 'https://wordpress.org/documentation/article/editing-wp-config-php/'
),