From 822308cbbb431dec41f55b524bcc33236754b5c6 Mon Sep 17 00:00:00 2001 From: Luigi Date: Fri, 17 Dec 2021 16:39:33 +0100 Subject: [PATCH] Revert theme name #5411 Revert theme name #5411 --- src/Utils/BlockTemplateUtils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Utils/BlockTemplateUtils.php b/src/Utils/BlockTemplateUtils.php index 8b2e8eb4b6e..2a7289d84dd 100644 --- a/src/Utils/BlockTemplateUtils.php +++ b/src/Utils/BlockTemplateUtils.php @@ -117,7 +117,6 @@ public static function gutenberg_build_template_result_from_post( $post ) { } if ( 'woocommerce' === $theme ) { - $template->theme = 'woocommerce/woocommerce'; $template->origin = 'plugin'; } @@ -138,7 +137,7 @@ public static function gutenberg_build_template_result_from_file( $template_file $template_content = file_get_contents( $template_file->path ); $template = new \WP_Block_Template(); $template->id = 'woocommerce//' . $template_file->slug; - $template->theme = 'woocommerce/woocommerce'; + $template->theme = 'WooCommerce'; $template->content = self::gutenberg_inject_theme_attribute_in_content( $template_content ); $template->source = 'plugin'; $template->slug = $template_file->slug;