--- a/wp/wp-includes/blocks/image/block.json Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/blocks/image/block.json Wed Sep 21 18:19:35 2022 +0200
@@ -1,6 +1,11 @@
{
+ "apiVersion": 2,
"name": "core/image",
+ "title": "Image",
"category": "media",
+ "description": "Insert an image to make a visual statement.",
+ "keywords": [ "img", "photo", "picture" ],
+ "textdomain": "default",
"attributes": {
"align": {
"type": "string"
@@ -60,8 +65,7 @@
"type": "string"
},
"linkDestination": {
- "type": "string",
- "default": "none"
+ "type": "string"
},
"linkTarget": {
"type": "string",
@@ -72,6 +76,23 @@
},
"supports": {
"anchor": true,
- "lightBlockWrapper": true
- }
+ "color": {
+ "__experimentalDuotone": "img",
+ "text": false,
+ "background": false
+ },
+ "__experimentalBorder": {
+ "radius": true
+ }
+ },
+ "styles": [
+ {
+ "name": "default",
+ "label": "Default",
+ "isDefault": true
+ },
+ { "name": "rounded", "label": "Rounded" }
+ ],
+ "editorStyle": "wp-block-image-editor",
+ "style": "wp-block-image"
}