From 0007c48caeefbf5f5517f1b92a2bb97807ab549c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Mon, 13 Dec 2021 15:10:11 +0100 Subject: [PATCH] Set the origin of custom templates to 'plugin' --- src/Utils/BlockTemplateUtils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Utils/BlockTemplateUtils.php b/src/Utils/BlockTemplateUtils.php index bf8ddebbe6d..40bbfec5060 100644 --- a/src/Utils/BlockTemplateUtils.php +++ b/src/Utils/BlockTemplateUtils.php @@ -107,6 +107,7 @@ public static function gutenberg_build_template_result_from_post( $post ) { $template->title = $post->post_title; $template->status = $post->post_status; $template->has_theme_file = $has_theme_file; + $template->origin = 'plugin'; $template->is_custom = true; $template->post_types = array(); // Don't appear in any Edit Post template selector dropdown. if ( 'wp_template_part' === $post->post_type ) {