[wp-trac] [WordPress Trac] #8317: New installs: admin has
user_level 0
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 23 00:09:51 GMT 2008
#8317: New installs: admin has user_level 0
---------------------+------------------------------------------------------
Reporter: Mr Pete | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
On a fresh install of WordPress, the admin user begins with user_level ==
0 (even thought level_10 works fine.)
This seems rather serious to me. It breaks any plugin, widget or theme
feature that makes use of $user_level to identify administrators.
It's easy to check:
{{{
global $current_user;
get_currentuserinfo();
echo "level:".$user_level."<br />";
exit;
}}}
This was not a problem in 2.3.3; it is a problem from 2.5 onward at least
through the current trunk.
All of my test systems have user level 10, so it somehow gets "fixed"
after running a while. However, in the first week of my new plugin's
release, I have had several user reports that my plugin is broken, and I
traced it down to this issue. It wasn't my plugin, it was the fact that
they had new installs of WordPress.
--
Ticket URL: <http://trac.wordpress.org/ticket/8317>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list