How WooCommerce 10.5 picks a product permalink category
WooCommerce 10.5 changes which category ends up in a product URL: the deepest one in the hierarchy now wins instead of the lowest term ID. Here is what that does to existing URLs and how to put the old sorting back.