Small changes related to the bump of min PHP to 7.2

- Rename wrongly cased variable
- Require higher version of maxmind/dbreader
This commit is contained in:
Nestor Soriano 2022-03-29 10:29:15 +02:00
parent d7ee2914b7
commit 6befc1d62a
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
"automattic/jetpack-autoloader": "2.10.1",
"automattic/jetpack-constants": "1.5.1",
"composer/installers": "^1.9",
"maxmind-db/reader": "^1.6",
"maxmind-db/reader": "^1.11",
"pelago/emogrifier": "^6.0",
"psr/container": "1.0.0",
"woocommerce/action-scheduler": "3.4.0",

View File

@ -571,10 +571,10 @@ class WC_Email extends WC_Settings_API {
do_action( 'woocommerce_emogrifier', $css_inliner, $this );
$domDocument = $css_inliner->getDomDocument();
$dom_document = $css_inliner->getDomDocument();
HtmlPruner::fromDomDocument( $domDocument )->removeElementsWithDisplayNone();
$content = CssToAttributeConverter::fromDomDocument( $domDocument )
HtmlPruner::fromDomDocument( $dom_document )->removeElementsWithDisplayNone();
$content = CssToAttributeConverter::fromDomDocument( $dom_document )
->convertCssToVisualAttributes()
->render();
} catch ( Exception $e ) {