display_header( string|array $body_classes = array() )

Display ClassicPress-branded installation header.


Parameters

$body_classes

(Optional)

Default value: array()


Source

File: wp-admin/install.php

function display_header( $body_classes = array() ) {

	// Make sure we're working with an array.
	$body_classes = (array) $body_classes;
	// Add core ui and cp installation classes.
	$body_classes[] = 'cp-installation';
	$body_classes[] = 'wp-core-ui';
	// Add rtl class, if needed.
	if ( is_rtl() ) {
		$body_classes[] = 'rtl';
	}

	// Set the content type.
	header( 'Content-Type: text/html; charset=utf-8' );

	// Print out the page header.
	echo '<!DOCTYPE html>' . "\n";
	echo '<html xmlns="http://www.w3.org/1999/xhtml"' . get_language_attributes() . '>' . "\n";
	echo '<head>' . "\n";
	echo '<meta name="viewport" content="width=device-width" />' . "\n";
	echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n";
	echo '<meta name="robots" content="noindex,nofollow" />' . "\n";
	echo '<title>' . __( 'ClassicPress &rsaquo; Installation' ) . '</title>' . "\n";
	wp_admin_css( 'install', true );
	wp_admin_css( 'dashicons', true ); // For?
	echo '</head>' . "\n";
	echo '<body class="' . implode( ' ', $body_classes ) . '">' . "\n";

	// Add the linked ClassicPress logo.
	echo '<p id="logo"><a href="' . esc_url( 'https://www.classicpress.net/' ) . '" tabindex="-1">' . __( 'ClassicPress' ) . '</a></p>' . "\n";
}


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.