diff --git a/3.6.x-notes-FAQ.md b/3.6.x-notes-FAQ.md index cb0a9dc..400993a 100644 --- a/3.6.x-notes-FAQ.md +++ b/3.6.x-notes-FAQ.md @@ -25,13 +25,17 @@ This wrapper was put in place when WooCommerce implemented a term meta system lo Since WooCommerce no longer supports WP versions lower than 4.4, the wrappers are no longer necessary and native Wordpress functions can be used instead. ## Emogrifier update -Emogrifier was [updated to version 2.1](https://github.com/woocommerce/woocommerce/pull/22342) and the [way it's loaded has changed](https://github.com/woocommerce/woocommerce/pull/23151). -The namespace name now needs to be specified to instantiate the class, i.e. change +Emogrifier was [updated to version 2.1](https://github.com/woocommerce/woocommerce/pull/22342) and the [way it's loaded by WooCommerce has changed](https://github.com/woocommerce/woocommerce/pull/23151). +The namespace name now needs to be specified to instantiate the class: + ``` $emogrifier = new Emogrifier( $content, $css ); ``` -into +into: + ``` $emogrifier = new \Pelago\Emogrifier( $content, $css ); -``` \ No newline at end of file +``` + +Emogrifier is used by WooCommerce behind the scenes and only loaded where needed. We have no anticipated this being used by 3rd parties directly, so if you are a developer using this please get in touch with your use-case so we can consider (for example) a wrapper around this to prevent the need for direct calls/including core classes manually (which is likely to conflict in the future). \ No newline at end of file