Break blog header up into functional chunks. Stick it all in a WP class for now. Make wp() the front door. Move template/theme loader code into template-loader.php. Clean up feed file loadup. Modularize.

git-svn-id: https://develop.svn.wordpress.org/trunk@2627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-06-10 23:15:13 +00:00
parent 7212a28e17
commit 7d6fc8af08
11 changed files with 312 additions and 271 deletions

View File

@@ -1,9 +1,8 @@
<?php
if ( empty($feed) ) {
$feed = 'rss2';
$withcomments = 1;
$doing_rss = 1;
require('wp-blog-header.php');
if (empty($wp)) {
require_once('wp-config.php');
wp('feed=rss2&withcomments=1');
}
header('Content-type: text/xml;charset=' . get_settings('blog_charset'), true);