woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
61 stars 47 forks source link

Improve "Could not retrieve order" error message (3131) #2314

Closed stracker-phil closed 1 month ago

stracker-phil commented 1 month ago

Problem: The previous adjustment displayed HTML code in the error message.

As we throw a PHP exception, the handler-code escaped the full string, rendering HTML useless. As a first solution, we removed the HTML code from the error string.

Side effect: Since the message is now different from the original WooCommerce message, we cannot use their text domain for translation anymore.