may I suggest a change in your code? change your favi_option_menu()
function like this:
function favi_option_menu() {
if (function_exists('current_user_can')) {
add_options_page(__('Admin Favicon'), __('Admin Favicon'), 'manage_options', __FILE__, 'favi_options_page');
} else {
global $user_level;
get_currentuserinfo();
if ($user_level < 8) return;
else if (function_exists('add_options_page')) {
add_options_page(__('Admin Favicon'), __('Admin Favicon'), 1, __FILE__, 'favi_options_page');
}
}
}
so it doesn’t print a notice warning that User Levels is deprecated when you turn on DEBUG_MODE.
]]>I did not verify in the code but I guess it’s a side effect of the new admin menu in WP 3.1
]]>