1.8

$url = "avatar/edit/$user->username";
$item = new ElggMenuItem('avatar:edit', elgg_echo('avatar:edit'), $url);
$item->setSection('admin');
$return[] = $item;

add to engine/lib/users.php after line no : 874

discussed here https://github.com/Elgg/Elgg/issues/5989