$custom_settings['__experimentalAdditionalBlockPatternCategories'
] = WP_Block_Pattern_Categories_Registry::
get_instance()->
get_all_registered( true
);
$editor_settings =
get_block_editor_settings( $custom_settings,
$block_editor_context );
if ( isset( $_GET['postType'
] ) && !
isset( $_GET['postId'
] ) ) { $post_type =
get_post_type_object( $_GET['postType'
] );
if ( !
$post_type ) { wp_die( __( 'Invalid post type.'
) );
}}$active_global_styles_id = WP_Theme_JSON_Resolver::
get_user_global_styles_post_id();
$active_theme =
get_stylesheet();
$navigation_rest_route =
rest_get_route_for_post_type_items( 'wp_navigation'
);
$preload_paths = array
( array
( '/wp/v2/media', 'OPTIONS'
),
'/wp/v2/types?context=view',
'/wp/v2/types/wp_template?context=edit',
'/wp/v2/types/wp_template-part?context=edit',