Cleaning up blogfilename.

git-svn-id: https://develop.svn.wordpress.org/trunk@1997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-12-24 01:34:47 +00:00
parent c12f7caf57
commit 3ebf5a36e2
10 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -794,7 +794,7 @@ function get_home_path() {
}
function get_real_file_to_edit($file) {
if ('index.php' == $file || get_settings('blogfilename') == $file ||
if ('index.php' == $file ||
'.htaccess' == $file) {
$real_file = get_home_path() . $file;
} else {
+1 -1
View File
@@ -85,7 +85,7 @@ window.onload = blurry;
<body>
<div id="wphead">
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/' . get_settings('blogfilename'); ?>"><?php _e('View site') ?> &raquo;</a>)</span></h1>
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> &raquo;</a>)</span></h1>
</div>
<?php
-1
View File
@@ -154,7 +154,6 @@ function populate_options() {
$guessurl = preg_replace('|/wp-admin/.*|i', '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
add_option('siteurl', $guessurl, 'WordPress web address');
add_option('blogfilename', '', 'Default file for blog');
add_option('blogname', 'My Weblog', 'Blog title');
add_option('blogdescription', 'Just another WordPress weblog', 'Short tagline');
add_option('new_users_can_blog', 0);