Change source value on WooCommerce block templates to be plugin instead of woocommerce (https://github.com/woocommerce/woocommerce-blocks/pull/5215)

This commit is contained in:
Tom Cafferkey 2021-11-26 12:40:41 +00:00 committed by GitHub
parent 9803b51d1f
commit cbdbc6c7a1
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class BlockTemplatesController {
'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.

View File

@ -135,7 +135,7 @@ class BlockTemplateUtils {
$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 );