Editor: Expose the embed core block on the server.

Props ntsekouras, gziolo.
Fixes #51531.
Built from https://develop.svn.wordpress.org/trunk@49210


git-svn-id: http://core.svn.wordpress.org/trunk@48972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-10-19 20:57:07 +00:00
parent e209e00734
commit 18d3866ab2
3 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{
"name": "core/embed",
"category": "embed",
"attributes": {
"url": {
"type": "string"
},
"caption": {
"type": "string",
"source": "html",
"selector": "figcaption"
},
"type": {
"type": "string"
},
"providerNameSlug": {
"type": "string"
},
"allowResponsive": {
"type": "boolean",
"default": true
},
"responsive": {
"type": "boolean",
"default": false
},
"previewable": {
"type": "boolean",
"default": true
}
},
"supports": {
"align": true,
"reusable": false,
"html": false
}
}

View File

@ -33,6 +33,7 @@ function register_core_block_types_from_metadata() {
'code', 'code',
'column', 'column',
'columns', 'columns',
'embed',
'file', 'file',
'gallery', 'gallery',
'group', 'group',

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-alpha-49209'; $wp_version = '5.6-alpha-49210';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.