wp/wp-includes/blocks/latest-posts/block.json
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
     1 {
     1 {
       
     2 	"apiVersion": 2,
     2 	"name": "core/latest-posts",
     3 	"name": "core/latest-posts",
       
     4 	"title": "Latest Posts",
     3 	"category": "widgets",
     5 	"category": "widgets",
       
     6 	"description": "Display a list of your most recent posts.",
       
     7 	"keywords": [ "recent posts" ],
       
     8 	"textdomain": "default",
     4 	"attributes": {
     9 	"attributes": {
     5 		"align": {
       
     6 			"type": "string",
       
     7 			"enum": [
       
     8 				"left",
       
     9 				"center",
       
    10 				"right",
       
    11 				"wide",
       
    12 				"full"
       
    13 			]
       
    14 		},
       
    15 		"className": {
       
    16 			"type": "string"
       
    17 		},
       
    18 		"categories": {
    10 		"categories": {
    19 			"type": "array",
    11 			"type": "array",
    20 			"items": {
    12 			"items": {
    21 				"type": "object"
    13 				"type": "object"
    22 			}
    14 			}
    68 			"type": "boolean",
    60 			"type": "boolean",
    69 			"default": false
    61 			"default": false
    70 		},
    62 		},
    71 		"featuredImageAlign": {
    63 		"featuredImageAlign": {
    72 			"type": "string",
    64 			"type": "string",
    73 			"enum": [
    65 			"enum": [ "left", "center", "right" ]
    74 				"left",
       
    75 				"center",
       
    76 				"right"
       
    77 			]
       
    78 		},
    66 		},
    79 		"featuredImageSizeSlug": {
    67 		"featuredImageSizeSlug": {
    80 			"type": "string",
    68 			"type": "string",
    81 			"default": "thumbnail"
    69 			"default": "thumbnail"
    82 		},
    70 		},
    85 			"default": null
    73 			"default": null
    86 		},
    74 		},
    87 		"featuredImageSizeHeight": {
    75 		"featuredImageSizeHeight": {
    88 			"type": "number",
    76 			"type": "number",
    89 			"default": null
    77 			"default": null
       
    78 		},
       
    79 		"addLinkToFeaturedImage": {
       
    80 			"type": "boolean",
       
    81 			"default": false
    90 		}
    82 		}
    91 	},
    83 	},
    92 	"supports": {
    84 	"supports": {
    93 		"align": true,
    85 		"align": true,
    94 		"html": false
    86 		"html": false
    95 	}
    87 	},
       
    88 	"editorStyle": "wp-block-latest-posts-editor",
       
    89 	"style": "wp-block-latest-posts"
    96 }
    90 }