Show woocommerce messages in empty cart. Fixes issues when a message is queued to be displayed and user is redirected to cart page where he/she can not see any messages.
Filter user_has_cap with woocommerce_customer_has_capability
Check if user is allowed to cancel and order an order again. Use current_user_can() checks instead of hardcoded user_id comparisons to determine if user can view, pay, order again or cancel an order.
Use default priority for user_has_cap filter
Add download_file capability and security check
Fix missing semicolon
Merge pull request #3741 from ragulka/security-improvements

Frontend security improvements