ldc-sbv/wp-blog-header.php

22 lines
351 B
PHP
Raw Normal View History

2017-08-08 12:06:05 +02:00
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
2021-09-21 15:01:08 +02:00
if ( ! isset( $wp_did_header ) ) {
2017-08-08 12:06:05 +02:00
$wp_did_header = true;
// Load the WordPress library.
2021-09-21 15:01:08 +02:00
require_once __DIR__ . '/wp-load.php';
2017-08-08 12:06:05 +02:00
// Set up the WordPress query.
wp();
// Load the theme template.
2021-09-21 15:01:08 +02:00
require_once ABSPATH . WPINC . '/template-loader.php';
2017-08-08 12:06:05 +02:00
}