Skip to content

Commit

Permalink
Add back templateType to editSiteInitialState
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jul 6, 2020
1 parent 894d7e0 commit 7642660
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/edit-site-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ function gutenberg_edit_site_init( $hook ) {

$settings['editSiteInitialState'] = array();

$settings['editSiteInitialState']['showOnFront'] = get_option( 'show_on_front' );
$settings['editSiteInitialState']['page'] = array(
$settings['editSiteInitialState']['templateType'] = 'wp_template';
$settings['editSiteInitialState']['showOnFront'] = get_option( 'show_on_front' );
$settings['editSiteInitialState']['page'] = array(
'path' => '/',
'context' => 'page' === $settings['editSiteInitialState']['showOnFront'] ? array(
'postType' => 'page',
Expand Down

0 comments on commit 7642660

Please sign in to comment.