mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 03:40:20 +01:00
1a7f28b3cd
This includes the following fixes: - Fix inspector opening when clicking outside the widget areas - Assume light theme when a transparent background is used - Make Post blocks non editable inside Query block - Rename QueryLoop to PostTemplate block Props ntsekouras. See #52991. Built from https://develop.svn.wordpress.org/trunk@51101 git-svn-id: http://core.svn.wordpress.org/trunk@50710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
57 lines
1009 B
JSON
57 lines
1009 B
JSON
{
|
|
"apiVersion": 2,
|
|
"name": "core/query",
|
|
"title": "Query Loop",
|
|
"category": "design",
|
|
"description": "Displays a list of posts as a result of a query.",
|
|
"textdomain": "default",
|
|
"attributes": {
|
|
"queryId": {
|
|
"type": "number"
|
|
},
|
|
"query": {
|
|
"type": "object",
|
|
"default": {
|
|
"perPage": null,
|
|
"pages": 0,
|
|
"offset": 0,
|
|
"postType": "post",
|
|
"categoryIds": [],
|
|
"tagIds": [],
|
|
"order": "desc",
|
|
"orderBy": "date",
|
|
"author": "",
|
|
"search": "",
|
|
"exclude": [],
|
|
"sticky": "",
|
|
"inherit": true
|
|
}
|
|
},
|
|
"tagName": {
|
|
"type": "string",
|
|
"default": "div"
|
|
},
|
|
"displayLayout": {
|
|
"type": "object",
|
|
"default": {
|
|
"type": "list"
|
|
}
|
|
}
|
|
},
|
|
"providesContext": {
|
|
"queryId": "queryId",
|
|
"query": "query",
|
|
"displayLayout": "displayLayout"
|
|
},
|
|
"supports": {
|
|
"align": [ "wide", "full" ],
|
|
"html": false,
|
|
"color": {
|
|
"gradients": true,
|
|
"link": true
|
|
},
|
|
"__experimentalLayout": true
|
|
},
|
|
"editorStyle": "wp-block-query-editor"
|
|
}
|