[wp-cvs] wordpress wp-blog-header.php,1.122,1.123

Ryan Boren rboren at users.sourceforge.net
Sun Feb 13 21:20:03 GMT 2005


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29209

Modified Files:
	wp-blog-header.php 
Log Message:
Process feed and trackback templates even if not using themes.

Index: wp-blog-header.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-blog-header.php,v
retrieving revision 1.122
retrieving revision 1.123
diff -C2 -d -r1.122 -r1.123
*** wp-blog-header.php	13 Feb 2005 20:38:28 -0000	1.122
--- wp-blog-header.php	13 Feb 2005 21:20:00 -0000	1.123
***************
*** 5,8 ****
--- 5,10 ----
      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.");
  
+ $wp_did_header = true;
+ 
  require_once( dirname(__FILE__) . '/wp-config.php');
  
***************
*** 184,192 ****
  	$doing_trackback = true;
  
- $wp_did_header = true;
- endif;
- 
- $wp_template_dir = TEMPLATEPATH;
- 
  // Template redirection
  if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
--- 186,189 ----
***************
*** 198,208 ****
  		include(ABSPATH . '/wp-trackback.php');
  		exit;
- 	}
- 	if ( is_feed() && empty($doing_rss) ) {
- 		include(ABSPATH . '/wp-feed.php');
- 		exit;
- 	} else if ( is_trackback() ) {
- 		include(ABSPATH . '/wp-trackback.php');
- 		exit;
  	} else if ( is_404() && get_404_template() ) {
  		include(get_404_template());
--- 195,198 ----
***************
*** 239,242 ****
--- 229,241 ----
  		exit;
  	}
+ } else {
+ 	// Process feeds and trackbacks even if not using themes.
+ 	if ( is_feed() && empty($doing_rss) ) {
+ 		include(ABSPATH . '/wp-feed.php');
+ 		exit;
+ 	} else if ( is_trackback() ) {
+ 		include(ABSPATH . '/wp-trackback.php');
+ 		exit;
+ 	}
  }
  
***************
*** 246,248 ****
--- 245,248 ----
  }
  
+ endif;
  ?>
\ No newline at end of file



More information about the cvs mailing list