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

Commit

Permalink
Fix plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Dec 13, 2021
1 parent 2d14756 commit 63b0d93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utils/BlockTemplateUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public static function gutenberg_build_template_result_from_post( $post ) {
}

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

Expand All @@ -137,7 +138,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';
$template->theme = 'woocommerce/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 63b0d93

Please sign in to comment.