Fix compatibility with gutenberg plugin
This commit is contained in:
committed by
Rostislav Wolný
parent
ea988f0850
commit
e6f9564ef0
@@ -59,6 +59,10 @@ class ThemeController {
|
||||
return $emailEditorThemeSettings;
|
||||
}
|
||||
|
||||
public function getStylesheetFromContext($context, $options = []): string {
|
||||
return function_exists('gutenberg_style_engine_get_stylesheet_from_context') ? gutenberg_style_engine_get_stylesheet_from_context($context, $options) : wp_style_engine_get_stylesheet_from_context($context, $options);
|
||||
}
|
||||
|
||||
public function getStylesheetForRendering($post = null): string {
|
||||
$emailThemeSettings = $this->getSettings();
|
||||
|
||||
|
Reference in New Issue
Block a user