Giter VIP home page Giter VIP logo

Comments (5)

viktorix avatar viktorix commented on June 12, 2024

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?

from classicpress-v2.

viktorix avatar viktorix commented on June 12, 2024

Functions starting with an underscore, which are meant for internal core use, have been removed from the list.

from classicpress-v2.

xxsimoxx avatar xxsimoxx commented on June 12, 2024

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.

  • ./wp-admin/includes/post.php: function get_block_editor_server_block_settings() {
  • ./wp-admin/includes/post.php: function the_block_editor_meta_box_post_form_hidden_fields( $post ) {
  • ./wp-admin/includes/post.php: function the_block_editor_meta_boxes() {
  • ./wp-admin/includes/template.php: function do_block_editor_incompatible_meta_box( $data_object, $box ) {
  • ./wp-includes/block-editor.php: function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
  • ./wp-includes/block-editor.php: function get_allowed_block_types( $block_editor_context ) {
  • ./wp-includes/block-editor.php: function get_block_categories( $post_or_block_editor_context ) {
  • ./wp-includes/block-editor.php: function get_block_editor_settings( array $custom_settings, $block_editor_context ) {
  • ./wp-includes/block-editor.php: function get_block_editor_theme_styles() {
  • ./wp-includes/block-editor.php: function get_classic_theme_supports_block_editor_settings() {
  • ./wp-includes/block-editor.php: function get_default_block_categories() {
  • ./wp-includes/block-editor.php: function get_default_block_editor_settings() {
  • ./wp-includes/block-editor.php: function get_legacy_widget_block_editor_settings() {
  • ./wp-includes/block-patterns.php: function wp_normalize_remote_block_pattern( $pattern ) {
  • ./wp-includes/block-supports/generated-classname.php: function wp_get_block_default_classname( $block_name ) {
  • ./wp-includes/block-supports/utils.php: function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) {
  • ./wp-includes/block-template-utils.php: function block_footer_area() {
  • ./wp-includes/block-template-utils.php: function block_header_area() {
  • ./wp-includes/block-template-utils.php: function block_template_part( $part ) {
  • ./wp-includes/block-template-utils.php: function get_allowed_block_template_part_areas() {
  • ./wp-includes/block-template-utils.php: function get_block_file_template( $id, $template_type = 'wp_template' ) {
  • ./wp-includes/block-template-utils.php: function get_block_template( $id, $template_type = 'wp_template' ) {
  • ./wp-includes/block-template-utils.php: function get_block_templates( $query = array(), $template_type = 'wp_template' ) {
  • ./wp-includes/block-template-utils.php: function get_block_theme_folders( $theme_stylesheet = null ) {
  • ./wp-includes/block-template-utils.php: function get_default_block_template_types() {
  • ./wp-includes/block-template-utils.php: function wp_generate_block_templates_export_file() {
  • ./wp-includes/block-template.php: function get_the_block_template_html() {
  • ./wp-includes/block-template.php: function locate_block_template( $template, $type, array $templates ) {
  • ./wp-includes/block-template.php: function resolve_block_template( $template_type, $template_hierarchy, $fallback_template ) {
  • ./wp-includes/blocks.php: function block_has_support( $block_type, $feature, $default_value = false ) {
  • ./wp-includes/blocks.php: function block_version( $content ) {
  • ./wp-includes/blocks.php: function build_comment_query_vars_from_block( $block ) {
  • ./wp-includes/blocks.php: function build_query_vars_from_query_block( $block, $page ) {
  • ./wp-includes/blocks.php: function do_blocks( $content ) {
  • ./wp-includes/blocks.php: function excerpt_remove_blocks( $content ) {
  • ./wp-includes/blocks.php: function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols = array() ) {
  • ./wp-includes/blocks.php: function filter_block_kses_value( $value, $allowed_html, $allowed_protocols = array() ) {
  • ./wp-includes/blocks.php: function filter_block_kses( $block, $allowed_html, $allowed_protocols = array() ) {
  • ./wp-includes/blocks.php: function generate_block_asset_handle( $block_name, $field_name, $index = 0 ) {
  • ./wp-includes/blocks.php: function get_block_metadata_i18n_schema() {
  • ./wp-includes/blocks.php: function get_comment_delimited_block_content( $block_name, $block_attributes, $block_content ) {
  • ./wp-includes/blocks.php: function get_dynamic_block_names() {
  • ./wp-includes/blocks.php: function parse_blocks( $content ) {
  • ./wp-includes/blocks.php: function register_block_script_handle( $metadata, $field_name, $index = 0 ) {
  • ./wp-includes/blocks.php: function register_block_style_handle( $metadata, $field_name, $index = 0 ) {
  • ./wp-includes/blocks.php: function register_block_style( $block_name, $style_properties ) {
  • ./wp-includes/blocks.php: function remove_block_asset_path_prefix( $asset_handle_or_path ) {
  • ./wp-includes/blocks.php: function render_block( $parsed_block ) {
  • ./wp-includes/blocks.php: function serialize_block_attributes( $block_attributes ) {
  • ./wp-includes/blocks.php: function serialize_block( $block ) {
  • ./wp-includes/blocks.php: function serialize_blocks( $blocks ) {
  • ./wp-includes/blocks.php: function strip_core_block_namespace( $block_name = null ) {
  • ./wp-includes/blocks.php: function unregister_block_style( $block_name, $block_style_name ) {
  • ./wp-includes/blocks/archives.php: function register_block_core_archives() {
  • ./wp-includes/blocks/archives.php: function render_block_core_archives( $attributes ) {
  • ./wp-includes/blocks/avatar.php: function register_block_core_avatar() {
  • ./wp-includes/blocks/avatar.php: function render_block_core_avatar( $attributes, $content, $block ) {
  • ./wp-includes/blocks/block.php: function register_block_core_block() {
  • ./wp-includes/blocks/block.php: function render_block_core_block( $attributes ) {
  • ./wp-includes/blocks/calendar.php: function block_core_calendar_update_has_published_post_on_delete( $post_id ) {
  • ./wp-includes/blocks/calendar.php: function block_core_calendar_update_has_published_post_on_transition_post_status( $new_status, $old_status, $post ) {
  • ./wp-includes/blocks/calendar.php: function block_core_calendar_has_published_posts() {
  • ./wp-includes/blocks/calendar.php: function block_core_calendar_update_has_published_posts() {
  • ./wp-includes/blocks/calendar.php: function register_block_core_calendar() {
  • ./wp-includes/blocks/calendar.php: function render_block_core_calendar( $attributes ) {
  • ./wp-includes/blocks/categories.php: function build_dropdown_script_block_core_categories( $dropdown_id ) {
  • ./wp-includes/blocks/categories.php: function register_block_core_categories() {
  • ./wp-includes/blocks/categories.php: function render_block_core_categories( $attributes ) {
  • ./wp-includes/blocks/comment-author-name.php: function register_block_core_comment_author_name() {
  • ./wp-includes/blocks/comment-author-name.php: function render_block_core_comment_author_name( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comment-content.php: function register_block_core_comment_content() {
  • ./wp-includes/blocks/comment-content.php: function render_block_core_comment_content( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comment-date.php: function register_block_core_comment_date() {
  • ./wp-includes/blocks/comment-date.php: function render_block_core_comment_date( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comment-edit-link.php: function register_block_core_comment_edit_link() {
  • ./wp-includes/blocks/comment-edit-link.php: function render_block_core_comment_edit_link( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comment-reply-link.php: function register_block_core_comment_reply_link() {
  • ./wp-includes/blocks/comment-reply-link.php: function render_block_core_comment_reply_link( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comment-template.php: function block_core_comment_template_render_comments( $comments, $block ) {
  • ./wp-includes/blocks/comment-template.php: function register_block_core_comment_template() {
  • ./wp-includes/blocks/comment-template.php: function render_block_core_comment_template( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comments-pagination-next.php: function register_block_core_comments_pagination_next() {
  • ./wp-includes/blocks/comments-pagination-next.php: function render_block_core_comments_pagination_next( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comments-pagination-numbers.php: function register_block_core_comments_pagination_numbers() {
  • ./wp-includes/blocks/comments-pagination-numbers.php: function render_block_core_comments_pagination_numbers( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comments-pagination-previous.php: function register_block_core_comments_pagination_previous() {
  • ./wp-includes/blocks/comments-pagination-previous.php: function render_block_core_comments_pagination_previous( $attributes, $content, $block ) {
  • ./wp-includes/blocks/comments-pagination.php: function register_block_core_comments_pagination() {
  • ./wp-includes/blocks/comments-pagination.php: function render_block_core_comments_pagination( $attributes, $content ) {
  • ./wp-includes/blocks/comments-title.php: function register_block_core_comments_title() {
  • ./wp-includes/blocks/comments-title.php: function render_block_core_comments_title( $attributes ) {
  • ./wp-includes/blocks/comments.php: function comments_block_form_defaults( $fields ) {
  • ./wp-includes/blocks/comments.php: function enqueue_legacy_post_comments_block_styles( $block_name ) {
  • ./wp-includes/blocks/comments.php: function register_block_core_comments() {
  • ./wp-includes/blocks/comments.php: function register_legacy_post_comments_block() {
  • ./wp-includes/blocks/comments.php: function render_block_core_comments( $attributes, $content, $block ) {
  • ./wp-includes/blocks/cover.php: function register_block_core_cover() {
  • ./wp-includes/blocks/cover.php: function render_block_core_cover( $attributes, $content ) {
  • ./wp-includes/blocks/file.php: function register_block_core_file() {
  • ./wp-includes/blocks/file.php: function render_block_core_file( $attributes, $content, $block ) {
  • ./wp-includes/blocks/gallery.php: function block_core_gallery_data_id_backcompatibility( $parsed_block ) {
  • ./wp-includes/blocks/gallery.php: function block_core_gallery_render( $attributes, $content ) {
  • ./wp-includes/blocks/gallery.php: function register_block_core_gallery() {
  • ./wp-includes/blocks/heading.php: function block_core_heading_render( $attributes, $content ) {
  • ./wp-includes/blocks/heading.php: function register_block_core_heading() {
  • ./wp-includes/blocks/home-link.php: function block_core_home_link_build_css_colors( $context ) {
  • ./wp-includes/blocks/home-link.php: function block_core_home_link_build_css_font_sizes( $context ) {
  • ./wp-includes/blocks/home-link.php: function block_core_home_link_build_li_wrapper_attributes( $context ) {
  • ./wp-includes/blocks/home-link.php: function register_block_core_home_link() {
  • ./wp-includes/blocks/home-link.php: function render_block_core_home_link( $attributes, $content, $block ) {
  • ./wp-includes/blocks/image.php: function register_block_core_image() {
  • ./wp-includes/blocks/image.php: function render_block_core_image( $attributes, $content ) {
  • ./wp-includes/blocks/index.php: function register_core_block_types_from_metadata() {
  • ./wp-includes/blocks/latest-comments.php: function register_block_core_latest_comments() {
  • ./wp-includes/blocks/latest-comments.php: function render_block_core_latest_comments( $attributes = array() ) {
  • ./wp-includes/blocks/latest-posts.php: function block_core_latest_posts_get_excerpt_length() {
  • ./wp-includes/blocks/latest-posts.php: function block_core_latest_posts_migrate_categories( $block ) {
  • ./wp-includes/blocks/latest-posts.php: function register_block_core_latest_posts() {
  • ./wp-includes/blocks/latest-posts.php: function render_block_core_latest_posts( $attributes ) {
  • ./wp-includes/blocks/legacy-widget.php: function register_block_core_legacy_widget() {
  • ./wp-includes/blocks/legacy-widget.php: function render_block_core_legacy_widget( $attributes ) {
  • ./wp-includes/blocks/loginout.php: function register_block_core_loginout() {
  • ./wp-includes/blocks/loginout.php: function render_block_core_loginout( $attributes ) {
  • ./wp-includes/blocks/navigation-link.php: function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
  • ./wp-includes/blocks/navigation-link.php: function block_core_navigation_link_build_css_font_sizes( $context ) {
  • ./wp-includes/blocks/navigation-link.php: function block_core_navigation_link_maybe_urldecode( $url ) {
  • ./wp-includes/blocks/navigation-link.php: function block_core_navigation_link_render_submenu_icon() {
  • ./wp-includes/blocks/navigation-link.php: function register_block_core_navigation_link() {
  • ./wp-includes/blocks/navigation-link.php: function render_block_core_navigation_link( $attributes, $content, $block ) {
  • ./wp-includes/blocks/navigation-submenu.php: function block_core_navigation_submenu_build_css_font_sizes( $context ) {
  • ./wp-includes/blocks/navigation-submenu.php: function block_core_navigation_submenu_render_submenu_icon() {
  • ./wp-includes/blocks/navigation-submenu.php: function register_block_core_navigation_submenu() {
  • ./wp-includes/blocks/navigation-submenu.php: function render_block_core_navigation_submenu( $attributes, $content, $block ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_menu_items_at_location( $location ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_sort_menu_items_by_parent_id( $menu_items ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_block_contains_core_navigation( $inner_blocks ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_build_css_colors( $attributes ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_build_css_font_sizes( $attributes ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_filter_out_empty_blocks( $parsed_blocks ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_from_block_get_post_ids( $block ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_classic_menu_fallback_blocks( $classic_nav_menu ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_classic_menu_fallback() {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_fallback_blocks() {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_most_recently_published_navigation() {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_get_post_ids( $inner_blocks ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_maybe_use_classic_menu_fallback() {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_parse_blocks_from_menu_items( $menu_items, $menu_items_by_parent_id ) {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_render_submenu_icon() {
  • ./wp-includes/blocks/navigation.php: function block_core_navigation_typographic_presets_backcompatibility( $parsed_block ) {
  • ./wp-includes/blocks/navigation.php: function register_block_core_navigation() {
  • ./wp-includes/blocks/navigation.php: function render_block_core_navigation( $attributes, $content, $block ) {
  • ./wp-includes/blocks/page-list.php: function block_core_page_list_build_css_colors( $attributes, $context ) {
  • ./wp-includes/blocks/page-list.php: function block_core_page_list_build_css_font_sizes( $context ) {
  • ./wp-includes/blocks/page-list.php: function block_core_page_list_nest_pages( $current_level, $children ) {
  • ./wp-includes/blocks/page-list.php: 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 ) {
  • ./wp-includes/blocks/page-list.php: function register_block_core_page_list() {
  • ./wp-includes/blocks/page-list.php: function render_block_core_page_list( $attributes, $content, $block ) {
  • ./wp-includes/blocks/pattern.php: function register_block_core_pattern() {
  • ./wp-includes/blocks/pattern.php: function render_block_core_pattern( $attributes ) {
  • ./wp-includes/blocks/post-author-biography.php: function register_block_core_post_author_biography() {
  • ./wp-includes/blocks/post-author-biography.php: function render_block_core_post_author_biography( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-author-name.php: function register_block_core_post_author_name() {
  • ./wp-includes/blocks/post-author-name.php: function render_block_core_post_author_name( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-author.php: function register_block_core_post_author() {
  • ./wp-includes/blocks/post-author.php: function render_block_core_post_author( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-comments-form.php: function post_comments_form_block_form_defaults( $fields ) {
  • ./wp-includes/blocks/post-comments-form.php: function register_block_core_post_comments_form() {
  • ./wp-includes/blocks/post-comments-form.php: function render_block_core_post_comments_form( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-content.php: function register_block_core_post_content() {
  • ./wp-includes/blocks/post-content.php: function render_block_core_post_content( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-date.php: function register_block_core_post_date() {
  • ./wp-includes/blocks/post-date.php: function render_block_core_post_date( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-excerpt.php: function register_block_core_post_excerpt() {
  • ./wp-includes/blocks/post-excerpt.php: function render_block_core_post_excerpt( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-featured-image.php: function get_block_core_post_featured_image_border_attributes( $attributes ) {
  • ./wp-includes/blocks/post-featured-image.php: function get_block_core_post_featured_image_overlay_element_markup( $attributes ) {
  • ./wp-includes/blocks/post-featured-image.php: function register_block_core_post_featured_image() {
  • ./wp-includes/blocks/post-featured-image.php: function render_block_core_post_featured_image( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-navigation-link.php: function register_block_core_post_navigation_link() {
  • ./wp-includes/blocks/post-navigation-link.php: function render_block_core_post_navigation_link( $attributes, $content ) {
  • ./wp-includes/blocks/post-template.php: function block_core_post_template_uses_featured_image( $inner_blocks ) {
  • ./wp-includes/blocks/post-template.php: function register_block_core_post_template() {
  • ./wp-includes/blocks/post-template.php: function render_block_core_post_template( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-terms.php: function register_block_core_post_terms() {
  • ./wp-includes/blocks/post-terms.php: function render_block_core_post_terms( $attributes, $content, $block ) {
  • ./wp-includes/blocks/post-title.php: function register_block_core_post_title() {
  • ./wp-includes/blocks/post-title.php: function render_block_core_post_title( $attributes, $content, $block ) {
  • ./wp-includes/blocks/query-no-results.php: function register_block_core_query_no_results() {
  • ./wp-includes/blocks/query-no-results.php: function render_block_core_query_no_results( $attributes, $content, $block ) {
  • ./wp-includes/blocks/query-pagination-next.php: function register_block_core_query_pagination_next() {
  • ./wp-includes/blocks/query-pagination-next.php: function render_block_core_query_pagination_next( $attributes, $content, $block ) {
  • ./wp-includes/blocks/query-pagination-numbers.php: function register_block_core_query_pagination_numbers() {
  • ./wp-includes/blocks/query-pagination-numbers.php: function render_block_core_query_pagination_numbers( $attributes, $content, $block ) {
  • ./wp-includes/blocks/query-pagination-previous.php: function register_block_core_query_pagination_previous() {
  • ./wp-includes/blocks/query-pagination-previous.php: function render_block_core_query_pagination_previous( $attributes, $content, $block ) {
  • ./wp-includes/blocks/query-pagination.php: function register_block_core_query_pagination() {
  • ./wp-includes/blocks/query-pagination.php: function render_block_core_query_pagination( $attributes, $content ) {
  • ./wp-includes/blocks/query-title.php: function register_block_core_query_title() {
  • ./wp-includes/blocks/query-title.php: function render_block_core_query_title( $attributes ) {
  • ./wp-includes/blocks/query.php: function register_block_core_query() {
  • ./wp-includes/blocks/read-more.php: function register_block_core_read_more() {
  • ./wp-includes/blocks/read-more.php: function render_block_core_read_more( $attributes, $content, $block ) {
  • ./wp-includes/blocks/rss.php: function register_block_core_rss() {
  • ./wp-includes/blocks/rss.php: function render_block_core_rss( $attributes ) {
  • ./wp-includes/blocks/search.php: function apply_block_core_search_border_style( $attributes, $property, $side, &$wrapper_styles, &$button_styles, &$input_styles ) {
  • ./wp-includes/blocks/search.php: function apply_block_core_search_border_styles( $attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles ) {
  • ./wp-includes/blocks/search.php: function classnames_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function get_border_color_classes_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function get_color_classes_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function get_typography_classes_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function get_typography_styles_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function register_block_core_search() {
  • ./wp-includes/blocks/search.php: function render_block_core_search( $attributes ) {
  • ./wp-includes/blocks/search.php: function styles_for_block_core_search( $attributes ) {
  • ./wp-includes/blocks/shortcode.php: function register_block_core_shortcode() {
  • ./wp-includes/blocks/shortcode.php: function render_block_core_shortcode( $attributes, $content ) {
  • ./wp-includes/blocks/site-logo.php: function register_block_core_site_icon_setting() {
  • ./wp-includes/blocks/site-logo.php: function register_block_core_site_logo_setting() {
  • ./wp-includes/blocks/site-logo.php: function register_block_core_site_logo() {
  • ./wp-includes/blocks/site-logo.php: function render_block_core_site_logo( $attributes ) {
  • ./wp-includes/blocks/site-tagline.php: function register_block_core_site_tagline() {
  • ./wp-includes/blocks/site-tagline.php: function render_block_core_site_tagline( $attributes ) {
  • ./wp-includes/blocks/site-title.php: function register_block_core_site_title() {
  • ./wp-includes/blocks/site-title.php: function render_block_core_site_title( $attributes ) {
  • ./wp-includes/blocks/social-link.php: function block_core_social_link_get_color_styles( $context ) {
  • ./wp-includes/blocks/social-link.php: function block_core_social_link_get_icon( $service ) {
  • ./wp-includes/blocks/social-link.php: function block_core_social_link_get_name( $service ) {
  • ./wp-includes/blocks/social-link.php: function block_core_social_link_services( $service = '', $field = '' ) {
  • ./wp-includes/blocks/social-link.php: function register_block_core_social_link() {
  • ./wp-includes/blocks/social-link.php: function render_block_core_social_link( $attributes, $content, $block ) {
  • ./wp-includes/blocks/tag-cloud.php: function register_block_core_tag_cloud() {
  • ./wp-includes/blocks/tag-cloud.php: function render_block_core_tag_cloud( $attributes ) {
  • ./wp-includes/blocks/template-part.php: function build_template_part_block_area_variations( $instance_variations ) {
  • ./wp-includes/blocks/template-part.php: function build_template_part_block_instance_variations() {
  • ./wp-includes/blocks/template-part.php: function build_template_part_block_variations() {
  • ./wp-includes/blocks/template-part.php: function register_block_core_template_part() {
  • ./wp-includes/blocks/template-part.php: function render_block_core_template_part( $attributes ) {
  • ./wp-includes/blocks/term-description.php: function register_block_core_term_description() {
  • ./wp-includes/blocks/term-description.php: function render_block_core_term_description( $attributes ) {
  • ./wp-includes/blocks/widget-group.php: function register_block_core_widget_group() {
  • ./wp-includes/blocks/widget-group.php: function render_block_core_widget_group( $attributes, $content, $block ) {
  • ./wp-includes/class-wp-block-supports.php: function get_block_wrapper_attributes( $extra_attributes = array() ) {
  • ./wp-includes/deprecated.php: function block_core_navigation_submenu_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
  • ./wp-includes/global-styles-and-settings.php: function wp_add_global_styles_for_blocks() {
  • ./wp-includes/script-loader.php: function enqueue_block_styles_assets() {
  • ./wp-includes/script-loader.php: function enqueue_editor_block_styles_assets() {
  • ./wp-includes/script-loader.php: function wp_common_block_scripts_and_styles() {
  • ./wp-includes/script-loader.php: function wp_enqueue_block_style( $block_name, $args ) {
  • ./wp-includes/script-loader.php: function wp_enqueue_block_support_styles( $style, $priority = 10 ) {
  • ./wp-includes/script-loader.php: function wp_enqueue_editor_block_directory_assets() {
  • ./wp-includes/script-loader.php: function wp_enqueue_registered_block_scripts_and_styles() {
  • ./wp-includes/script-loader.php: function wp_filter_out_block_nodes( $nodes ) {
  • ./wp-includes/script-loader.php: function wp_should_load_block_editor_scripts_and_styles() {
  • ./wp-includes/script-loader.php: function wp_should_load_separate_core_block_assets() {
  • ./wp-includes/theme-templates.php: function the_block_template_skip_link() {
  • ./wp-includes/theme-templates.php: function wp_enable_block_templates() {
  • ./wp-includes/widgets.php: function wp_setup_widgets_block_editor() {
  • ./wp-includes/widgets.php: function wp_use_widgets_block_editor() {
  • ./wp-includes/class-wp-block-pattern-categories-registry.php: function register_block_pattern_category( $category_name, $category_properties ) { // RETURN FALSE
  • ./wp-includes/class-wp-block-pattern-categories-registry.php: function unregister_block_pattern_category( $category_name ) { // RETURN FALSE
  • ./wp-includes/formatting.php: function 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 defined
  • ./wp-admin/includes/class-wp-screen.php: public function is_block_editor( $set = null ) {
  • ./wp-includes/blocks.php: function has_block( $block_name, $post = null ) {
  • ./wp-includes/blocks.php: function has_blocks( $post = null ) {
  • ./wp-includes/blocks.php: function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
  • ./wp-includes/blocks.php: function register_block_type( $block_type, $args = array() ) {
  • ./wp-includes/blocks.php: function unregister_block_type( $name ) {
  • ./wp-includes/class-wp-block-patterns-registry.php: function register_block_pattern( $pattern_name, $pattern_properties ) {
  • ./wp-includes/class-wp-block-patterns-registry.php: function unregister_block_pattern( $pattern_name ) {
  • ./wp-includes/post.php: function use_block_editor_for_post_type( $post_type ) { // NEEDS CALL TO WP_Compat::using_block_function()
  • ./wp-includes/post.php: function use_block_editor_for_post( $post ) { // NEEDS CALL TO WP_Compat::using_block_function()
  • ./wp-includes/theme.php: function wp_is_block_theme() {
  • ./wp-includes/block-template.php: function _block_template_render_without_post_block_context( $context ) {
  • ./wp-includes/class-wp-block-parser.php: public function add_block_from_stack( $end_offset = null ) {
  • ./wp-includes/class-wp-block-parser.php: public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) {
  • ./wp-includes/class-wp-block-styles-registry.php: public function get_registered_styles_for_block( $block_name ) {
  • ./wp-includes/class-wp-block-supports.php: public function apply_block_supports() {
  • ./wp-includes/class-wp-customize-widgets.php: public function should_load_block_editor_scripts_and_styles( $is_block_editor_screen ) {
  • ./wp-includes/class-wp-theme-json-resolver.php: protected static function has_same_registered_blocks( $origin ) {
  • ./wp-includes/class-wp-theme-json-resolver.php: public static function get_block_data() {
  • ./wp-includes/class-wp-theme-json.php: private static function get_block_nodes( $theme_json ) {
  • ./wp-includes/class-wp-theme-json.php: protected function get_block_classes( $style_nodes ) {
  • ./wp-includes/class-wp-theme-json.php: protected function process_blocks_custom_css( $css, $selector ) {
  • ./wp-includes/class-wp-theme-json.php: protected static function get_blocks_metadata() {
  • ./wp-includes/class-wp-theme-json.php: public function get_styles_block_nodes() {
  • ./wp-includes/class-wp-theme-json.php: public function get_styles_for_block( $block_metadata ) {
  • ./wp-includes/class-wp-theme.php: public function is_block_theme() {
  • ~~./wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php: protected function get_block( $name ) { ~~
  • ./wp-includes/sodium_compat/src/Core/Poly1305/State.php: public function blocks($message, $bytes)
  • ./wp-includes/sodium_compat/src/Core32/Poly1305/State.php: public function blocks($message, $bytes)
  • ./wp-includes/style-engine/class-wp-style-engine.php: public static function parse_block_styles( $block_styles, $options ) {

from classicpress-v2.

viktorix avatar viktorix commented on June 12, 2024

@xxsimoxx what about the rest of them? They won't cause fatal errors?

from classicpress-v2.

xxsimoxx avatar xxsimoxx commented on June 12, 2024

I've excluded:

  • functions that render/help rendering block editor
  • all those inside wp-includes/blocks/ as those render built in blocks
  • functions that need block objects as parameters
  • function "doing things", that are called, expect to do something, and return void

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.

from classicpress-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.