Made check to make sure function is only run on posts with edit flow custom statuses.