woocommerce/includes/admin
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
..
helper Fixed package tag usage 2020-08-05 13:36:24 -03:00
importers Fixed package tag usage 2020-08-05 13:36:24 -03:00
list-tables Fixed incorrect package tags 2020-08-05 17:49:10 -03:00
marketplace-suggestions Fixed package tag usage 2020-08-05 13:36:24 -03:00
meta-boxes Fix using tax classes with some non-ASCII characters 2020-09-08 16:00:56 -03:00
notes New wc_get_current_admin_url() function 2020-07-29 20:52:36 -03:00
plugin-updates Fixed package tag usage 2020-08-05 13:36:24 -03:00
reports Fixed package tag usage 2020-08-05 13:36:24 -03:00
settings Fixed incorrect package tags 2020-08-05 17:49:10 -03:00
views Fixed incorrect package tags 2020-08-05 17:49:10 -03:00
class-wc-admin-addons.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-api-keys-table-list.php Fix PEAR.Functions.FunctionCallSignature violations 2019-12-20 15:25:23 -03:00
class-wc-admin-api-keys.php Fix PEAR.Functions.FunctionCallSignature violations 2019-12-20 15:25:23 -03:00
class-wc-admin-assets.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-attributes.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-customize.php Fixed coding standards to make trigger a test on Travis 2020-08-11 20:11:07 -03:00
class-wc-admin-dashboard.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-duplicate-product.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-exporters.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-help.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-importers.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-log-table-list.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-menus.php Merge pull request #26338 from woocommerce/fix/25561 2020-07-08 12:09:28 -03:00
class-wc-admin-meta-boxes.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-notices.php Merge pull request #26454 from woocommerce/enhancement/verify-db 2020-06-05 15:15:39 +05:30
class-wc-admin-permalink-settings.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-pointers.php Restored pointers position 2020-08-12 21:46:36 -03:00
class-wc-admin-post-types.php Fixed incorrect package tags 2020-08-05 17:49:10 -03:00
class-wc-admin-profile.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-reports.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-settings.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-setup-wizard.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-status.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-taxonomies.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
class-wc-admin-webhooks-table-list.php Performance: Support pagination to avoid double queries to search webhooks 2019-02-18 14:58:32 +00:00
class-wc-admin-webhooks.php Fixes for alignment issues on the settings screen introduced by WP 5.3 2019-11-27 13:05:20 +01:00
class-wc-admin.php Improve choice of words 2020-08-25 18:03:03 -03:00
wc-admin-functions.php Fixed package tag usage 2020-08-05 13:36:24 -03:00
wc-meta-box-functions.php Fixed package tag usage 2020-08-05 13:36:24 -03:00