[wp-cvs] wordpress/wp-includes functions.php,1.205,1.206

Ryan Boren rboren at users.sourceforge.net
Tue Nov 9 02:29:03 UTC 2004


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

Modified Files:
	functions.php 
Log Message:
Put the right index.php in the template file list for the default theme.

Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.205
retrieving revision 1.206
diff -C2 -d -r1.205 -r1.206
*** functions.php	5 Nov 2004 03:56:40 -0000	1.205
--- functions.php	9 Nov 2004 02:29:01 -0000	1.206
***************
*** 2046,2054 ****
  	}
  
! 	$default_files = array(get_settings('blogfilename'), 'wp-comments.php', 'wp-comments-popup.php', 'wp-comments-post.php', 'wp-footer.php', 'wp-header.php', 'wp-sidebar.php', 'footer.php', 'header.php', 'sidebar.php');
  
  	// Get the files for the default template.
  	$default_template_files = array();
  	{
  		$dirs = array('', 'wp-content');
  		foreach ($dirs as $dir) {
--- 2046,2061 ----
  	}
  
! 	$default_files = array('wp-comments.php', 'wp-comments-popup.php', 'wp-comments-post.php', 'wp-footer.php', 'wp-header.php', 'wp-sidebar.php', 'footer.php', 'header.php', 'sidebar.php');
  
  	// Get the files for the default template.
  	$default_template_files = array();
  	{
+ 		// Find the index.
+ 		if (file_exists(ABSPATH  .'wp-content/index.php')) {
+ 			$default_template_files[] = 'wp-content/index.php';
+ 		} else {
+ 			$default_template_files[] = 'index.php';
+ 		}
+ 		
  		$dirs = array('', 'wp-content');
  		foreach ($dirs as $dir) {




More information about the cvs mailing list