How safe is current_user_can()?
current_user_can checks whether current user has a specific capability. And only that… It won’t protect you from XSS attacks – so it would be a good idea to check some nonces too – this way you can be certain that user wants to perform given action. Let’s say there’s a link to delete a post. … Read more