Update hierarchy when deleting hierarchical CPT
|Reported by:||duck_||Owned by:||duck_|
When deleting a CPT post which is hierarchical its children don't have their post_parent properties updated. This updating code should be split out of the page specific branches into an is_post_type_hierarchical() check.
Noticed when patching #19636.