From 18d3866ab2535f9dfec3ac4d3a697e65c11cf366 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Oct 2020 20:57:07 +0000 Subject: [PATCH] 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 --- wp-includes/blocks/embed/block.json | 37 +++++++++++++++++++++++++++++ wp-includes/blocks/index.php | 1 + wp-includes/version.php | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 wp-includes/blocks/embed/block.json diff --git a/wp-includes/blocks/embed/block.json b/wp-includes/blocks/embed/block.json new file mode 100644 index 0000000000..34d8838770 --- /dev/null +++ b/wp-includes/blocks/embed/block.json @@ -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 + } +} diff --git a/wp-includes/blocks/index.php b/wp-includes/blocks/index.php index d4482718c1..75ab6e7fef 100644 --- a/wp-includes/blocks/index.php +++ b/wp-includes/blocks/index.php @@ -33,6 +33,7 @@ function register_core_block_types_from_metadata() { 'code', 'column', 'columns', + 'embed', 'file', 'gallery', 'group', diff --git a/wp-includes/version.php b/wp-includes/version.php index f38a340045..435a2cec24 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.