diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 23d44d7ea2..dd5211dc0b 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -28,23 +28,6 @@ wp_die( __( 'The theme you are currently using is not compatible with the Site Editor.' ) ); } -/** - * Do a server-side redirection if missing `postType` and `postId` - * query args when visiting Site Editor. - */ -$home_template = _resolve_home_block_template(); -if ( $home_template && empty( $_GET['postType'] ) && empty( $_GET['postId'] ) ) { - if ( ! empty( $_GET['styles'] ) ) { - $home_template['styles'] = sanitize_key( $_GET['styles'] ); - } - $redirect_url = add_query_arg( - $home_template, - admin_url( 'site-editor.php' ) - ); - wp_safe_redirect( $redirect_url ); - exit; -} - // Used in the HTML title tag. $title = _x( 'Editor', 'site editor title tag' ); $parent_file = 'themes.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 14d3d83994..31732466c6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta1-55337'; +$wp_version = '6.2-beta1-55338'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.