woocommerce/includes/admin/meta-boxes
Rodrigo Primo d50cd4389b Fix using tax classes with some non-ASCII characters
This commit fixes a bug that made it impossible to assign to a product a tax class that contained non-ASCII characters that are URL encoded by sanitize_title().

WooCommerce uses sanitize_title() to generate a slug when creating a tax class (d48f1d4e2e/includes/class-wc-tax.php (L808)). sanitize_title() converts some non-ASCII to ASCII equivalents (those handled by remove_accents()) and URL encodes others (like some Greek characters, for example).

The code was using wc_clean() to sanitize the tax class when the user edited a product. The problem is that wc_clean() removes URL encoded characters, changing the slug of some tax class, causing WooCommerce to use the standard tax class instead without any errors. To fix this issue, this commit replaces wc_clean() with sanitize_title(). This should be enough for security purposes and should not cause any issues with non-ASCII characters.
2020-09-08 16:00:56 -03:00
..
views Fix #27413 2020-08-22 19:35:13 +12:00
class-wc-meta-box-coupon-data.php Improve choice of words 2020-08-25 18:03:03 -03:00
class-wc-meta-box-order-actions.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-order-data.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-order-downloads.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-order-items.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-order-notes.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-product-data.php Fix using tax classes with some non-ASCII characters 2020-09-08 16:00:56 -03:00
class-wc-meta-box-product-images.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-product-reviews.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-meta-box-product-short-description.php Fixed package tag usage 2020-08-05 13:36:24 -03:00