Skip to content

Commit

Permalink
Display post template selection for non-admin users (#42705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jul 27, 2022
1 parent b9967bf commit ddd61e4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ddd61e4

Please sign in to comment.