Typo in user-avatar.php (clicking remove gives 404)
-
In the function
user_avatar_form($profile)
:
$remove_url = admin_url('edit-user.php')."?user_id=".$_GET['user_id']."&delete_avatar=true&_nononce=". wp_create_nonce('user_avatar')."&u=".$profile->ID
should be user-edit.php instead of edit-user.php
$remove_url = admin_url('edit-user.php')."?user_id=".$_GET['user_id']."&delete_avatar=true&_nononce=". wp_create_nonce('user_avatar')."&u=".$profile->ID
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Typo in user-avatar.php (clicking remove gives 404)’ is closed to new replies.