<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
第一篇很简单了,是index.php的内容,也是程序的入口。
其实就是预定义一个WP_USE_THEMES,从这里看不出作用。
然后载入wp-blog-header.php文件内容。
可以看出高水平的程序员一般把程序的入口写的很简单。