diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/blocks/media-text/block.json --- a/wp/wp-includes/blocks/media-text/block.json Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/blocks/media-text/block.json Fri Sep 05 18:40:08 2025 +0200 @@ -1,6 +1,6 @@ { "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, + "apiVersion": 3, "name": "core/media-text", "title": "Media & Text", "category": "media", @@ -10,27 +10,30 @@ "attributes": { "align": { "type": "string", - "default": "wide" + "default": "none" }, "mediaAlt": { "type": "string", "source": "attribute", "selector": "figure img", "attribute": "alt", - "default": "" + "default": "", + "__experimentalRole": "content" }, "mediaPosition": { "type": "string", "default": "left" }, "mediaId": { - "type": "number" + "type": "number", + "__experimentalRole": "content" }, "mediaUrl": { "type": "string", "source": "attribute", "selector": "figure video,figure img", - "attribute": "src" + "attribute": "src", + "__experimentalRole": "content" }, "mediaLink": { "type": "string" @@ -48,7 +51,8 @@ "type": "string", "source": "attribute", "selector": "figure a", - "attribute": "href" + "attribute": "href", + "__experimentalRole": "content" }, "rel": { "type": "string", @@ -63,7 +67,8 @@ "attribute": "class" }, "mediaType": { - "type": "string" + "type": "string", + "__experimentalRole": "content" }, "mediaWidth": { "type": "number", @@ -84,19 +89,48 @@ }, "focalPoint": { "type": "object" + }, + "allowedBlocks": { + "type": "array" + }, + "useFeaturedImage": { + "type": "boolean", + "default": false } }, + "usesContext": [ "postId", "postType" ], "supports": { "anchor": true, "align": [ "wide", "full" ], "html": false, "color": { "gradients": true, + "heading": true, "link": true, "__experimentalDefaultControls": { "background": true, "text": true } + }, + "spacing": { + "margin": true, + "padding": true + }, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalFontWeight": true, + "__experimentalFontStyle": true, + "__experimentalTextTransform": true, + "__experimentalTextDecoration": true, + "__experimentalLetterSpacing": true, + "__experimentalDefaultControls": { + "fontSize": true + } + }, + "interactivity": { + "clientNavigation": true } }, "editorStyle": "wp-block-media-text-editor",