setup_config_display_header

The timeline below displays how wordpress function setup_config_display_header has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.9

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @param string|string[] $body_classes Class attribute values for the body tag.
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><?php 
    _e('WordPress');
    ?></p>
	<?php 
}

WordPress Version: 5.7

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package Locale code of the package.
 * @global WP_Locale $wp_locale        WordPress date and time locale object.
 *
 * @param string|string[] $body_classes Class attribute values for the body tag.
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><?php 
    _e('WordPress');
    ?></p>
	<?php 
}

WordPress Version: 5.5

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package Locale code of the package.
 * @global WP_Locale $wp_locale        WordPress date and time locale object.
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><?php 
    _e('WordPress');
    ?></p>
	<?php 
}

WordPress Version: 5.4

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package Locale code of the package.
 * @global WP_Locale $wp_locale        WordPress date and time locale object.
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><a href="<?php 
    echo esc_url(__('https://wordpress.org/'));
    ?>"><?php 
    _e('WordPress');
    ?></a></p>
	<?php 
}

WordPress Version: 5.3

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package
 * @global WP_Locale $wp_locale        WordPress date and time locale object.
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><a href="<?php 
    echo esc_url(__('https://wordpress.org/'));
    ?>"><?php 
    _e('WordPress');
    ?></a></p>
	<?php 
}

WordPress Version: 5.1

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package
 * @global WP_Locale $wp_locale
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    $dir_attr = '';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
        $dir_attr = ' dir="rtl"';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    echo $dir_attr;
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><a href="<?php 
    echo esc_url(__('https://wordpress.org/'));
    ?>"><?php 
    _e('WordPress');
    ?></a></p>
	<?php 
}

WordPress Version: 4.7

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package
 * @global WP_Locale $wp_locale
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><a href="<?php 
    echo esc_url(__('https://wordpress.org/'));
    ?>" tabindex="-1"><?php 
    _e('WordPress');
    ?></a></p>
<?php 
}

WordPress Version: 4.4

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package
 * @global WP_Locale $wp_locale
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<p id="logo"><a href="<?php 
    esc_attr_e('https://wordpress.org/');
    ?>" tabindex="-1"><?php 
    _e('WordPress');
    ?></a></p>
<?php 
}

WordPress Version: 4.3

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 *
 * @global string    $wp_local_package
 * @global WP_Locale $wp_locale
 *
 * @param string|array $body_classes
 */
function setup_config_display_header($body_classes = array())
{
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<h1 id="logo"><a href="<?php 
    esc_attr_e('https://wordpress.org/');
    ?>" tabindex="-1"><?php 
    _e('WordPress');
    ?></a></h1>
<?php 
}

WordPress Version: 4.0

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 */
function setup_config_display_header($body_classes = array())
{
    global $wp_version;
    $body_classes = (array) $body_classes;
    $body_classes[] = 'wp-core-ui';
    if (is_rtl()) {
        $body_classes[] = 'rtl';
    }
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
	<meta name="viewport" content="width=device-width" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
	<?php 
    wp_admin_css('install', true);
    ?>
</head>
<body class="<?php 
    echo implode(' ', $body_classes);
    ?>">
<h1 id="logo"><a href="<?php 
    esc_attr_e('https://wordpress.org/');
    ?>" tabindex="-1"><?php 
    _e('WordPress');
    ?></a></h1>
<?php 
}

WordPress Version: 3.9

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 */
function setup_config_display_header()
{
    global $wp_version;
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
<link rel="stylesheet" href="css/install.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />
<link rel="stylesheet" href="../wp-includes/css/buttons.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />

</head>
<body class="wp-core-ui<?php 
    if (is_rtl()) {
        echo ' rtl';
    }
    ?>">
<h1 id="logo"><a href="<?php 
    esc_attr_e('https://wordpress.org/');
    ?>"><?php 
    _e('WordPress');
    ?></a></h1>
<?php 
}

WordPress Version: 3.8

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 * @package WordPress
 * @subpackage Installer_WP_Config
 */
function setup_config_display_header()
{
    global $wp_version;
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
<link rel="stylesheet" href="css/install.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />
<link rel="stylesheet" href="../wp-includes/css/buttons.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />

</head>
<body class="wp-core-ui<?php 
    if (is_rtl()) {
        echo ' rtl';
    }
    ?>">
<h1 id="logo"><a href="<?php 
    esc_attr_e('http://wordpress.org/');
    ?>"><?php 
    _e('WordPress');
    ?></a></h1>
<?php 
}

WordPress Version: 3.7

/**
 * Display setup wp-config.php file header.
 *
 * @ignore
 * @since 2.3.0
 * @package WordPress
 * @subpackage Installer_WP_Config
 */
function setup_config_display_header()
{
    global $wp_version;
    header('Content-Type: text/html; charset=utf-8');
    ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"<?php 
    if (is_rtl()) {
        echo ' dir="rtl"';
    }
    ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
    _e('WordPress &rsaquo; Setup Configuration File');
    ?></title>
<link rel="stylesheet" href="css/install.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />
<link rel="stylesheet" href="../wp-includes/css/buttons.css?ver=<?php 
    echo preg_replace('/[^0-9a-z\.-]/i', '', $wp_version);
    ?>" type="text/css" />

</head>
<body class="wp-core-ui<?php 
    if (is_rtl()) {
        echo ' rtl';
    }
    ?>">
<h1 id="logo"><a href="<?php 
    esc_attr_e('http://wordpress.org/');
    ?>"><?php 
    _e('WordPress');
    ?></a></h1>
<?php 
}