Feature/169 simplify capabilities checks

@Chrico please review and merge
we supposed to get not only ids but `WP_Post|int|null` types