Skip to content

Commit

Permalink
Enable page templates on production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
koke committed Mar 4, 2020
1 parent e69f2ab commit 67ffc51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const __experimentalUsePageTemplatePickerVisible = () => {
'core/block-editor'
);

const isPageTemplatesEnabled = getSettings()
.__mobileEnablePageTemplates;

const blocks = getBlockOrder();
const isEmptyBlockList = blocks.length === 0;
const firstBlock = ! isEmptyBlockList && getBlock( blocks[ 0 ] );
Expand All @@ -23,7 +20,7 @@ const __experimentalUsePageTemplatePickerVisible = () => {
const isEmptyContent = isEmptyBlockList || isOnlyUnmodifiedDefault;
const isPage = getCurrentPostType() === 'page';

return isPageTemplatesEnabled && isEmptyContent && isPage;
return isEmptyContent && isPage;
}, [] );
};

Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class EditorProvider extends Component {
'__experimentalBlockDirectory',
'__experimentalEnableFullSiteEditing',
'__experimentalEnableFullSiteEditingDemo',
'__mobileEnablePageTemplates',
'__experimentalGlobalStylesUserEntityId',
'__experimentalGlobalStylesBase',
'showInserterHelpPanel',
Expand Down

0 comments on commit 67ffc51

Please sign in to comment.