wp-blog-header.php 369 Bytes
Newer Older
godog's avatar
godog committed
1 2 3 4 5 6 7
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */

samba's avatar
samba committed
8
if ( ! isset( $wp_did_header ) ) {
godog's avatar
godog committed
9 10 11

	$wp_did_header = true;

lechuck's avatar
lechuck committed
12
	// Load the WordPress library.
samba's avatar
samba committed
13
	require_once( dirname( __FILE__ ) . '/wp-load.php' );
godog's avatar
godog committed
14

lechuck's avatar
lechuck committed
15
	// Set up the WordPress query.
godog's avatar
godog committed
16 17
	wp();

lechuck's avatar
lechuck committed
18
	// Load the theme template.
godog's avatar
godog committed
19 20 21
	require_once( ABSPATH . WPINC . '/template-loader.php' );

}