mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user