Open viktorix opened 1 year ago
Can we create a list of functions to polyfill and loop through that list without writing polyfill code for each function?
For example:
$functions_to_polyfill = array(
'unregister_block_type',
'another_function_to_polyfill',
);
foreach ($functions_to_polyfill as $function_name) {
if (!function_exists($function_name)) {
function_exists($function_name) || function ($...args) {
WP_Compat::using_block_function();
return false;
};
}
}
Any thoughts? Performance issues?
Functions starting with an underscore, which are meant for internal core use, have been removed from the list.
This is my list. I've excluded function from classes. Had a quick look to every other function. From my point of view only six (those marked with non checked checkboxes) can be considered. Two can be polyfilled and one deleted.
function get_block_editor_server_block_settings() {
function the_block_editor_meta_box_post_form_hidden_fields( $post ) {
function the_block_editor_meta_boxes() {
function do_block_editor_incompatible_meta_box( $data_object, $box ) {
function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
function get_allowed_block_types( $block_editor_context ) {
function get_block_categories( $post_or_block_editor_context ) {
function get_block_editor_settings( array $custom_settings, $block_editor_context ) {
function get_block_editor_theme_styles() {
function get_classic_theme_supports_block_editor_settings() {
function get_default_block_categories() {
function get_default_block_editor_settings() {
function get_legacy_widget_block_editor_settings() {
function wp_normalize_remote_block_pattern( $pattern ) {
function wp_get_block_default_classname( $block_name ) {
function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) {
function block_footer_area() {
function block_header_area() {
function block_template_part( $part ) {
function get_allowed_block_template_part_areas() {
function get_block_file_template( $id, $template_type = 'wp_template' ) {
function get_block_template( $id, $template_type = 'wp_template' ) {
function get_block_templates( $query = array(), $template_type = 'wp_template' ) {
function get_block_theme_folders( $theme_stylesheet = null ) {
function get_default_block_template_types() {
function wp_generate_block_templates_export_file() {
function get_the_block_template_html() {
function locate_block_template( $template, $type, array $templates ) {
function resolve_block_template( $template_type, $template_hierarchy, $fallback_template ) {
function block_has_support( $block_type, $feature, $default_value = false ) {
function block_version( $content ) {
function build_comment_query_vars_from_block( $block ) {
function build_query_vars_from_query_block( $block, $page ) {
function do_blocks( $content ) {
function excerpt_remove_blocks( $content ) {
function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols = array() ) {
function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = array() ) {
function filter_block_kses( $block, $allowed_html, $allowed_protocols = array() ) {
function generate_block_asset_handle( $block_name, $field_name, $index = 0 ) {
function get_block_metadata_i18n_schema() {
function get_comment_delimited_block_content( $block_name, $block_attributes, $block_content ) {
function get_dynamic_block_names() {
function parse_blocks( $content ) {
function register_block_script_handle( $metadata, $field_name, $index = 0 ) {
function register_block_style_handle( $metadata, $field_name, $index = 0 ) {
function register_block_style( $block_name, $style_properties ) {
function remove_block_asset_path_prefix( $asset_handle_or_path ) {
function render_block( $parsed_block ) {
function serialize_block_attributes( $block_attributes ) {
function serialize_block( $block ) {
function serialize_blocks( $blocks ) {
function strip_core_block_namespace( $block_name = null ) {
function unregister_block_style( $block_name, $block_style_name ) {
function register_block_core_archives() {
function render_block_core_archives( $attributes ) {
function register_block_core_avatar() {
function render_block_core_avatar( $attributes, $content, $block ) {
function register_block_core_block() {
function render_block_core_block( $attributes ) {
function block_core_calendar_update_has_published_post_on_delete( $post_id ) {
function block_core_calendar_update_has_published_post_on_transition_post_status( $new_status, $old_status, $post ) {
function block_core_calendar_has_published_posts() {
function block_core_calendar_update_has_published_posts() {
function register_block_core_calendar() {
function render_block_core_calendar( $attributes ) {
function build_dropdown_script_block_core_categories( $dropdown_id ) {
function register_block_core_categories() {
function render_block_core_categories( $attributes ) {
function register_block_core_comment_author_name() {
function render_block_core_comment_author_name( $attributes, $content, $block ) {
function register_block_core_comment_content() {
function render_block_core_comment_content( $attributes, $content, $block ) {
function register_block_core_comment_date() {
function render_block_core_comment_date( $attributes, $content, $block ) {
function register_block_core_comment_edit_link() {
function render_block_core_comment_edit_link( $attributes, $content, $block ) {
function register_block_core_comment_reply_link() {
function render_block_core_comment_reply_link( $attributes, $content, $block ) {
function block_core_comment_template_render_comments( $comments, $block ) {
function register_block_core_comment_template() {
function render_block_core_comment_template( $attributes, $content, $block ) {
function register_block_core_comments_pagination_next() {
function render_block_core_comments_pagination_next( $attributes, $content, $block ) {
function register_block_core_comments_pagination_numbers() {
function render_block_core_comments_pagination_numbers( $attributes, $content, $block ) {
function register_block_core_comments_pagination_previous() {
function render_block_core_comments_pagination_previous( $attributes, $content, $block ) {
function register_block_core_comments_pagination() {
function render_block_core_comments_pagination( $attributes, $content ) {
function register_block_core_comments_title() {
function render_block_core_comments_title( $attributes ) {
function comments_block_form_defaults( $fields ) {
function enqueue_legacy_post_comments_block_styles( $block_name ) {
function register_block_core_comments() {
function register_legacy_post_comments_block() {
function render_block_core_comments( $attributes, $content, $block ) {
function register_block_core_cover() {
function render_block_core_cover( $attributes, $content ) {
function register_block_core_file() {
function render_block_core_file( $attributes, $content, $block ) {
function block_core_gallery_data_id_backcompatibility( $parsed_block ) {
function block_core_gallery_render( $attributes, $content ) {
function register_block_core_gallery() {
function block_core_heading_render( $attributes, $content ) {
function register_block_core_heading() {
function block_core_home_link_build_css_colors( $context ) {
function block_core_home_link_build_css_font_sizes( $context ) {
function block_core_home_link_build_li_wrapper_attributes( $context ) {
function register_block_core_home_link() {
function render_block_core_home_link( $attributes, $content, $block ) {
function register_block_core_image() {
function render_block_core_image( $attributes, $content ) {
function register_core_block_types_from_metadata() {
function register_block_core_latest_comments() {
function render_block_core_latest_comments( $attributes = array() ) {
function block_core_latest_posts_get_excerpt_length() {
function block_core_latest_posts_migrate_categories( $block ) {
function register_block_core_latest_posts() {
function render_block_core_latest_posts( $attributes ) {
function register_block_core_legacy_widget() {
function render_block_core_legacy_widget( $attributes ) {
function register_block_core_loginout() {
function render_block_core_loginout( $attributes ) {
function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
function block_core_navigation_link_build_css_font_sizes( $context ) {
function block_core_navigation_link_maybe_urldecode( $url ) {
function block_core_navigation_link_render_submenu_icon() {
function register_block_core_navigation_link() {
function render_block_core_navigation_link( $attributes, $content, $block ) {
function block_core_navigation_submenu_build_css_font_sizes( $context ) {
function block_core_navigation_submenu_render_submenu_icon() {
function register_block_core_navigation_submenu() {
function render_block_core_navigation_submenu( $attributes, $content, $block ) {
function block_core_navigation_get_menu_items_at_location( $location ) {
function block_core_navigation_sort_menu_items_by_parent_id( $menu_items ) {
function block_core_navigation_block_contains_core_navigation( $inner_blocks ) {
function block_core_navigation_build_css_colors( $attributes ) {
function block_core_navigation_build_css_font_sizes( $attributes ) {
function block_core_navigation_filter_out_empty_blocks( $parsed_blocks ) {
function block_core_navigation_from_block_get_post_ids( $block ) {
function block_core_navigation_get_classic_menu_fallback_blocks( $classic_nav_menu ) {
function block_core_navigation_get_classic_menu_fallback() {
function block_core_navigation_get_fallback_blocks() {
function block_core_navigation_get_most_recently_published_navigation() {
function block_core_navigation_get_post_ids( $inner_blocks ) {
function block_core_navigation_maybe_use_classic_menu_fallback() {
function block_core_navigation_parse_blocks_from_menu_items( $menu_items, $menu_items_by_parent_id ) {
function block_core_navigation_render_submenu_icon() {
function block_core_navigation_typographic_presets_backcompatibility( $parsed_block ) {
function register_block_core_navigation() {
function render_block_core_navigation( $attributes, $content, $block ) {
function block_core_page_list_build_css_colors( $attributes, $context ) {
function block_core_page_list_build_css_font_sizes( $context ) {
function block_core_page_list_nest_pages( $current_level, $children ) {
function block_core_page_list_render_nested_page_list( $open_submenus_on_click, $show_submenu_icons, $is_navigation_child, $nested_pages, $is_nested, $active_page_ancestor_ids = array(), $colors = array(), $depth = 0 ) {
function register_block_core_page_list() {
function render_block_core_page_list( $attributes, $content, $block ) {
function register_block_core_pattern() {
function render_block_core_pattern( $attributes ) {
function register_block_core_post_author_biography() {
function render_block_core_post_author_biography( $attributes, $content, $block ) {
function register_block_core_post_author_name() {
function render_block_core_post_author_name( $attributes, $content, $block ) {
function register_block_core_post_author() {
function render_block_core_post_author( $attributes, $content, $block ) {
function post_comments_form_block_form_defaults( $fields ) {
function register_block_core_post_comments_form() {
function render_block_core_post_comments_form( $attributes, $content, $block ) {
function register_block_core_post_content() {
function render_block_core_post_content( $attributes, $content, $block ) {
function register_block_core_post_date() {
function render_block_core_post_date( $attributes, $content, $block ) {
function register_block_core_post_excerpt() {
function render_block_core_post_excerpt( $attributes, $content, $block ) {
function get_block_core_post_featured_image_border_attributes( $attributes ) {
function get_block_core_post_featured_image_overlay_element_markup( $attributes ) {
function register_block_core_post_featured_image() {
function render_block_core_post_featured_image( $attributes, $content, $block ) {
function register_block_core_post_navigation_link() {
function render_block_core_post_navigation_link( $attributes, $content ) {
function block_core_post_template_uses_featured_image( $inner_blocks ) {
function register_block_core_post_template() {
function render_block_core_post_template( $attributes, $content, $block ) {
function register_block_core_post_terms() {
function render_block_core_post_terms( $attributes, $content, $block ) {
function register_block_core_post_title() {
function render_block_core_post_title( $attributes, $content, $block ) {
function register_block_core_query_no_results() {
function render_block_core_query_no_results( $attributes, $content, $block ) {
function register_block_core_query_pagination_next() {
function render_block_core_query_pagination_next( $attributes, $content, $block ) {
function register_block_core_query_pagination_numbers() {
function render_block_core_query_pagination_numbers( $attributes, $content, $block ) {
function register_block_core_query_pagination_previous() {
function render_block_core_query_pagination_previous( $attributes, $content, $block ) {
function register_block_core_query_pagination() {
function render_block_core_query_pagination( $attributes, $content ) {
function register_block_core_query_title() {
function render_block_core_query_title( $attributes ) {
function register_block_core_query() {
function register_block_core_read_more() {
function render_block_core_read_more( $attributes, $content, $block ) {
function register_block_core_rss() {
function render_block_core_rss( $attributes ) {
function apply_block_core_search_border_style( $attributes, $property, $side, &$wrapper_styles, &$button_styles, &$input_styles ) {
function apply_block_core_search_border_styles( $attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles ) {
function classnames_for_block_core_search( $attributes ) {
function get_border_color_classes_for_block_core_search( $attributes ) {
function get_color_classes_for_block_core_search( $attributes ) {
function get_typography_classes_for_block_core_search( $attributes ) {
function get_typography_styles_for_block_core_search( $attributes ) {
function register_block_core_search() {
function render_block_core_search( $attributes ) {
function styles_for_block_core_search( $attributes ) {
function register_block_core_shortcode() {
function render_block_core_shortcode( $attributes, $content ) {
function register_block_core_site_icon_setting() {
function register_block_core_site_logo_setting() {
function register_block_core_site_logo() {
function render_block_core_site_logo( $attributes ) {
function register_block_core_site_tagline() {
function render_block_core_site_tagline( $attributes ) {
function register_block_core_site_title() {
function render_block_core_site_title( $attributes ) {
function block_core_social_link_get_color_styles( $context ) {
function block_core_social_link_get_icon( $service ) {
function block_core_social_link_get_name( $service ) {
function block_core_social_link_services( $service = '', $field = '' ) {
function register_block_core_social_link() {
function render_block_core_social_link( $attributes, $content, $block ) {
function register_block_core_tag_cloud() {
function render_block_core_tag_cloud( $attributes ) {
function build_template_part_block_area_variations( $instance_variations ) {
function build_template_part_block_instance_variations() {
function build_template_part_block_variations() {
function register_block_core_template_part() {
function render_block_core_template_part( $attributes ) {
function register_block_core_term_description() {
function render_block_core_term_description( $attributes ) {
function register_block_core_widget_group() {
function render_block_core_widget_group( $attributes, $content, $block ) {
function get_block_wrapper_attributes( $extra_attributes = array() ) {
function block_core_navigation_submenu_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
function wp_add_global_styles_for_blocks() {
function enqueue_block_styles_assets() {
function enqueue_editor_block_styles_assets() {
function wp_common_block_scripts_and_styles() {
function wp_enqueue_block_style( $block_name, $args ) {
function wp_enqueue_block_support_styles( $style, $priority = 10 ) {
function wp_enqueue_editor_block_directory_assets() {
function wp_enqueue_registered_block_scripts_and_styles() {
function wp_filter_out_block_nodes( $nodes ) {
function wp_should_load_block_editor_scripts_and_styles() {
function wp_should_load_separate_core_block_assets() {
function the_block_template_skip_link() {
function wp_enable_block_templates() {
function wp_setup_widgets_block_editor() {
function wp_use_widgets_block_editor() {
function register_block_pattern_category( $category_name, $category_properties ) {
// RETURN FALSEfunction unregister_block_pattern_category( $category_name ) {
// RETURN FALSEfunction wp_pre_kses_block_attributes( $content, $allowed_html, $allowed_protocols ) {
// THIS IS IN CP - MAYBE REMOVE? it's calling filter_block_content() that is not definedpublic function is_block_editor( $set = null ) {
function has_block( $block_name, $post = null ) {
function has_blocks( $post = null ) {
function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
function register_block_type( $block_type, $args = array() ) {
function unregister_block_type( $name ) {
function register_block_pattern( $pattern_name, $pattern_properties ) {
function unregister_block_pattern( $pattern_name ) {
function use_block_editor_for_post_type( $post_type ) {
// NEEDS CALL TO WP_Compat::using_block_function()function use_block_editor_for_post( $post ) {
// NEEDS CALL TO WP_Compat::using_block_function()function wp_is_block_theme() {
function _block_template_render_without_post_block_context( $context ) {
public function add_block_from_stack( $end_offset = null ) {
public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) {
public function get_registered_styles_for_block( $block_name ) {
public function apply_block_supports() {
public function should_load_block_editor_scripts_and_styles( $is_block_editor_screen ) {
protected static function has_same_registered_blocks( $origin ) {
public static function get_block_data() {
private static function get_block_nodes( $theme_json ) {
protected function get_block_classes( $style_nodes ) {
protected function process_blocks_custom_css( $css, $selector ) {
protected static function get_blocks_metadata() {
public function get_styles_block_nodes() {
public function get_styles_for_block( $block_metadata ) {
public function is_block_theme() {
protected function get_block( $name ) {
~~public static function parse_block_styles( $block_styles, $options ) {
@xxsimoxx what about the rest of them? They won't cause fatal errors?
I've excluded:
wp-includes/blocks/
as those render built in blocksvoid
Maybe I've missed some. So an extra eye on this can help. Anyway we can add more if a specific plugin is causing errors calling a specific missing function.
Context
To ensure our block compatibility feature works as expected, we need to polyfill all functions that can be polyfilled.
The list of block-related functions in WordPress (6.2.2):
get_block_editor_theme_styles
render_block_core_legacy_widget
the_block_editor_meta_boxes
locate_block_template
register_block_core_read_more
render_block_core_post_comments_form
register_block_core_post_comments_form
block_core_gallery_data_id_backcompatibility
register_block_core_site_title
get_block
block_core_home_link_build_css_colors
register_block_core_shortcode
register_block_core_block
serialize_blocks
register_block_core_query_pagination_next
block_core_gallery_render
should_load_block_editor_scripts_and_styles
render_block_core_comment_edit_link
process_blocks_custom_css
get_default_block_editor_settings
block_core_navigation_submenu_render_submenu_icon
add_block_from_stack
register_block_core_legacy_widget
render_block_core_post_date
parse_blocks
register_block_core_comments_pagination_numbers
block_core_navigation_link_build_css_colors
render_block_core_post_content
get_typography_classes_for_block_core_search
parse_block_styles
enqueue_editor_block_styles_assets
post_comments_form_block_form_defaults
block_version
register_block_core_file
get_registered_styles_for_block
render_block_core_post_author_biography
get_block_file_template
block_core_social_link_get_color_styles
render_block_core_post_featured_image
wp_enable_block_templates
resolve_block_template
wp_add_global_styles_for_blocks
get_block_core_post_featured_image_border_attributes
serialize_block
render_block_core_query_pagination_next
register_block_core_query
register_block_core_post_terms
render_block_core_post_title
wp_enqueue_editor_block_directory_assets
apply_block_core_search_border_style
get_block_wrapper_attributes
render_block_core_template_part
build_template_part_block_area_variations
generate_block_asset_handle
wp_is_block_theme
filter_block_content
render_block_core_comments
render_block_core_tag_cloud
register_block_core_latest_comments
filter_block_kses
use_block_editor_for_post_type
is_block_theme
render_block_core_navigation
get_dynamic_block_names
the_block_template_skip_link
register_block_pattern
register_block_core_archives
register_block_core_query_pagination_numbers
register_block_core_rss
strip_core_block_namespace
render_block_core_block
is_block_editor
render_block_core_comments_pagination
build_template_part_block_variations
get_styles_block_nodes
unregister_block_pattern
register_block_core_post_featured_image
wp_common_block_scripts_and_styles
filter_block_kses_value
render_block_core_comment_author_name
render_block_core_page_list
render_block_core_search
block_core_latest_posts_get_excerpt_length
register_block_core_comments_pagination
register_block_core_cover
register_block_core_gallery
register_block_core_comment_author_name
get_block_metadata_i18n_schema
blocks
render_block_core_calendar
render_block_core_site_tagline
get_allowed_block_types
register_block_core_template_part
wp_should_load_separate_core_block_assets
register_block_core_post_title
wp_get_block_default_classname
has_blocks
excerpt_remove_blocks
register_block_script_handle
render_block_core_social_link
register_block_core_page_list
block_footer_area
wp_normalize_remote_block_pattern
get_block_template
get_block_templates
block_core_navigation_get_post_ids
render_block_core_comment_date
register_block_core_site_tagline
render_block_core_post_author_name
block_core_page_list_render_nested_page_list
block_core_navigation_block_contains_core_navigation
render_block_core_post_navigation_link
render_block_core_cover
get_block_data
register_block_core_comments
register_block_core_home_link
render_block_core_post_excerpt
render_block_core_comment_template
wp_should_load_block_editor_scripts_and_styles
block_core_heading_render
block_core_calendar_update_has_published_post_on_delete
block_core_navigation_from_block_get_post_ids
register_block_core_post_author_biography
block_core_comment_template_render_comments
block_core_navigation_build_css_font_sizes
get_styles_for_block
block_header_area
remove_block_asset_path_prefix
block_core_calendar_update_has_published_post_on_transition_post_status
get_block_nodes
block_core_latest_posts_migrate_categories
build_template_part_block_instance_variations
has_same_registered_blocks
render_block_core_comments_pagination_next
render_block_core_home_link
block_core_page_list_build_css_colors
register_block_core_categories
styles_for_block_core_search
render_block_core_rss
register_block_pattern_category
render_block_core_comments_title
block_core_navigation_maybe_use_classic_menu_fallback
classnames_for_block_core_search
block_core_home_link_build_li_wrapper_attributes
register_block_core_tag_cloud
render_block_core_comment_content
register_block_core_post_template
register_block_core_navigation_submenu
register_block_core_widget_group
register_block_core_latest_posts
build_query_vars_from_query_block
render_block_core_read_more
block_core_home_link_build_css_font_sizes
get_block_editor_server_block_settings
render_block_core_comment_reply_link
block_core_page_list_build_css_font_sizes
get_legacy_widget_block_editor_settings
render_block_core_latest_comments
block_core_calendar_update_has_published_posts
wp_filter_out_block_nodes
get_allowed_block_template_part_areas
build_comment_query_vars_from_block
register_block_core_query_pagination_previous
wp_enqueue_block_style
the_block_editor_meta_box_post_form_hidden_fields
render_block_core_post_terms
get_block_categories
render_block_core_comments_pagination_numbers
get_comment_delimited_block_content
serialize_block_attributes
block_template_part
register_block_core_comments_pagination_next
render_block_core_post_template
register_block_style
register_block_core_pattern
render_block_core_image
block_core_page_list_nest_pages
block_core_navigation_render_submenu_icon
get_typography_styles_for_block_core_search
comments_block_form_defaults
get_border_color_classes_for_block_core_search
register_block_core_post_excerpt
get_blocks_metadata
render_block_core_widget_group
register_block_core_comment_template
register_block_core_comments_pagination_previous
block_core_navigation_build_css_colors
render_block_core_site_title
block_core_navigation_link_render_submenu_icon
get_block_theme_folders
wp_should_skip_block_supports_serialization
register_block_core_calendar
get_default_block_template_types
get_classic_theme_supports_block_editor_settings
register_block_core_post_date
block_core_calendar_has_published_posts
register_block_core_post_author_name
render_block_core_post_author
block_core_navigation_submenu_build_css_font_sizes
register_block_core_social_link
build_dropdown_script_block_core_categories
wp_generate_block_templates_export_file
render_block_core_avatar
block_core_navigation_get_most_recently_published_navigation
render_block
register_block_core_post_author
add_inner_block
render_block_core_loginout
block_core_navigation_typographic_presets_backcompatibility
get_color_classes_for_block_core_search
block_core_navigation_get_menu_items_at_location
register_block_core_query_no_results
render_block_core_pattern
block_core_navigation_sort_menu_items_by_parent_id
register_core_block_types_from_metadata
register_block_style_handle
apply_block_core_search_border_styles
register_block_core_term_description
render_block_core_navigation_submenu
enqueue_legacy_post_comments_block_styles
register_block_core_avatar
unregister_block_style
render_block_core_categories
render_block_core_query_pagination
block_core_navigation_filter_out_empty_blocks
register_block_core_comment_date
register_block_core_search
block_core_navigation_get_classic_menu_fallback_blocks
render_block_core_query_pagination_numbers
register_block_core_site_logo_setting
wp_enqueue_block_support_styles
unregister_block_pattern_category
apply_block_supports
get_default_block_categories
render_block_core_comments_pagination_previous
block_core_post_template_uses_featured_image
register_block_core_heading
block_core_navigation_link_maybe_urldecode
wp_enqueue_registered_block_scripts_and_styles
get_block_core_post_featured_image_overlay_element_markup
block_core_navigation_link_build_css_font_sizes
block_has_support
register_block_core_navigation
register_block_core_image
block_editor_rest_api_preload
register_block_core_loginout
render_block_core_query_title
block_core_navigation_submenu_build_css_colors
block_core_navigation_get_classic_menu_fallback
render_block_core_term_description
render_block_core_query_pagination_previous
_block_template_render_without_post_block_context
register_block_core_post_navigation_link
render_block_core_site_logo
render_block_core_file
wp_setup_widgets_block_editor
enqueue_block_styles_assets
use_block_editor_for_post
register_block_core_comment_edit_link
block_core_navigation_get_fallback_blocks
register_block_core_navigation_link
register_block_core_comment_content
register_block_type_from_metadata
register_legacy_post_comments_block
register_block_core_site_icon_setting
render_block_core_query_no_results
block_core_social_link_get_icon
get_the_block_template_html
register_block_core_post_content
block_core_navigation_parse_blocks_from_menu_items
render_block_core_shortcode
do_block_editor_incompatible_meta_box
register_block_core_comments_title
has_block
register_block_type
render_block_core_navigation_link
render_block_core_latest_posts
unregister_block_type
register_block_core_site_logo
render_block_core_archives
get_block_classes
block_core_social_link_services
block_core_social_link_get_name
wp_use_widgets_block_editor
get_block_editor_settings
register_block_core_query_pagination
wp_pre_kses_block_attributes
do_blocks
register_block_core_query_title
register_block_core_comment_reply_link
ClassicPress 2.0.0
For reference, these are the block-related functions in ClassicPress 2.0.0 (08-09 nightly):
The following block-related functions are in the core, not polyfills:
wp_pre_kses_block_attributes
The following block-related functions are in the core but set to
return: false
. I assume that is a polyfill.use_block_editor_for_post
use_block_editor_for_post_type
is_block_editor
(polyfill)The following block-related functions are not in WordPress but we do have a polyfill:
update_extensions_using_blocks
using_block_function
using_block_function_theme
(FSE theme notice)delete_themes_using_blocks
using_block_function_row
delete_plugins_using_blocks
Might not be related to blocks?
block_request
PclZipUtilCopyBlock