Skip to content

Commit

Permalink
Change source value on WooCommerce block templates to be plugin inste…
Browse files Browse the repository at this point in the history
…ad of woocommerce (woocommerce#5215)
  • Loading branch information
tjcafferkey authored and jonny-bull committed Dec 16, 2021
1 parent ca5f727 commit 2c4b676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BlockTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function ( $template ) use ( $template_slug ) {
'path' => $template_file,
'type' => $template_type,
'theme' => 'woocommerce',
'source' => 'woocommerce',
'source' => 'plugin',
'title' => BlockTemplateUtils::convert_slug_to_title( $template_slug ),
'description' => '',
'post_types' => array(), // Don't appear in any Edit Post template selector dropdown.
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/BlockTemplateUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static function gutenberg_build_template_result_from_file( $template_file
$template->id = 'woocommerce//' . $template_file->slug;
$template->theme = 'woocommerce';
$template->content = self::gutenberg_inject_theme_attribute_in_content( $template_content );
$template->source = 'woocommerce';
$template->source = 'plugin';
$template->slug = $template_file->slug;
$template->type = $template_type;
$template->title = ! empty( $template_file->title ) ? $template_file->title : self::convert_slug_to_title( $template_file->slug );
Expand Down

0 comments on commit 2c4b676

Please sign in to comment.