CoreFiles by mySites.guru
block.json89 lines, 1,691 bytes, from wordpress-5.8.zip
Raw History Compare with 5.7.22
md5
19be51195c708eb6f799d6cc3724c245
sha1
21bf46299bdfa04eb47641597d468711153430df
sha256
dcf0747fac4da3c1567f68b96608f79cd2301dcaa03bec25cf85ce3b893fb83f
{
	"apiVersion": 2,
	"name": "core/gallery",
	"title": "Gallery",
	"category": "media",
	"description": "Display multiple images in a rich gallery.",
	"keywords": [ "images", "photos" ],
	"textdomain": "default",
	"attributes": {
		"images": {
			"type": "array",
			"default": [],
			"source": "query",
			"selector": ".blocks-gallery-item",
			"query": {
				"url": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "src"
				},
				"fullUrl": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-full-url"
				},
				"link": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-link"
				},
				"alt": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "alt",
					"default": ""
				},
				"id": {
					"type": "string",
					"source": "attribute",
					"selector": "img",
					"attribute": "data-id"
				},
				"caption": {
					"type": "string",
					"source": "html",
					"selector": ".blocks-gallery-item__caption"
				}
			}
		},
		"ids": {
			"type": "array",
			"items": {
				"type": "number"
			},
			"default": []
		},
		"columns": {
			"type": "number",
			"minimum": 1,
			"maximum": 8
		},
		"caption": {
			"type": "string",
			"source": "html",
			"selector": ".blocks-gallery-caption"
		},
		"imageCrop": {
			"type": "boolean",
			"default": true
		},
		"linkTo": {
			"type": "string"
		},
		"sizeSlug": {
			"type": "string",
			"default": "large"
		}
	},
	"supports": {
		"anchor": true,
		"align": true
	},
	"editorStyle": "wp-block-gallery-editor",
	"style": "wp-block-gallery"
}

The same content is in 31 releases, WordPress 5.8-beta1 to 5.8.20. See them all, or every version of this file.