Use `woocommerce_valid_order_statuses_for_payment` in `pay_action` too

Even though it was possible to filter the statuses in my-order.php and other places,
it was not possible in the actual pay action.
Introduce `woocommerce_valid_order_statuses_for_payment_complete` filter

Since it's possible to filter the valid order statuses for payments and cancels,
it only makes sense to be able to do the same when checking which statuses
are valid for completing a payment.
Clear cached API reports when deleting shop order transients
added a check for current password on password change closes #5177
Merge pull request #5358 from maxrice/rest-api-report-fix

Clear cached API reports when deleting shop order transients
Template cleanup
Print notices in view order template Closes #5348
Merge pull request #5359 from splashingpixels/feature-edit-password

added a check for current password on password change closes #5177
[2.2] Protect admins from shop managers

Closes #5322
Change label and add description Closes #4698
Reverse calculator check Closes #5323
Merge pull request #5334 from ragulka/valid-order-statuses-improvements

Valid order statuses improvements
URL decode when viewing order attributes to prevent taxonomies not being found

Closes #5315