mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.
git-svn-id: https://develop.svn.wordpress.org/trunk@1355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,7 +77,7 @@ function the_author_posts_link($idmode='') {
|
||||
|
||||
|
||||
function get_author_link($echo = false, $author_id, $author_nicename) {
|
||||
global $wpdb, $tableusers, $post, $querystring_start, $querystring_equal, $cache_userdata;
|
||||
global $wpdb, $post, $querystring_start, $querystring_equal, $cache_userdata;
|
||||
$auth_ID = $author_id;
|
||||
$permalink_structure = get_settings('permalink_structure');
|
||||
|
||||
@@ -126,9 +126,9 @@ function wp_list_authors($args = '') {
|
||||
}
|
||||
|
||||
function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
|
||||
global $tableusers, $wpdb, $blogfilename;
|
||||
global $wpdb, $blogfilename;
|
||||
|
||||
$query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $tableusers " . ($exclude_admin ? "WHERE user_nickname <> 'admin' " : '') . "ORDER BY user_nickname";
|
||||
$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);
|
||||
|
||||
foreach($authors as $author) {
|
||||
|
||||
Reference in New Issue
Block a user