WordPress/wp-includes/blocks
Sergey Biryukov f092e4b013 Editor: Improve block loading PHP performance.
This commit improves PHP performance for core blocks by reading a single PHP file with block metadata, instead of reading a JSON file per-block and then decoding from JSON to PHP.

Includes:
* Adding a new Grunt task to convert `block.json` files to `block-json.php`.
* Using the new `block-json.php` file in the `register_block_type_from_metadata()` function.

Follow-up to [48141].

Props aristath, gziolo, johnbillion, presstoke, mukesh27, hellofromTonya, petitphp, adamsilverstein, costdev, desrosj, SergeyBiryukov.
Fixes #55005.
Built from https://develop.svn.wordpress.org/trunk@54276


git-svn-id: http://core.svn.wordpress.org/trunk@53835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-21 13:57:21 +00:00
..
archives Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
audio Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
avatar Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
block Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
button Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
buttons Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
calendar Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
categories Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
code Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
column Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
columns Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-author-name Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-content Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-date Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-edit-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-reply-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-template Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments-pagination Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments-pagination-next Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments-pagination-numbers Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments-pagination-previous Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments-title Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
cover Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
embed Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
file Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
freeform Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
gallery Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
group Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
heading Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
home-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
html Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
image Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
latest-comments Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
latest-posts Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
legacy-widget
list Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
list-item Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
loginout Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
media-text Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
missing Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
more Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
navigation Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
navigation-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
navigation-submenu Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
nextpage Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
page-list Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
paragraph Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
pattern Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
post-author Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-author-biography Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-comments-form Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-content Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-date Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-excerpt Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-featured-image Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-navigation-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-template Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-terms Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-title Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
preformatted Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
pullquote Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-no-results Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-pagination Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-pagination-next Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-pagination-numbers Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-pagination-previous Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-title Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
quote Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
read-more Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
rss Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
search Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
separator Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
shortcode Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
site-logo Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
site-tagline Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
site-title Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
social-link Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
social-links Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
spacer Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
table Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
tag-cloud Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
template-part Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
term-description Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
text-columns Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
verse Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
video Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
widget-group Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
archives.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
avatar.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
block.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
blocks-json.php Editor: Improve block loading PHP performance. 2022-09-21 13:57:21 +00:00
calendar.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
categories.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comment-author-name.php Editor: Update WordPress packages for 6.0 Beta 4 2022-05-02 10:39:04 +00:00
comment-content.php Editor: Update WordPress packages for 6.0 Beta 4 2022-05-02 10:39:04 +00:00
comment-date.php Editor: Update block editor packages for WordPress 6.0.1. 2022-07-04 12:06:43 +00:00
comment-edit-link.php Editor: Update WordPress packages for 6.0 Beta 3 2022-04-26 13:42:07 +00:00
comment-reply-link.php Editor: Update WordPress packages for 6.0 Beta 3 2022-04-26 13:42:07 +00:00
comment-template.php Editor: Update WordPress packages for 6.0 RC1. 2022-05-03 15:00:36 +00:00
comments-pagination-next.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
comments-pagination-numbers.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
comments-pagination-previous.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
comments-pagination.php Editor: Update WordPress packages for 6.0 RC1. 2022-05-03 15:00:36 +00:00
comments-title.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
comments.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
cover.php Cron API: Add error logging and hooks to `wp-cron.php`. 2022-09-20 15:44:38 +00:00
file.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
gallery.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
home-link.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
image.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
index.php Tools: Automate backporting core blocks from Gutenberg to Core 2022-07-08 12:34:14 +00:00
latest-comments.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
latest-posts.php Editor: Update WordPress packages for 6.0 RC 2 2022-05-10 14:49:35 +00:00
legacy-widget.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
loginout.php
navigation-link.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
navigation-submenu.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
navigation.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
page-list.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
pattern.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
post-author-biography.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
post-author.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-comments-form.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-content.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
post-date.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-excerpt.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
post-featured-image.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-navigation-link.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
post-template.php Editor: Backport bug fixes from Gutenberg into Core for WP 6.0.2 RC 2022-08-23 15:42:33 +00:00
post-terms.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
post-title.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-no-results.php Editor: Backport bug fixes from Gutenberg into Core for WP 6.0.2 RC 2022-08-23 15:42:33 +00:00
query-pagination-next.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
query-pagination-numbers.php
query-pagination-previous.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
query-pagination.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query-title.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
query.php
read-more.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
require-dynamic-blocks.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
require-static-blocks.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
rss.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
search.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
shortcode.php
site-logo.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
site-tagline.php
site-title.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
social-link.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
tag-cloud.php Editor: Update WordPress packages based based on Gutenberg v13.0 RC3 2022-04-12 15:12:47 +00:00
template-part.php Editor: Sync changes from the Gutenberg plugin 14.1 release 2022-09-20 15:43:29 +00:00
term-description.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00
widget-group.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:17:17 +00:00