Put the right index.php in the template file list for the default theme.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
064edd94ae
commit
390531cad7
|
@ -2045,11 +2045,18 @@ function get_themes() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$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');
|
$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.
|
// Get the files for the default template.
|
||||||
$default_template_files = array();
|
$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');
|
$dirs = array('', 'wp-content');
|
||||||
foreach ($dirs as $dir) {
|
foreach ($dirs as $dir) {
|
||||||
$template_dir = @ dir(ABSPATH . $dir);
|
$template_dir = @ dir(ABSPATH . $dir);
|
||||||
|
|
Loading…
Reference in New Issue