mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Cleaning up blogfilename.
git-svn-id: https://develop.svn.wordpress.org/trunk@1997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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') ?> »</a>)</span></h1>
|
||||
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> »</a>)</span></h1>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user