pronamic / wp-pay-core

Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.
https://www.wp-pay.org/
GNU General Public License v3.0
27 stars 3 forks source link

Corrupted JSON data after CPT data store refactor #160

Closed remcotolsma closed 10 months ago

remcotolsma commented 10 months ago

https://github.com/pronamic/wp-pay-core/compare/b7f57699808f451980da5c4048293bdb1cbf96a2...39120c16a0b52dacd4333f14b651f69f3c2ecf5e

For non-logged in users, the payment JSON may be corrupted by the standard WordPress KSES filters.

WordPress itself sometimes seems to have this problem as well:

remcotolsma commented 10 months ago

Fixed in https://github.com/pronamic/wp-pay-core/commit/d68d9d63ec88eda48030fa95e8f6b7352570e090, discussed with @rvdsteege.