mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -332,66 +332,9 @@ tests_add_filter( 'send_auth_cookies', '__return_false' );
|
||||
* @since 5.0.0
|
||||
*/
|
||||
function _unhook_block_registration() {
|
||||
remove_action( 'init', 'register_block_core_archives' );
|
||||
remove_action( 'init', 'register_block_core_avatar' );
|
||||
remove_action( 'init', 'register_block_core_block' );
|
||||
remove_action( 'init', 'register_block_core_calendar' );
|
||||
remove_action( 'init', 'register_block_core_categories' );
|
||||
remove_action( 'init', 'register_block_core_comment_author_name' );
|
||||
remove_action( 'init', 'register_block_core_comment_content' );
|
||||
remove_action( 'init', 'register_block_core_comment_date' );
|
||||
remove_action( 'init', 'register_block_core_comment_edit_link' );
|
||||
remove_action( 'init', 'register_block_core_comment_reply_link' );
|
||||
remove_action( 'init', 'register_block_core_comment_template' );
|
||||
remove_action( 'init', 'register_block_core_comments_pagination' );
|
||||
remove_action( 'init', 'register_block_core_comments_pagination_next' );
|
||||
remove_action( 'init', 'register_block_core_comments_pagination_numbers' );
|
||||
remove_action( 'init', 'register_block_core_comments_pagination_previous' );
|
||||
remove_action( 'init', 'register_block_core_comments_title' );
|
||||
remove_action( 'init', 'register_block_core_cover' );
|
||||
remove_action( 'init', 'register_block_core_file' );
|
||||
remove_action( 'init', 'register_block_core_gallery' );
|
||||
remove_action( 'init', 'register_block_core_home_link' );
|
||||
remove_action( 'init', 'register_block_core_image' );
|
||||
remove_action( 'init', 'register_block_core_latest_comments' );
|
||||
remove_action( 'init', 'register_block_core_latest_posts' );
|
||||
require __DIR__ . '/unregister-blocks-hooks.php';
|
||||
remove_action( 'init', 'register_core_block_types_from_metadata' );
|
||||
remove_action( 'init', 'register_block_core_legacy_widget' );
|
||||
remove_action( 'init', 'register_block_core_loginout' );
|
||||
remove_action( 'init', 'register_block_core_navigation' );
|
||||
remove_action( 'init', 'register_block_core_navigation_link' );
|
||||
remove_action( 'init', 'register_block_core_navigation_submenu' );
|
||||
remove_action( 'init', 'register_block_core_page_list' );
|
||||
remove_action( 'init', 'register_block_core_pattern' );
|
||||
remove_action( 'init', 'register_block_core_post_author' );
|
||||
remove_action( 'init', 'register_block_core_post_author_biography' );
|
||||
remove_action( 'init', 'register_block_core_post_comments' );
|
||||
remove_action( 'init', 'register_block_core_post_comments_form' );
|
||||
remove_action( 'init', 'register_block_core_post_content' );
|
||||
remove_action( 'init', 'register_block_core_post_date' );
|
||||
remove_action( 'init', 'register_block_core_post_excerpt' );
|
||||
remove_action( 'init', 'register_block_core_post_featured_image' );
|
||||
remove_action( 'init', 'register_block_core_post_navigation_link' );
|
||||
remove_action( 'init', 'register_block_core_post_template' );
|
||||
remove_action( 'init', 'register_block_core_post_terms' );
|
||||
remove_action( 'init', 'register_block_core_post_title' );
|
||||
remove_action( 'init', 'register_block_core_query' );
|
||||
remove_action( 'init', 'register_block_core_query_no_results' );
|
||||
remove_action( 'init', 'register_block_core_query_pagination' );
|
||||
remove_action( 'init', 'register_block_core_query_pagination_next' );
|
||||
remove_action( 'init', 'register_block_core_query_pagination_numbers' );
|
||||
remove_action( 'init', 'register_block_core_query_pagination_previous' );
|
||||
remove_action( 'init', 'register_block_core_query_title' );
|
||||
remove_action( 'init', 'register_block_core_read_more' );
|
||||
remove_action( 'init', 'register_block_core_rss' );
|
||||
remove_action( 'init', 'register_block_core_search' );
|
||||
remove_action( 'init', 'register_block_core_shortcode' );
|
||||
remove_action( 'init', 'register_block_core_site_logo' );
|
||||
remove_action( 'init', 'register_block_core_site_tagline' );
|
||||
remove_action( 'init', 'register_block_core_site_title' );
|
||||
remove_action( 'init', 'register_block_core_social_link' );
|
||||
remove_action( 'init', 'register_block_core_tag_cloud' );
|
||||
remove_action( 'init', 'register_block_core_template_part' );
|
||||
remove_action( 'init', 'register_block_core_term_description' );
|
||||
remove_action( 'init', 'register_block_core_widget_group' );
|
||||
remove_action( 'init', 'register_core_block_types_from_metadata' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user