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:
parent
9803b51d1f
commit
cbdbc6c7a1
|
@ -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.
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue