I’ve narrowed down what’s causing it, but not why.
Repo steps:
-Add delete_published_posts
capability to contributor role
-Enable the Themed Profiles module
-Under “Restrict Admin Access”, check the box next to contributor
-Try to delete a post using get_delete_post_link( get_the_ID() );
Expected:
Post is deleted
Reality:
Contributor is redirected to your-profile.php