Created the `woocommerce_get_product_ids_on_sale()` function
Merge pull request #2247 from GeertDD/DRY_sale

Created the `woocommerce_get_product_ids_on_sale()` function