mirrored from git:https://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically sync stable blocks from Gutenberg to wordpress-develop on release #2647
Closed
adamziel
wants to merge
12
commits into
WordPress:trunk
from
adamziel:add/sync-stable-blocks-utility
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
25c4254
Actually regenerate PHP files used by the core
adamziel 9193299
React directory name from the path instead of inferring it from the b…
adamziel d6cfde2
Add a warning about the files being autogenerated
adamziel 5fe151b
Extract widgets-related requires and remove_action calls outside of t…
adamziel 137d675
Replace splitting by "/" with path.basename( path.dirname( metadata.p…
adamziel c8fa1e9
Export the main functino from sync-stable-blocks instead of checking …
adamziel cfdd14f
Run sync-stable-blocks by requiring the main function
adamziel adcd917
Update tools/release/sync-stable-blocks.js
adamziel 3cd75a2
Merge branch 'add/sync-stable-blocks-utility' of github.com:adamziel/…
adamziel 2764f02
Use repo-root oriented paths
adamziel 01a6bd5
Use __DIR__ and WP_INC-based require paths
adamziel e00f9b6
Manually remove blocks not stabilized in WP 6.0 yet
adamziel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,67 +6,9 @@ | |
*/ | ||
|
||
// Include files required for core blocks registration. | ||
require ABSPATH . WPINC . '/blocks/archives.php'; | ||
require ABSPATH . WPINC . '/blocks/avatar.php'; | ||
require ABSPATH . WPINC . '/blocks/block.php'; | ||
require ABSPATH . WPINC . '/blocks/calendar.php'; | ||
require ABSPATH . WPINC . '/blocks/categories.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-author-name.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-content.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-date.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-edit-link.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-reply-link.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-template.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-next.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-numbers.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-previous.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-title.php'; | ||
require ABSPATH . WPINC . '/blocks/cover.php'; | ||
require ABSPATH . WPINC . '/blocks/file.php'; | ||
require ABSPATH . WPINC . '/blocks/gallery.php'; | ||
require ABSPATH . WPINC . '/blocks/home-link.php'; | ||
require ABSPATH . WPINC . '/blocks/image.php'; | ||
require ABSPATH . WPINC . '/blocks/latest-comments.php'; | ||
require ABSPATH . WPINC . '/blocks/latest-posts.php'; | ||
require ABSPATH . WPINC . '/blocks/legacy-widget.php'; | ||
require ABSPATH . WPINC . '/blocks/loginout.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation-link.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation-submenu.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation.php'; | ||
require ABSPATH . WPINC . '/blocks/page-list.php'; | ||
require ABSPATH . WPINC . '/blocks/pattern.php'; | ||
require ABSPATH . WPINC . '/blocks/post-author-biography.php'; | ||
require ABSPATH . WPINC . '/blocks/post-author.php'; | ||
require ABSPATH . WPINC . '/blocks/post-comments.php'; | ||
require ABSPATH . WPINC . '/blocks/post-comments-form.php'; | ||
require ABSPATH . WPINC . '/blocks/post-content.php'; | ||
require ABSPATH . WPINC . '/blocks/post-date.php'; | ||
require ABSPATH . WPINC . '/blocks/post-excerpt.php'; | ||
require ABSPATH . WPINC . '/blocks/post-featured-image.php'; | ||
require ABSPATH . WPINC . '/blocks/post-navigation-link.php'; | ||
require ABSPATH . WPINC . '/blocks/post-template.php'; | ||
require ABSPATH . WPINC . '/blocks/post-terms.php'; | ||
require ABSPATH . WPINC . '/blocks/post-title.php'; | ||
require ABSPATH . WPINC . '/blocks/query-no-results.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-next.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-numbers.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-previous.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination.php'; | ||
require ABSPATH . WPINC . '/blocks/query-title.php'; | ||
require ABSPATH . WPINC . '/blocks/query.php'; | ||
require ABSPATH . WPINC . '/blocks/read-more.php'; | ||
require ABSPATH . WPINC . '/blocks/rss.php'; | ||
require ABSPATH . WPINC . '/blocks/search.php'; | ||
require ABSPATH . WPINC . '/blocks/shortcode.php'; | ||
require ABSPATH . WPINC . '/blocks/site-logo.php'; | ||
require ABSPATH . WPINC . '/blocks/site-tagline.php'; | ||
require ABSPATH . WPINC . '/blocks/site-title.php'; | ||
require ABSPATH . WPINC . '/blocks/social-link.php'; | ||
require ABSPATH . WPINC . '/blocks/tag-cloud.php'; | ||
require ABSPATH . WPINC . '/blocks/template-part.php'; | ||
require ABSPATH . WPINC . '/blocks/term-description.php'; | ||
require ABSPATH . WPINC . '/blocks/widget-group.php'; | ||
require ABSPATH . WPINC . '/blocks/require-blocks.php'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Let's move |
||
|
||
/** | ||
* Registers core block types using metadata files. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
|
||
// This file was autogenerated by tools/release/sync-stable-blocks.js, do not change manually! | ||
// Include files required for core blocks registration. | ||
require ABSPATH . WPINC . '/blocks/archives.php'; | ||
require ABSPATH . WPINC . '/blocks/avatar.php'; | ||
require ABSPATH . WPINC . '/blocks/block.php'; | ||
require ABSPATH . WPINC . '/blocks/calendar.php'; | ||
require ABSPATH . WPINC . '/blocks/categories.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-author-name.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-content.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-date.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-edit-link.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-reply-link.php'; | ||
require ABSPATH . WPINC . '/blocks/comment-template.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-next.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-numbers.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-pagination-previous.php'; | ||
require ABSPATH . WPINC . '/blocks/comments-title.php'; | ||
require ABSPATH . WPINC . '/blocks/cover.php'; | ||
require ABSPATH . WPINC . '/blocks/file.php'; | ||
require ABSPATH . WPINC . '/blocks/gallery.php'; | ||
require ABSPATH . WPINC . '/blocks/home-link.php'; | ||
require ABSPATH . WPINC . '/blocks/image.php'; | ||
require ABSPATH . WPINC . '/blocks/latest-comments.php'; | ||
require ABSPATH . WPINC . '/blocks/latest-posts.php'; | ||
require ABSPATH . WPINC . '/blocks/loginout.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation-link.php'; | ||
require ABSPATH . WPINC . '/blocks/navigation-submenu.php'; | ||
require ABSPATH . WPINC . '/blocks/page-list.php'; | ||
require ABSPATH . WPINC . '/blocks/pattern.php'; | ||
require ABSPATH . WPINC . '/blocks/post-author.php'; | ||
require ABSPATH . WPINC . '/blocks/post-author-biography.php'; | ||
require ABSPATH . WPINC . '/blocks/post-comments.php'; | ||
require ABSPATH . WPINC . '/blocks/post-comments-form.php'; | ||
require ABSPATH . WPINC . '/blocks/post-content.php'; | ||
require ABSPATH . WPINC . '/blocks/post-date.php'; | ||
require ABSPATH . WPINC . '/blocks/post-excerpt.php'; | ||
require ABSPATH . WPINC . '/blocks/post-featured-image.php'; | ||
require ABSPATH . WPINC . '/blocks/post-navigation-link.php'; | ||
require ABSPATH . WPINC . '/blocks/post-template.php'; | ||
require ABSPATH . WPINC . '/blocks/post-terms.php'; | ||
require ABSPATH . WPINC . '/blocks/post-title.php'; | ||
require ABSPATH . WPINC . '/blocks/query.php'; | ||
require ABSPATH . WPINC . '/blocks/query-no-results.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-next.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-numbers.php'; | ||
require ABSPATH . WPINC . '/blocks/query-pagination-previous.php'; | ||
require ABSPATH . WPINC . '/blocks/query-title.php'; | ||
require ABSPATH . WPINC . '/blocks/read-more.php'; | ||
require ABSPATH . WPINC . '/blocks/rss.php'; | ||
require ABSPATH . WPINC . '/blocks/search.php'; | ||
require ABSPATH . WPINC . '/blocks/shortcode.php'; | ||
require ABSPATH . WPINC . '/blocks/site-logo.php'; | ||
require ABSPATH . WPINC . '/blocks/site-tagline.php'; | ||
require ABSPATH . WPINC . '/blocks/site-title.php'; | ||
require ABSPATH . WPINC . '/blocks/social-link.php'; | ||
require ABSPATH . WPINC . '/blocks/tag-cloud.php'; | ||
require ABSPATH . WPINC . '/blocks/template-part.php'; | ||
require ABSPATH . WPINC . '/blocks/term-description.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
// This file was autogenerated by tools/release/sync-stable-blocks.js, do not change manually! | ||
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' ); | ||
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' ); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we can't use?
Is there also any reason why it has to be required dynamically rather than in the header of the file?