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:
parent
d7ee2914b7
commit
6befc1d62a
|
@ -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",
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue