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

Commit

Permalink
Set the origin of custom templates to 'plugin'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Dec 13, 2021
1 parent 7817517 commit 0007c48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Utils/BlockTemplateUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 0007c48

Please sign in to comment.