Changeset 1997
- Timestamp:
- 12/24/2004 01:34:47 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r1995 r1997 795 795 796 796 function get_real_file_to_edit($file) { 797 if ('index.php' == $file || get_settings('blogfilename') == $file ||797 if ('index.php' == $file || 798 798 '.htaccess' == $file) { 799 799 $real_file = get_home_path() . $file; -
trunk/wp-admin/admin-header.php
r1935 r1997 86 86 87 87 <div id="wphead"> 88 <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>88 <h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/'; ?>"><?php _e('View site') ?> »</a>)</span></h1> 89 89 </div> 90 90 -
trunk/wp-admin/upgrade-schema.php
r1975 r1997 155 155 $guessurl = preg_replace('|/wp-admin/.*|i', '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 156 156 add_option('siteurl', $guessurl, 'WordPress web address'); 157 add_option('blogfilename', '', 'Default file for blog');158 157 add_option('blogname', 'My Weblog', 'Blog title'); 159 158 add_option('blogdescription', 'Just another WordPress weblog', 'Short tagline'); -
trunk/wp-includes/template-functions-author.php
r1996 r1997 129 129 130 130 if (empty($link)) { 131 $file = get_settings('home') . '/' . get_settings('blogfilename');131 $file = get_settings('home') . '/'; 132 132 $link = $file.$querystring_start.'author'.$querystring_equal.$auth_ID; 133 133 } else { … … 171 171 172 172 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { 173 global $wpdb , $blogfilename;173 global $wpdb; 174 174 175 175 $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_nickname <> 'admin' " : '') . "ORDER BY user_nickname"; -
trunk/wp-includes/template-functions-category.php
r1940 r1997 31 31 32 32 if (empty($catlink)) { 33 $file = get_settings('home') . '/' . get_settings('blogfilename');33 $file = get_settings('home') . '/'; 34 34 $catlink = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID; 35 35 } else { … … 214 214 global $wpdb; 215 215 global $querystring_start, $querystring_equal, $querystring_separator; 216 if (($file == 'blah') || ($file == '')) $file = get_settings('home') . '/' . get_settings('blogfilename');216 if (($file == 'blah') || ($file == '')) $file = get_settings('home') . '/'; 217 217 if (!$selected) $selected=$cat; 218 218 $sort_column = 'cat_'.$sort_column; … … 287 287 // Optiondates now works 288 288 if ('' == $file) { 289 $file = get_settings('home') . '/' . get_settings('blogfilename');289 $file = get_settings('home') . '/'; 290 290 } 291 291 -
trunk/wp-includes/template-functions-general.php
r1940 r1997 275 275 276 276 // archive link url 277 $archive_link_m = get_settings('siteurl').'/'. get_settings('blogfilename').$querystring_start.'m'.$querystring_equal; # monthly archive;278 $archive_link_w = get_settings('siteurl').'/'. get_settings('blogfilename').$querystring_start.'w'.$querystring_equal; # weekly archive;279 $archive_link_p = get_settings('siteurl').'/'. get_settings('blogfilename').$querystring_start.'p'.$querystring_equal; # post-by-post archive;277 $archive_link_m = get_settings('siteurl').'/'.$querystring_start.'m'.$querystring_equal; # monthly archive; 278 $archive_link_w = get_settings('siteurl').'/'.$querystring_start.'w'.$querystring_equal; # weekly archive; 279 $archive_link_p = get_settings('siteurl').'/'.$querystring_start.'p'.$querystring_equal; # post-by-post archive; 280 280 281 281 // over-ride general date format ? 0 = no: use the date format set in Options, 1 = yes: over-ride … … 337 337 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 338 338 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); 339 $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_settings('home'), get_settings('blogfilename'), $querystring_start,339 $url = sprintf('%s/%s%sm%s%s%sw%s%d', get_settings('home'), '', $querystring_start, 340 340 $querystring_equal, $arc_year, $querystring_separator, 341 341 $querystring_equal, $arcresult->week); -
trunk/wp-includes/template-functions-links.php
r1908 r1997 79 79 return get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink); 80 80 } else { // if they're not using the fancy permalink option 81 $permalink = get_settings('home') . '/ ' . get_settings('blogfilename') . '?p=' . $idpost->ID;81 $permalink = get_settings('home') . '/?p=' . $idpost->ID; 82 82 return $permalink; 83 83 } … … 114 114 return get_settings('home') . trailingslashit($yearlink); 115 115 } else { 116 return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year;116 return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year; 117 117 } 118 118 } … … 128 128 return get_settings('home') . trailingslashit($monthlink); 129 129 } else { 130 return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2);130 return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2); 131 131 } 132 132 } … … 145 145 return get_settings('home') . trailingslashit($daylink); 146 146 } else { 147 return get_settings('home') .'/'. get_settings('blogfilename') .$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2);147 return get_settings('home') .'/'. $querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2); 148 148 } 149 149 } -
trunk/wp-includes/vars.php
r1994 r1997 14 14 $pagenow = $pagenow[0]; 15 15 if (($querystring_start == '/') && ($pagenow != 'post.php')) { 16 $pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');16 $pagenow = get_settings('siteurl') . '/'; 17 17 } 18 18 } else { -
trunk/wp-register.php
r1971 r1997 131 131 <h2><?php _e('Registration Disabled') ?></h2> 132 132 <p><?php _e('User registration is currently not allowed.') ?><br /> 133 <a href="<?php echo get_settings('home') . '/'. get_settings('blogfilename'); ?>" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a>133 <a href="<?php echo get_settings('home') . '/'; ?>" title="<?php _e('Go back to the blog') ?>"><?php _e('Home') ?></a> 134 134 </p> 135 135 </div> -
trunk/xmlrpc.php
r1964 r1997 150 150 $struct = array( 151 151 'isAdmin' => $is_admin, 152 'url' => get_settings('home') . '/'.get_settings('blogfilename'),152 'url' => get_settings('home') . '/', 153 153 'blogid' => '1', 154 154 'blogName' => get_settings('blogname') … … 282 282 283 283 /* warning: here we make the assumption that the weblog's URI is on the same server */ 284 $filename = get_settings('home') .'/'.get_settings('blogfilename');284 $filename = get_settings('home') . '/'; 285 285 $filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 286 286 … … 316 316 317 317 /* warning: here we make the assumption that the weblog's URI is on the same server */ 318 $filename = get_settings('home') .'/'.get_settings('blogfilename');318 $filename = get_settings('home') . '/'; 319 319 $filename = preg_replace('#http://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 320 320
Note: See TracChangeset
for help on using the changeset viewer.