Make WordPress Core


Ignore:
Timestamp:
07/08/2022 12:32:37 PM (2 years ago)
Author:
gziolo
Message:

Tools: Automate backporting core blocks from Gutenberg to Core

Syncing stable blocks from the Gutenberg repository to wordpress-develop was a manual process, but it got automated with the script that runs together with syncing WordPress packages changed in the Gutenberg package.

Props zieladam.
Fixes #56179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r53635 r53688  
    333333 */
    334334function _unhook_block_registration() {
    335     remove_action( 'init', 'register_block_core_archives' );
    336     remove_action( 'init', 'register_block_core_avatar' );
    337     remove_action( 'init', 'register_block_core_block' );
    338     remove_action( 'init', 'register_block_core_calendar' );
    339     remove_action( 'init', 'register_block_core_categories' );
    340     remove_action( 'init', 'register_block_core_comment_author_name' );
    341     remove_action( 'init', 'register_block_core_comment_content' );
    342     remove_action( 'init', 'register_block_core_comment_date' );
    343     remove_action( 'init', 'register_block_core_comment_edit_link' );
    344     remove_action( 'init', 'register_block_core_comment_reply_link' );
    345     remove_action( 'init', 'register_block_core_comment_template' );
    346     remove_action( 'init', 'register_block_core_comments_pagination' );
    347     remove_action( 'init', 'register_block_core_comments_pagination_next' );
    348     remove_action( 'init', 'register_block_core_comments_pagination_numbers' );
    349     remove_action( 'init', 'register_block_core_comments_pagination_previous' );
    350     remove_action( 'init', 'register_block_core_comments_title' );
    351     remove_action( 'init', 'register_block_core_cover' );
    352     remove_action( 'init', 'register_block_core_file' );
    353     remove_action( 'init', 'register_block_core_gallery' );
    354     remove_action( 'init', 'register_block_core_home_link' );
    355     remove_action( 'init', 'register_block_core_image' );
    356     remove_action( 'init', 'register_block_core_latest_comments' );
    357     remove_action( 'init', 'register_block_core_latest_posts' );
     335    require __DIR__ . '/unregister-blocks-hooks.php';
     336    remove_action( 'init', 'register_core_block_types_from_metadata' );
    358337    remove_action( 'init', 'register_block_core_legacy_widget' );
    359     remove_action( 'init', 'register_block_core_loginout' );
    360     remove_action( 'init', 'register_block_core_navigation' );
    361     remove_action( 'init', 'register_block_core_navigation_link' );
    362     remove_action( 'init', 'register_block_core_navigation_submenu' );
    363     remove_action( 'init', 'register_block_core_page_list' );
    364     remove_action( 'init', 'register_block_core_pattern' );
    365     remove_action( 'init', 'register_block_core_post_author' );
    366     remove_action( 'init', 'register_block_core_post_author_biography' );
    367     remove_action( 'init', 'register_block_core_post_comments' );
    368     remove_action( 'init', 'register_block_core_post_comments_form' );
    369     remove_action( 'init', 'register_block_core_post_content' );
    370     remove_action( 'init', 'register_block_core_post_date' );
    371     remove_action( 'init', 'register_block_core_post_excerpt' );
    372     remove_action( 'init', 'register_block_core_post_featured_image' );
    373     remove_action( 'init', 'register_block_core_post_navigation_link' );
    374     remove_action( 'init', 'register_block_core_post_template' );
    375     remove_action( 'init', 'register_block_core_post_terms' );
    376     remove_action( 'init', 'register_block_core_post_title' );
    377     remove_action( 'init', 'register_block_core_query' );
    378     remove_action( 'init', 'register_block_core_query_no_results' );
    379     remove_action( 'init', 'register_block_core_query_pagination' );
    380     remove_action( 'init', 'register_block_core_query_pagination_next' );
    381     remove_action( 'init', 'register_block_core_query_pagination_numbers' );
    382     remove_action( 'init', 'register_block_core_query_pagination_previous' );
    383     remove_action( 'init', 'register_block_core_query_title' );
    384     remove_action( 'init', 'register_block_core_read_more' );
    385     remove_action( 'init', 'register_block_core_rss' );
    386     remove_action( 'init', 'register_block_core_search' );
    387     remove_action( 'init', 'register_block_core_shortcode' );
    388     remove_action( 'init', 'register_block_core_site_logo' );
    389     remove_action( 'init', 'register_block_core_site_tagline' );
    390     remove_action( 'init', 'register_block_core_site_title' );
    391     remove_action( 'init', 'register_block_core_social_link' );
    392     remove_action( 'init', 'register_block_core_tag_cloud' );
    393     remove_action( 'init', 'register_block_core_template_part' );
    394     remove_action( 'init', 'register_block_core_term_description' );
    395338    remove_action( 'init', 'register_block_core_widget_group' );
    396339    remove_action( 'init', 'register_core_block_types_from_metadata' );
Note: See TracChangeset for help on using the changeset viewer.