From ddd61e42f27a4301f83a0f604df84bac724ec93c Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 27 Jul 2022 10:07:09 +0400 Subject: [PATCH] Display post template selection for non-admin users (#42705) --- .../edit-post/src/components/sidebar/post-template/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/edit-post/src/components/sidebar/post-template/index.js b/packages/edit-post/src/components/sidebar/post-template/index.js index 46eb55c6ffa88f..87b905b5a434a3 100644 --- a/packages/edit-post/src/components/sidebar/post-template/index.js +++ b/packages/edit-post/src/components/sidebar/post-template/index.js @@ -27,7 +27,11 @@ export default function PostTemplate() { const hasTemplates = !! settings.availableTemplates && Object.keys( settings.availableTemplates ).length > 0; - if ( ! hasTemplates && ! settings.supportsTemplateMode ) { + if ( hasTemplates ) { + return true; + } + + if ( ! settings.supportsTemplateMode ) { return false; }