moved woocommerce_get_filename_from_url to core-functions as it is required in admin too. Closes #2949