fix problem warning headers in delete post when post type no have editor support