woocommerce/includes
Rodrigo Primo d29ead0e63 Make Emogrifier regular expressions compatibile with PCRE2
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587) instead of updating the library to the yet to be released version 2.1.0.

This change removes the following warning when running WC unit tests using PHP 7.3:

PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504

For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
..
abstracts Merge pull request #21641 from jamsheerkrd/master 2018-11-02 09:04:34 -07:00
admin Merge pull request #21864 from Prospress/fix/21457 2018-11-19 12:20:41 -08:00
api Merge pull request #21923 from woocommerce/add/db-upgrade-tools 2018-11-15 10:02:14 -08:00
cli per_page must be between 1 and 100, default to 100. 2018-03-28 10:18:10 +02:00
customizer Preview checkout without dummy product 2018-05-22 11:19:09 +01:00
data-stores Do not include products who's parents are not in publish status to be part of the get_on_sale_products results 2018-11-01 12:01:59 +02:00
emails Revert "Do not use camel case for password reset request subject and heading" 2018-09-14 09:23:06 +02:00
export allow export and display of attribute labels containing html special characters 2018-11-09 09:17:18 -04:00
gateways Merge pull request #21715 from angelleye/21714 2018-11-02 08:09:56 -07:00
import Revised error message and set is_type method on . 2018-11-05 23:19:10 -07:00
interfaces PHPCS fixes 2018-09-24 11:43:46 +10:00
legacy Removed obvious boolean results 2018-03-21 19:57:10 -03:00
libraries Make Emogrifier regular expressions compatibile with PCRE2 2018-11-20 15:54:54 -02:00
log-handlers Parse query using '$wpdb->prepare' before querying 2018-11-16 16:11:31 +02:00
payment-tokens Use display name for tokens 2018-05-03 12:00:07 +02:00
queue PHPCS fixes 2018-09-24 11:43:46 +10:00
shipping Fix phpcs violations in includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 2018-03-07 15:30:26 -03:00
shortcodes On form-pay, do not check for stock if not managing stock or allowing backorders. 2018-11-07 08:54:41 -05:00
theme-support Adds missing 2017 RTL styles 2018-05-31 10:34:08 +01:00
walkers Restored old walkers files to keep backwards compatibility 2018-03-09 17:14:02 -03:00
widgets Update cache key to consistently work with all types of chars 2018-09-20 08:21:39 -07:00
class-wc-ajax.php Merge pull request #21769 from nishitlangaliya/issue-21765 2018-11-05 15:27:33 -05:00
class-wc-api.php [REST API] Register data endpoints 2018-10-18 16:04:54 -03:00
class-wc-auth.php Remove API enabled check from auth endpoint 2018-06-12 12:37:36 +01:00
class-wc-autoloader.php Fixed includes/class-wc-autoloader.php PHPCS violations 2018-03-15 18:13:26 -03:00
class-wc-background-emailer.php Fixed includes/class-wc-background-emailer.php PHPCS violations 2018-03-15 18:22:12 -03:00
class-wc-background-updater.php Preserve changes in includes/class-wc-background-updater.php 2018-10-29 13:14:05 -03:00
class-wc-breadcrumb.php Add breadcrumb links for product categories and tags 2018-09-05 13:32:53 -07:00
class-wc-cache-helper.php Improve performance of the query to delete version transients 2018-09-04 17:20:35 -03:00
class-wc-cart-fees.php Fixed includes/class-wc-cart-fees.php PHPCS violations 2018-03-16 14:43:53 -03:00
class-wc-cart-session.php Use a cleaner approach to prevent loading cart from session to call itself. 2018-10-30 11:58:39 +02:00
class-wc-cart-totals.php Pass current object as context 2018-06-20 14:16:14 +02:00
class-wc-cart.php Use a cleaner approach to prevent loading cart from session to call itself. 2018-10-30 11:58:39 +02:00
class-wc-checkout.php Sort checkout fields using PHP and not JS on initial page load as it causes issues as per #20640 2018-10-31 08:14:50 +02:00
class-wc-cli.php Short ASBPATH check 2018-03-19 19:28:37 -03:00
class-wc-comments.php Check if comment_type is empty 2018-09-10 18:40:46 -03:00
class-wc-countries.php Remove postal code for Angola 2018-11-20 12:36:45 +00:00
class-wc-coupon.php Made constructor more readable with protected method 2018-05-24 18:19:42 +01:00
class-wc-customer-download-log.php Fixed includes/class-wc-customer-download-log.php PHPCS violations 2018-03-19 20:01:52 -03:00
class-wc-customer-download.php Moved check for download log to WC_Download_Handler. 2018-05-09 15:52:02 +02:00
class-wc-customer.php Removed check for invalid utf8 in passwords. 2018-08-17 11:01:30 +02:00
class-wc-data-exception.php Fixed includes/class-wc-data-exception.php PHPCS violations 2018-03-19 20:17:56 -03:00
class-wc-data-store.php WC_Data_Store | Exception throwing @throws PHPDoc comment added (#20352) 2018-06-04 10:45:53 +01:00
class-wc-datetime.php getOffset Refactor 2018-06-02 23:47:05 +06:00
class-wc-deprecated-action-hooks.php Hook mapping/bw compat 2018-04-16 14:27:03 +01:00
class-wc-deprecated-filter-hooks.php Hook mapping/bw compat 2018-04-16 14:27:03 +01:00
class-wc-discounts.php Revise coupon behavior and add unit tests 2018-08-31 08:35:41 -07:00
class-wc-download-handler.php Add http(s) to // download urls 2018-10-11 13:31:18 -07:00
class-wc-emails.php Send emails for cancelled_to_* orders 2018-08-31 09:31:16 -07:00
class-wc-embed.php Fixed includes/class-wc-embed.php PHPCS violations 2018-03-21 00:02:57 -03:00
class-wc-form-handler.php Updated phone validation and formatting rules. 2018-08-24 15:43:46 +02:00
class-wc-frontend-scripts.php Use is_checkout conditional instead of is_page for the wc-checkout js paramaters. 2018-09-12 08:38:54 +02:00
class-wc-geo-ip.php Deprecated old WC_Geo_IP class 2018-03-15 17:23:40 -03:00
class-wc-geolite-integration.php typo 2018-06-22 10:13:12 -03:00
class-wc-geolocation.php Use wp_get_upload_dir for geolite DB path 2018-10-13 01:27:45 -04:00
class-wc-https.php
class-wc-install.php use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name 2018-11-06 16:43:46 -04:00
class-wc-integrations.php Fixed includes/class-wc-integrations.php PHPCS violations 2018-03-21 00:07:37 -03:00
class-wc-log-levels.php Log Abstract Class Methods Refactoring 2018-06-25 12:40:55 +06:00
class-wc-logger.php clear_expired_logs and date based clearing functions 2018-05-01 16:37:30 +01:00
class-wc-meta-data.php WC_Meta_Data | PHPDoc Fix (#20371) 2018-06-05 13:29:56 +01:00
class-wc-order-factory.php Make Order Factory return an int as well from $post->ID 2018-04-13 11:27:30 +01:00
class-wc-order-item-coupon.php Fixed includes/class-wc-order-item-coupon.php PHPCS violations 2018-03-21 00:33:44 -03:00
class-wc-order-item-fee.php Fixed includes/class-wc-order-item-fee.php PHPCS violations 2018-03-21 00:39:37 -03:00
class-wc-order-item-meta.php Pass `$flat` variable to `woocommerce_order_items_meta_display` filter 2018-04-23 13:45:07 +12:00
class-wc-order-item-product.php Fixed includes/class-wc-order-item-product.php PHPCS violations 2018-03-21 00:49:45 -03:00
class-wc-order-item-shipping.php Fixed includes/class-wc-order-item-shipping.php coding standards 2018-03-21 00:46:32 -03:00
class-wc-order-item-tax.php Fixed includes/class-wc-order-item-tax.php PHPCS violations 2018-03-21 00:52:55 -03:00
class-wc-order-item.php Changed wc_clean sanitization to checking for valid utf8 and the input is later sanitized by WordPress db layer. 2018-08-06 20:49:27 +02:00
class-wc-order-query.php PHPDoc @throw Added (#20370) 2018-06-05 13:29:35 +01:00
class-wc-order-refund.php Improved class description 2018-03-21 00:50:30 -03:00
class-wc-order.php Triggering woocommerce_order_edit_status on single order status edit. 2018-09-12 10:07:02 -07:00
class-wc-payment-gateways.php Revert "Don't force default token gateway active by default" 2018-05-18 11:32:49 +01:00
class-wc-payment-tokens.php Use correct return types 2018-11-07 16:49:41 +02:00
class-wc-post-data.php Ignore converting float meta value for registered post meta 2018-09-12 20:39:24 +06:00
class-wc-post-types.php Update block editor hook to new one 2018-10-26 13:48:47 -07:00
class-wc-privacy-background-process.php Inactive account handling 2018-04-30 15:38:45 +01:00
class-wc-privacy-erasers.php feedback 2018-05-18 21:28:51 +01:00
class-wc-privacy-exporters.php Merge pull request #20435 from rnaby/070618-212333-wc-privacy-exporters-customer_data_exporter 2018-06-08 11:34:42 -07:00
class-wc-privacy.php WooCommerce prefix only 2018-06-14 15:47:15 +01:00
class-wc-product-attribute.php Fixed includes/class-wc-product-attribute.php PHPCS violations 2018-03-22 15:07:06 -03:00
class-wc-product-download.php Fix typo 2018-10-11 13:31:18 -07:00
class-wc-product-external.php Escape and decode amsersands correcrtly 2018-05-22 10:52:51 +01:00
class-wc-product-factory.php Make Product Factory use global $post instead of $GLOBALS['post'] 2018-04-13 11:29:33 +01:00
class-wc-product-grouped.php Prevent infinite loops when grouped products group each other 2018-05-09 14:05:05 +01:00
class-wc-product-query.php added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
class-wc-product-simple.php Fixed includes/class-wc-product-simple.php PHPCS violations 2018-03-22 15:43:51 -03:00
class-wc-product-variable.php fix lint code style issue 2018-09-06 22:52:48 +02:00
class-wc-product-variation.php Normalize parent tax class 2018-06-15 11:35:22 +01:00
class-wc-query.php The orderby=ID argument needs to be uppercase. 2018-09-27 19:51:10 +02:00
class-wc-regenerate-images-request.php
class-wc-regenerate-images.php changed version to 3.5.0 and adjusted the curly brace 2018-08-08 13:27:54 +06:00
class-wc-register-wp-admin-settings.php Fixed includes/class-wc-register-wp-admin-settings.php PHPCS violations 2018-03-21 00:16:26 -03:00
class-wc-session-handler.php Change query to save session data 2018-09-26 14:46:28 -03:00
class-wc-shipping-rate.php Fixed includes/class-wc-shipping-rate.php PHPCS violations 2018-03-21 20:58:20 -03:00
class-wc-shipping-zone.php Fixed coding standards 2018-03-21 20:53:59 -03:00
class-wc-shipping-zones.php Pass through JSON context when getting zones for JSON responses and scripts 2018-05-09 17:41:33 +01:00
class-wc-shipping.php Reverted more accurate counting of shipping class items as it could cause perf issues. 2018-09-10 16:23:06 +02:00
class-wc-shortcodes.php Tweaks to unsupported theme handling and hidden preview button handling 2018-10-19 10:49:58 -07:00
class-wc-structured-data.php Merge pull request #21111 from woocommerce/fix/structured-data-breadcrumbs 2018-09-12 12:45:23 +02:00
class-wc-tax.php Cast tax rate to float so that it can be treated as number going forward. 2018-07-26 14:32:48 +02:00
class-wc-template-loader.php Tweaks to unsupported theme handling and hidden preview button handling 2018-10-19 10:49:58 -07:00
class-wc-tracker.php Check if helper is connected to woocommerce.com 2018-09-10 15:47:46 +02:00
class-wc-validation.php Updated phone validation and formatting rules. 2018-08-24 15:43:46 +02:00
class-wc-webhook.php When dynamic choosing API class, the comparison should be !== as the lastest version has no v3 in the class name. 2018-11-15 11:15:42 +02:00
class-woocommerce.php Made tax display in cart depend on whether customer is tax exempt. 2018-09-06 17:40:21 +02:00
wc-account-functions.php Add endpoints to account menu items filter 2018-05-06 09:56:28 +02:00
wc-attribute-functions.php Fixed coding standards 2018-10-11 13:31:37 -07:00
wc-cart-functions.php Added tabindex 1 to Add to cart notices (View cart/Continue shopping). 2018-08-20 18:39:31 +02:00
wc-conditional-functions.php If wp_doing_ajax is defined return it (#20421) 2018-06-07 10:21:22 +01:00
wc-core-functions.php use lower case for Croatian Kuna symbol 2018-11-15 13:36:36 -04:00
wc-coupon-functions.php Fixed includes/wc-coupon-functions.php PHPCS violations 2018-03-07 18:40:48 -03:00
wc-deprecated-functions.php
wc-formatting-functions.php Issue #21406 Dimensions in RTL Languages are displayed incorrectly on single product pages. 2018-10-22 11:29:07 -05:00
wc-notice-functions.php Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices(). 2018-08-21 12:00:48 +02:00
wc-order-functions.php WC Refund class older name 'WC_Refund' somehow left over in the function docblock. Corrected to WC_Order_Refund. 2018-10-10 00:28:15 +05:30
wc-order-item-functions.php Specified where the Exception is coming from 2018-06-25 15:04:49 +06:00
wc-page-functions.php wc_list_pages function refactored 2018-05-15 08:08:18 +06:00
wc-product-functions.php Dont default to gallery thumbnail size if flexslider disabled 2018-10-24 11:07:43 -07:00
wc-rest-functions.php Fixed permission check to allow list customers 2018-11-02 10:21:08 -07:00
wc-stock-functions.php Initialise $changes before usage. 2018-11-15 14:36:56 +02:00
wc-template-functions.php Use $product->get_image_id() instead of has_post_thumbnail() 2018-10-18 09:28:20 -03:00
wc-template-hooks.php Use hook instead 2018-11-05 18:40:00 -02:00
wc-term-functions.php Dont modify attributes orderby when ordering by name 2018-09-20 12:32:06 -07:00
wc-update-functions.php Revert "First pass at using post_author instead of the post meta '_customer_user'" 2018-10-29 11:48:44 -03:00
wc-user-functions.php Revert "Set post_author to 0 on all orders that belong to a deleted customer" 2018-10-29 11:16:07 -03:00
wc-webhook-functions.php remove extra parens 2018-11-02 10:21:30 -07:00
wc-widget-functions.php Fixed includes/wc-widget-functions.php PHPCS violations 2018-03-08 18:29:54 -03:00