WordPress/wp-includes/blocks
gziolo 2ca2feff15 Editor: Extend register_block_type to accept the path file or folder with block.json
Rather than using two distinct methods to register block types in WordPress core, let's make `register_block_type` the canonical method to deal with all use cases. In practice, the patch proposed extends its usage to work as a proxy to `register_block_type_from_metadata`. It should remove some confusion that we observed and let us be more explicit what's the latest recommendation.

Props matveb, mcsf.
Fixes #53233.


Built from https://develop.svn.wordpress.org/trunk@50927


git-svn-id: http://core.svn.wordpress.org/trunk@50536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-19 13:52:00 +00:00
..
archives Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
audio Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
block Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
button Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
buttons Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
calendar Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
categories Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
code Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
column Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
columns Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
cover Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
embed Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
file Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
freeform Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
gallery Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
group Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
heading Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
html Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
image Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
latest-comments Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
latest-posts Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
list Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
media-text Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
missing Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
more Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
nextpage Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
paragraph Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
preformatted Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
pullquote Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
quote Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
rss Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
search Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
separator Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
shortcode Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
social-link Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
social-links Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
spacer Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
table Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
tag-cloud Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
text-columns Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
verse Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
video Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
archives.php Block Editor: Update the WordPress packages for 5.6 beta 2 2020-10-27 09:34:46 +00:00
block.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
calendar.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
categories.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
file.php Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
index.php Editor: Extend register_block_type to accept the path file or folder with block.json 2021-05-19 13:52:00 +00:00
latest-comments.php Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
latest-posts.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
rss.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
search.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
shortcode.php Editor: update JavaScript packages 2020-06-26 13:33:47 +00:00
social-link.php Editor: Update WordPress packages from Gutenberg 10.5 2021-05-07 11:48:27 +00:00
tag-cloud.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00