Fix Permalinks

Fixes an issue when using custom statuses where the post's permalink is not updated when saving the post and the title has been changed.