Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Revert theme name #5411 (#5412)
Browse files Browse the repository at this point in the history
Revert theme name #5411
  • Loading branch information
gigitux authored Dec 17, 2021
1 parent 8a545ef commit 366ac86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Utils/BlockTemplateUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public static function gutenberg_build_template_result_from_post( $post ) {
}

if ( 'woocommerce' === $theme ) {
$template->theme = 'woocommerce/woocommerce';
$template->origin = 'plugin';
}

Expand All @@ -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;
Expand Down

0 comments on commit 366ac86

Please sign in to comment.