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
+2 -2
View File
@@ -128,7 +128,7 @@ function get_author_link($echo = false, $author_id, $author_nicename) {
$link = $wp_rewrite->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);