home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / WP.iso / wordpress / wp-blog-header.php < prev    next >
Encoding:
PHP Script  |  2015-12-19  |  364 b   |  22 lines

  1. <?php
  2. /**
  3.  * Loads the WordPress environment and template.
  4.  *
  5.  * @package WordPress
  6.  */
  7.  
  8. if ( !isset($wp_did_header) ) {
  9.  
  10.     $wp_did_header = true;
  11.  
  12.     // Load the WordPress library.
  13.     require_once( dirname(__FILE__) . '/wp-load.php' );
  14.  
  15.     // Set up the WordPress query.
  16.     wp();
  17.  
  18.     // Load the theme template.
  19.     require_once( ABSPATH . WPINC . '/template-loader.php' );
  20.  
  21. }
  22.