Admin problems
-
Hello! I have two problems with the admin role in my blog. To save space I post them as one question. I hope that is OK.
Background:
I’ve installed WordPress 2.0.4 using Fantastico on a Cpanel account and then upgraded to 2.0.5 using the instructions provided on WordPress.org. I did not use the name “Admin” for the administrator but rather used another login name to make it more difficult for hackers.First problem:
I found that the admin name did not display properly. I checked in the MySQL database and found that the admin displayname was set to <ADMINNICENAME>. I changed it to Admin, which I felt was safe due to the Admin having another login name. I searched the php pages and did not find a match for <ADMINNICENAME>. What may have caused this problem? Is it a bug in WP or did Fantastico set that name?Second problem:
I’m using the function wp_list_authors to display authors in the sidemenu:wp_list_authors('sort_column=name&optioncount=1&hierarchical=0');This works fine for all authors but the admin, who’s name is not displayed at all. It just says >> (2) when it should say >> Admin (2). (Remember that the display name for admin is “Admin” and that I’m using another login name.
I thought I located the bug in the function list_authors where one line reads (in part):
($exclude_admin ? "WHERE user_login <> 'admin' " : '')Since my admin’s user_login is NOT “admin” I figured that was why it just displayed blank, but when I changed it to the correct name and uploaded the php file (template-function-authors.php) it still displays blank. Any idea why?
I could not find any posts regarding any of these problems when I searched the support database.
The topic ‘Admin problems’ is closed to new replies.