Updated 3.6.x notes FAQ (markdown)

Mike Jolley 2019-04-23 10:34:27 +01:00
parent ab38a57468
commit 44ff812864
1 changed files with 8 additions and 4 deletions

@ -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. 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 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). 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, i.e. change The namespace name now needs to be specified to instantiate the class:
``` ```
$emogrifier = new Emogrifier( $content, $css ); $emogrifier = new Emogrifier( $content, $css );
``` ```
into into:
``` ```
$emogrifier = new \Pelago\Emogrifier( $content, $css ); $emogrifier = new \Pelago\Emogrifier( $content, $css );
``` ```
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).