Skip to content

Commit

Permalink
Avoid double display of template selector in Gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
mikael102030 committed Aug 12, 2022
1 parent 7f28911 commit 9c7315b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pageparentdiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
include('attributes/parent.php');
}

if (count(get_page_templates($post)) > 0 && get_option('page_for_posts') != $post->ID) {
if (count(get_page_templates($post)) > 0 && get_option('page_for_posts') != $post->ID && !get_current_screen()->is_block_editor()) {
include('attributes/template.php');
}

Expand Down

0 comments on commit 9c7315b

Please sign in to comment.