Changeset 2304
- Timestamp:
- 02/13/05 21:20:00 (4 years ago)
- Files:
-
- trunk/wp-blog-header.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-blog-header.php
r2303 r2304 4 4 if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) 5 5 die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); 6 7 $wp_did_header = true; 6 8 7 9 require_once( dirname(__FILE__) . '/wp-config.php'); … … 184 186 $doing_trackback = true; 185 187 186 $wp_did_header = true;187 endif;188 189 $wp_template_dir = TEMPLATEPATH;190 191 188 // Template redirection 192 189 if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) { … … 198 195 include(ABSPATH . '/wp-trackback.php'); 199 196 exit; 200 }201 if ( is_feed() && empty($doing_rss) ) {202 include(ABSPATH . '/wp-feed.php');203 exit;204 } else if ( is_trackback() ) {205 include(ABSPATH . '/wp-trackback.php');206 exit;207 197 } else if ( is_404() && get_404_template() ) { 208 198 include(get_404_template()); … … 239 229 exit; 240 230 } 231 } else { 232 // Process feeds and trackbacks even if not using themes. 233 if ( is_feed() && empty($doing_rss) ) { 234 include(ABSPATH . '/wp-feed.php'); 235 exit; 236 } else if ( is_trackback() ) { 237 include(ABSPATH . '/wp-trackback.php'); 238 exit; 239 } 241 240 } 242 241 … … 246 245 } 247 246 247 endif; 248 248 ?>
