diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 926cfb6ece..773f6381ac 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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 { diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 4d517b0e68..fa9a75d90d 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -85,7 +85,7 @@ window.onload = blurry; get_author_permastruct(); if (empty($link)) { - $file = get_settings('home') . '/' . get_settings('blogfilename'); + $file = get_settings('home') . '/'; $link = $file.$querystring_start.'author'.$querystring_equal.$auth_ID; } else { if ('' == $author_nicename) $author_nicename = $cache_userdata[$author_id]->author_nicename; @@ -170,7 +170,7 @@ function wp_list_authors($args = '') { } function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { - global $wpdb, $blogfilename; + global $wpdb; $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_nickname <> 'admin' " : '') . "ORDER BY user_nickname"; $authors = $wpdb->get_results($query); diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index b51058363f..fb1a80248d 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -30,7 +30,7 @@ function get_category_link($echo = false, $category_id, $category_nicename) { $catlink = $wp_rewrite->get_category_permastruct(); if (empty($catlink)) { - $file = get_settings('home') . '/' . get_settings('blogfilename'); + $file = get_settings('home') . '/'; $catlink = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID; } else { $category_nicename = $cache_categories[$category_id]->category_nicename; @@ -213,7 +213,7 @@ function dropdown_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_ $selected=0, $hide=0) { global $wpdb; global $querystring_start, $querystring_equal, $querystring_separator; - if (($file == 'blah') || ($file == '')) $file = get_settings('home') . '/' . get_settings('blogfilename'); + if (($file == 'blah') || ($file == '')) $file = get_settings('home') . '/'; if (!$selected) $selected=$cat; $sort_column = 'cat_'.$sort_column; @@ -286,7 +286,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde global $querystring_start, $querystring_equal, $querystring_separator; // Optiondates now works if ('' == $file) { - $file = get_settings('home') . '/' . get_settings('blogfilename'); + $file = get_settings('home') . '/'; } $exclusions = ''; diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 9b302f40e4..a26057c030 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -274,9 +274,9 @@ function get_archives($type='', $limit='', $format='html', $before = '', $after $archive_week_separator = '–'; // archive link url - $archive_link_m = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'m'.$querystring_equal; # monthly archive; - $archive_link_w = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'w'.$querystring_equal; # weekly archive; - $archive_link_p = get_settings('siteurl').'/'.get_settings('blogfilename').$querystring_start.'p'.$querystring_equal; # post-by-post archive; + $archive_link_m = get_settings('siteurl').'/'.$querystring_start.'m'.$querystring_equal; # monthly archive; + $archive_link_w = get_settings('siteurl').'/'.$querystring_start.'w'.$querystring_equal; # weekly archive; + $archive_link_p = get_settings('siteurl').'/'.$querystring_start.'p'.$querystring_equal; # post-by-post archive; // over-ride general date format ? 0 = no: use the date format set in Options, 1 = yes: over-ride $archive_date_format_over_ride = 0; @@ -336,7 +336,7 @@ function get_archives($type='', $limit='', $format='html', $before = '', $after $arc_week = get_weekstartend($arcresult->yyyymmdd, get_settings('start_of_week')); $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); - $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_settings('home'), get_settings('blogfilename'), $querystring_start, + $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_settings('home'), '', $querystring_start, $querystring_equal, $arc_year, $querystring_separator, $querystring_equal, $arcresult->week); $text = $arc_week_start . $archive_week_separator . $arc_week_end; diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 3c29d8411c..a63010ff0a 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -78,7 +78,7 @@ function get_permalink($id = false) { ); return get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink); } else { // if they're not using the fancy permalink option - $permalink = get_settings('home') . '/' . get_settings('blogfilename') . '?p=' . $idpost->ID; + $permalink = get_settings('home') . '/?p=' . $idpost->ID; return $permalink; } } @@ -113,7 +113,7 @@ function get_year_link($year) { $yearlink = str_replace('%year%', $year, $yearlink); return get_settings('home') . trailingslashit($yearlink); } else { - return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year; + return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year; } } @@ -127,7 +127,7 @@ function get_month_link($year, $month) { $monthlink = str_replace('%monthnum%', zeroise(intval($month), 2), $monthlink); return get_settings('home') . trailingslashit($monthlink); } else { - return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2); + return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2); } } @@ -144,7 +144,7 @@ function get_day_link($year, $month, $day) { $daylink = str_replace('%day%', zeroise(intval($day), 2), $daylink); return get_settings('home') . trailingslashit($daylink); } else { - return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2); + return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2); } } diff --git a/wp-includes/vars.php b/wp-includes/vars.php index 970b4a8dde..a568e1870d 100644 --- a/wp-includes/vars.php +++ b/wp-includes/vars.php @@ -13,7 +13,7 @@ if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) { $pagenow = explode('?', $pagenow); $pagenow = $pagenow[0]; if (($querystring_start == '/') && ($pagenow != 'post.php')) { - $pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename'); + $pagenow = get_settings('siteurl') . '/'; } } else { $pagenow = 'index.php'; diff --git a/wp-register.php b/wp-register.php index 516ad895ec..c455776507 100644 --- a/wp-register.php +++ b/wp-register.php @@ -130,7 +130,7 @@ case 'disabled':


- +

diff --git a/xmlrpc.php b/xmlrpc.php index c10c70dc0d..9a1676e19b 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -149,7 +149,7 @@ class wp_xmlrpc_server extends IXR_Server { $struct = array( 'isAdmin' => $is_admin, - 'url' => get_settings('home') .'/'.get_settings('blogfilename'), + 'url' => get_settings('home') . '/', 'blogid' => '1', 'blogName' => get_settings('blogname') ); @@ -281,7 +281,7 @@ class wp_xmlrpc_server extends IXR_Server { } /* warning: here we make the assumption that the weblog's URI is on the same server */ - $filename = get_settings('home').'/'.get_settings('blogfilename'); + $filename = get_settings('home') . '/'; $filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); $f = fopen($filename, 'r'); @@ -315,7 +315,7 @@ class wp_xmlrpc_server extends IXR_Server { } /* warning: here we make the assumption that the weblog's URI is on the same server */ - $filename = get_settings('home').'/'.get_settings('blogfilename'); + $filename = get_settings('home') . '/'; $filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); if ($f = fopen($filename, 'w+')) {