wp_trash_post hook – problem with page updating if using wp_die

You should basically never dieon an action. It is likely to leave the system in unstable state.

The right way to solve your issue to to deny users from deleting the post by using the user_has_cap filter that enables you to override the default permissions users have. The added value is that users will (should) not be presented with the option to delete the post in the first place and/or the permission will be checked and operation denied before it is started.

tech