Fix reports by using strings - int's have a max. Closes #4904
trim whitespace so parseHTML only contains HTML

Conflicts:
	assets/js/frontend/checkout.min.js
Fix category widget ordering Closes #4971
Ensure attributes exist
adding wordpress php formatting"
adding plain text email flag to bacs
adding plain text email flag to cheque
forced end of line in bank_details method to fix the #4999

Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
improved the bacs email instructions

Conflicts:
	includes/gateways/bacs/class-wc-gateway-bacs.php
wc_get_product_ids_on_sale should never return post id of 0 fixes #5002
shop order - fixes non object error on comments when order is in the trash
external product review link not opening on load fixes #5008
minified single-product.js
Notice functions are 'core' so it makes sense to load session classes 'core' too (not just frontend)
wc_get_endpoint_url - added support for permalinks containing a query string Closes #5016
Fix variable product add file button after adding a new variation Closes #4994

Conflicts:
	assets/js/frontend/checkout.min.js
Correctly recompile scripts on update. Frontend css option no longer exists Closes #5014
Change the save order so email data is correct for manual orders Closes #4995
Later hook for template redirect and the_post Closes #4984
Revert load order change #4986