woocommerce/includes/libraries
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
..
action-scheduler Update Action Scheduler to v2.1.0 2018-09-20 12:16:26 +10:00
geolite2 Included new GeoLite2 DB reader library 2018-03-13 14:50:01 -03:00
class-emogrifier.php Make Emogrifier regular expressions compatibile with PCRE2 2018-11-20 15:54:54 -02:00
class-wc-eval-math.php Fix typo in WooCommerce plugin (#16135) 2017-07-17 11:10:52 +01:00
wp-async-request.php Restored background processing library classes 2018-02-01 11:34:03 -02:00
wp-background-process.php Fix cron_interval property support in WP_Background_Process 2018-09-14 09:29:48 +06:00