Commit Graph

33 Commits

Author SHA1 Message Date
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
Mike Jolley be9162e869 Remove namespace 2018-06-15 12:43:19 +01:00
Mike Jolley 0d79ced8e4 Update emogrifier 2018-06-15 12:25:07 +01:00
Rasmus Bengtsson 6a7fc8650f Remove unused local variables 2017-05-15 12:06:52 +02:00
Claudio Sanches f7db744a90 Updated Emogrifier to 1.2.0
Code changed to support PHP 5.2.

Used PHPCompatibility tool to help fix backwards compatibility.

Closes #13788
2017-03-31 17:19:35 -03:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos fde1037757 fix failing tests. 2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos e69fafbda7 WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter 2016-08-27 09:06:22 +03:00
Aristeides Stathopoulos dea39df779 WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis 2016-08-27 07:38:29 +03:00
Aristeides Stathopoulos 9543c7fe1c WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis 2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos 4e3c1fd865 WordPress.WhiteSpace.ControlStructureSpacing.OpenBraceNotSameLine 2016-08-27 07:09:12 +03:00
Aristeides Stathopoulos ff852038c9 WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys 2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos 58b9df6564 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis 2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos 32ddc22465 WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma 2016-08-27 05:14:16 +03:00
Mike Jolley 374b1ff877 missing _media 2016-07-26 17:03:16 +01:00
Mike Jolley f84d2e5954 5.2 changes 2016-07-26 16:50:23 +01:00
Mike Jolley 05539282fb 5.2 compat 2016-07-26 16:34:17 +01:00
Mike Jolley b56abded63 Another emogrifier.php array 2016-07-26 15:52:14 +01:00
Mike Jolley b5fa1e5756 More arrays 2016-07-26 15:19:11 +01:00
Mike Jolley 6c956879d9 more emogrifier tweaks 2016-07-26 13:41:26 +01:00
Mike Jolley 161d31558b Shorthand arrays does not work with php 5.3 2016-07-26 11:51:01 +01:00
Mike Jolley abe9ada5cd Updated Emogrifier
@claudiosmweb
2016-07-25 14:51:13 +01:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Claudio Sanches 1a45a447b0 Fixed the true-null-false case 2015-02-18 15:34:03 -02:00
Claudio Sanches 07537878f0 Fixed the indentation in includes/libraries/class-emogrifier.php 2015-02-12 09:42:15 -02:00
Claudio Sanches 455b27e125 Added alternative to mb_convert_encoding in Emogrifier, closes #7378 2015-02-12 09:40:41 -02:00
Claudio Sanches 1845049665 Revert "Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib" 2015-02-12 09:36:12 -02:00
a3rev 0137249175 Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib 2015-02-12 12:38:50 +07:00
Claudio Sanches da16c4ac29 Improved emogrifier emogrify() 2015-01-23 10:46:06 -02:00
Claudio Sanches ea908283a3 Make emogrifier works with PHP 5.2, closes #7179 2015-01-23 10:41:15 -02:00
Patrick Rauland b5fb174697 adding emogrifier class for inlining email styles 2014-10-08 15:32:46 -06:00