Changeset 57377 for trunk/src/wp-includes/blocks/blocks-json.php
- Timestamp:
- 01/29/2024 09:04:18 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/blocks-json.php
r56710 r57377 76 76 ), 77 77 'caption' => array( 78 'type' => ' string',79 'source' => ' html',78 'type' => 'rich-text', 79 'source' => 'rich-text', 80 80 'selector' => 'figcaption', 81 81 '__experimentalRole' => 'content' … … 155 155 'spacing' => array( 156 156 'margin' => true, 157 'padding' => true 157 'padding' => true, 158 '__experimentalDefaultControls' => array( 159 'margin' => false, 160 'padding' => false 161 ) 158 162 ), 159 163 '__experimentalBorder' => array( … … 193 197 'ref' => array( 194 198 'type' => 'number' 199 ), 200 'overrides' => array( 201 'type' => 'object' 195 202 ) 196 203 ), … … 198 205 'customClassName' => false, 199 206 'html' => false, 200 'inserter' => false 207 'inserter' => false, 208 'renaming' => false 201 209 ) 202 210 ), … … 215 223 ), 216 224 'textdomain' => 'default', 225 'usesContext' => array( 226 'pattern/overrides' 227 ), 217 228 'attributes' => array( 218 229 'tagName' => array( … … 246 257 ), 247 258 'text' => array( 248 'type' => ' string',249 'source' => ' html',259 'type' => 'rich-text', 260 'source' => 'rich-text', 250 261 'selector' => 'a,button', 251 262 '__experimentalRole' => 'content' … … 517 528 'attributes' => array( 518 529 'content' => array( 519 'type' => ' string',520 'source' => ' html',530 'type' => 'rich-text', 531 'source' => 'rich-text', 521 532 'selector' => 'code', 522 533 '__unstablePreserveWhiteSpace' => true … … 1315 1326 'core/comments' 1316 1327 ), 1317 'description' => 'Displays a title with the number of comments ',1328 'description' => 'Displays a title with the number of comments.', 1318 1329 'textdomain' => 'default', 1319 1330 'usesContext' => array( … … 1398 1409 'alt' => array( 1399 1410 'type' => 'string', 1400 'source' => 'attribute',1401 'selector' => 'img',1402 'attribute' => 'alt',1403 1411 'default' => '' 1404 1412 ), … … 1420 1428 'customOverlayColor' => array( 1421 1429 'type' => 'string' 1430 ), 1431 'isUserOverlayColor' => array( 1432 'type' => 'boolean' 1422 1433 ), 1423 1434 'backgroundType' => array( … … 1509 1520 'enableContrastChecker' => false 1510 1521 ), 1522 'dimensions' => array( 1523 'aspectRatio' => true 1524 ), 1511 1525 'typography' => array( 1512 1526 'fontSize' => true, … … 1549 1563 ), 1550 1564 'summary' => array( 1551 'type' => ' string',1552 'source' => ' html',1565 'type' => 'rich-text', 1566 'source' => 'rich-text', 1553 1567 'selector' => 'summary' 1554 1568 ) … … 1616 1630 ), 1617 1631 'caption' => array( 1618 'type' => ' string',1619 'source' => ' html',1632 'type' => 'rich-text', 1633 'source' => 'rich-text', 1620 1634 'selector' => 'figcaption', 1621 1635 '__experimentalRole' => 'content' … … 1680 1694 ), 1681 1695 'fileName' => array( 1682 'type' => ' string',1683 'source' => ' html',1696 'type' => 'rich-text', 1697 'source' => 'rich-text', 1684 1698 'selector' => 'a:not([download])' 1685 1699 ), … … 1701 1715 ), 1702 1716 'downloadButtonText' => array( 1703 'type' => ' string',1704 'source' => ' html',1717 'type' => 'rich-text', 1718 'source' => 'rich-text', 1705 1719 'selector' => 'a[download]' 1706 1720 ), … … 1731 1745 'interactivity' => true 1732 1746 ), 1733 'viewScript' => 'file:./view.min.js',1734 1747 'editorStyle' => 'wp-block-file-editor', 1735 1748 'style' => 'wp-block-file' … … 1741 1754 'title' => 'Footnotes', 1742 1755 'category' => 'text', 1743 'description' => ' ',1756 'description' => 'Display footnotes added to the page.', 1744 1757 'keywords' => array( 1745 1758 'references' … … 1775 1788 'multiple' => false, 1776 1789 'reusable' => false, 1790 'inserter' => false, 1777 1791 'spacing' => array( 1778 1792 'margin' => true, … … 1874 1888 ), 1875 1889 'caption' => array( 1876 'type' => ' string',1877 'source' => ' html',1890 'type' => 'rich-text', 1891 'source' => 'rich-text', 1878 1892 'selector' => '.blocks-gallery-item__caption' 1879 1893 ) … … 1904 1918 ), 1905 1919 'caption' => array( 1906 'type' => ' string',1907 'source' => ' html',1920 'type' => 'rich-text', 1921 'source' => 'rich-text', 1908 1922 'selector' => '.blocks-gallery-caption' 1909 1923 ), … … 1911 1925 'type' => 'boolean', 1912 1926 'default' => true 1927 ), 1928 'randomOrder' => array( 1929 'type' => 'boolean', 1930 'default' => false 1913 1931 ), 1914 1932 'fixedHeight' => array( … … 2019 2037 '__experimentalOnMerge' => true, 2020 2038 '__experimentalSettings' => true, 2021 '__experimentalMetadata' => true,2022 2039 'align' => array( 2023 2040 'wide', … … 2028 2045 'html' => false, 2029 2046 'background' => array( 2030 'backgroundImage' => true 2047 'backgroundImage' => true, 2048 'backgroundSize' => true, 2049 '__experimentalDefaultControls' => array( 2050 'backgroundImage' => true 2051 ) 2031 2052 ), 2032 2053 'color' => array( … … 2053 2074 ), 2054 2075 'dimensions' => array( 2076 'aspectRatio' => true, 2055 2077 'minHeight' => true 2056 2078 ), … … 2102 2124 ), 2103 2125 'textdomain' => 'default', 2126 'usesContext' => array( 2127 'pattern/overrides' 2128 ), 2104 2129 'attributes' => array( 2105 2130 'textAlign' => array( … … 2107 2132 ), 2108 2133 'content' => array( 2109 'type' => ' string',2110 'source' => ' html',2134 'type' => 'rich-text', 2135 'source' => 'rich-text', 2111 2136 'selector' => 'h1,h2,h3,h4,h5,h6', 2112 'default' => '',2113 2137 '__experimentalRole' => 'content' 2114 2138 ), … … 2155 2179 '__experimentalWritingMode' => true, 2156 2180 '__experimentalDefaultControls' => array( 2157 'fontSize' => true, 2158 'fontAppearance' => true, 2159 'textTransform' => true 2181 'fontSize' => true 2160 2182 ) 2161 2183 ), … … 2244 2266 'allowResize', 2245 2267 'imageCrop', 2246 'fixedHeight' 2268 'fixedHeight', 2269 'pattern/overrides' 2247 2270 ), 2248 2271 'description' => 'Insert an image to make a visual statement.', … … 2254 2277 'textdomain' => 'default', 2255 2278 'attributes' => array( 2256 'align' => array(2257 'type' => 'string'2258 ),2259 2279 'url' => array( 2260 2280 'type' => 'string', … … 2273 2293 ), 2274 2294 'caption' => array( 2275 'type' => ' string',2276 'source' => ' html',2295 'type' => 'rich-text', 2296 'source' => 'rich-text', 2277 2297 'selector' => 'figcaption', 2278 2298 '__experimentalRole' => 'content' … … 2340 2360 ), 2341 2361 'supports' => array( 2362 'interactivity' => true, 2363 'align' => array( 2364 'left', 2365 'center', 2366 'right', 2367 'wide', 2368 'full' 2369 ), 2342 2370 'anchor' => true, 2343 2371 'color' => array( … … 2378 2406 ), 2379 2407 'editorStyle' => 'wp-block-image-editor', 2380 'style' => 'wp-block-image', 2381 'viewScript' => 'file:./view.min.js' 2408 'style' => 'wp-block-image' 2382 2409 ), 2383 2410 'latest-comments' => array( … … 2560 2587 ), 2561 2588 'legacy-widget' => array( 2589 '$schema' => 'https://schemas.wp.org/trunk/block.json', 2562 2590 'apiVersion' => 3, 2563 2591 'name' => 'core/legacy-widget', … … 2687 2715 ), 2688 2716 'content' => array( 2689 'type' => ' string',2690 'source' => ' html',2717 'type' => 'rich-text', 2718 'source' => 'rich-text', 2691 2719 'selector' => 'li', 2692 'default' => '',2693 2720 '__experimentalRole' => 'content' 2694 2721 ) … … 2697 2724 'className' => false, 2698 2725 '__experimentalSelector' => 'li', 2726 'spacing' => array( 2727 'margin' => true, 2728 'padding' => true, 2729 '__experimentalDefaultControls' => array( 2730 'margin' => false, 2731 'padding' => false 2732 ) 2733 ), 2699 2734 'typography' => array( 2700 2735 'fontSize' => true, … … 2737 2772 'supports' => array( 2738 2773 'className' => true, 2774 'spacing' => array( 2775 'margin' => true, 2776 'padding' => true, 2777 '__experimentalDefaultControls' => array( 2778 'margin' => false, 2779 'padding' => false 2780 ) 2781 ), 2739 2782 'typography' => array( 2740 2783 'fontSize' => true, … … 2905 2948 'originalContent' => array( 2906 2949 'type' => 'string', 2907 'source' => ' html'2950 'source' => 'raw' 2908 2951 ) 2909 2952 ), … … 3102 3145 ) 3103 3146 ), 3104 'interactivity' => true 3105 ),3106 'viewScript' => 'file:./view.min.js',3147 'interactivity' => true, 3148 'renaming' => false 3149 ), 3107 3150 'editorStyle' => 'wp-block-navigation-editor', 3108 3151 'style' => 'wp-block-navigation' … … 3183 3226 'fontSize' => true 3184 3227 ) 3185 ) 3228 ), 3229 'renaming' => false 3186 3230 ), 3187 3231 'editorStyle' => 'wp-block-navigation-link-editor', … … 3404 3448 'textdomain' => 'default', 3405 3449 'usesContext' => array( 3406 'postId' 3450 'postId', 3451 'pattern/overrides' 3407 3452 ), 3408 3453 'attributes' => array( … … 3411 3456 ), 3412 3457 'content' => array( 3413 'type' => ' string',3414 'source' => ' html',3458 'type' => 'rich-text', 3459 'source' => 'rich-text', 3415 3460 'selector' => 'p', 3416 'default' => '',3417 3461 '__experimentalRole' => 'content' 3418 3462 ), … … 3443 3487 ) 3444 3488 ), 3445 '__experimentalConnections' => true,3446 3489 'spacing' => array( 3447 3490 'margin' => true, … … 3481 3524 'supports' => array( 3482 3525 'html' => false, 3483 'inserter' => false 3526 'inserter' => false, 3527 'renaming' => false 3484 3528 ), 3485 3529 'textdomain' => 'default', … … 3935 3979 'customGradient' => array( 3936 3980 'type' => 'string' 3981 ), 3982 'useFirstImageFromPost' => array( 3983 'type' => 'boolean', 3984 'default' => false 3937 3985 ) 3938 3986 ), … … 4006 4054 'type' => 'string', 4007 4055 'default' => 'none' 4008 ) 4056 ), 4057 'inSameTerm' => array( 4058 'type' => 'boolean' 4059 ), 4060 'taxonomy' => array( 4061 'type' => 'string', 4062 'default' => '' 4063 ) 4064 ), 4065 'usesContext' => array( 4066 'postType' 4009 4067 ), 4010 4068 'supports' => array( … … 4045 4103 'queryId', 4046 4104 'query', 4047 'queryContext',4048 4105 'displayLayout', 4049 4106 'templateSlug', … … 4219 4276 '__experimentalLetterSpacing' => true, 4220 4277 '__experimentalDefaultControls' => array( 4221 'fontSize' => true, 4222 'fontAppearance' => true, 4223 'textTransform' => true 4278 'fontSize' => true 4224 4279 ) 4225 4280 ) … … 4237 4292 'attributes' => array( 4238 4293 'content' => array( 4239 'type' => ' string',4240 'source' => ' html',4294 'type' => 'rich-text', 4295 'source' => 'rich-text', 4241 4296 'selector' => 'pre', 4242 'default' => '',4243 4297 '__unstablePreserveWhiteSpace' => true, 4244 4298 '__experimentalRole' => 'content' … … 4284 4338 'attributes' => array( 4285 4339 'value' => array( 4286 'type' => ' string',4287 'source' => ' html',4340 'type' => 'rich-text', 4341 'source' => 'rich-text', 4288 4342 'selector' => 'p', 4289 4343 '__experimentalRole' => 'content' 4290 4344 ), 4291 4345 'citation' => array( 4292 'type' => ' string',4293 'source' => ' html',4346 'type' => 'rich-text', 4347 'source' => 'rich-text', 4294 4348 'selector' => 'cite', 4295 'default' => '',4296 4349 '__experimentalRole' => 'content' 4297 4350 ), … … 4317 4370 ) 4318 4371 ), 4372 'spacing' => array( 4373 'margin' => true, 4374 'padding' => true 4375 ), 4319 4376 'typography' => array( 4320 4377 'fontSize' => true, … … 4327 4384 '__experimentalLetterSpacing' => true, 4328 4385 '__experimentalDefaultControls' => array( 4329 'fontSize' => true, 4330 'fontAppearance' => true 4386 'fontSize' => true 4331 4387 ) 4332 4388 ), … … 4414 4470 ), 4415 4471 'editorStyle' => 'wp-block-query-editor', 4416 'style' => 'wp-block-query', 4417 'viewScript' => 'file:./view.min.js' 4472 'style' => 'wp-block-query' 4418 4473 ), 4419 4474 'query-no-results' => array( … … 4578 4633 'core/query-pagination' 4579 4634 ), 4580 'description' => 'Displays a list of page numbers for pagination ',4635 'description' => 'Displays a list of page numbers for pagination.', 4581 4636 'textdomain' => 'default', 4582 4637 'attributes' => array( … … 4720 4775 '__experimentalTextDecoration' => true, 4721 4776 '__experimentalDefaultControls' => array( 4722 'fontSize' => true, 4723 'fontAppearance' => true, 4724 'textTransform' => true 4777 'fontSize' => true 4725 4778 ) 4726 4779 ) … … 4750 4803 ), 4751 4804 'citation' => array( 4752 'type' => ' string',4753 'source' => ' html',4805 'type' => 'rich-text', 4806 'source' => 'rich-text', 4754 4807 'selector' => 'cite', 4755 'default' => '',4756 4808 '__experimentalRole' => 'content' 4757 4809 ), … … 4775 4827 '__experimentalLetterSpacing' => true, 4776 4828 '__experimentalDefaultControls' => array( 4777 'fontSize' => true, 4778 'fontAppearance' => true 4829 'fontSize' => true 4779 4830 ) 4780 4831 ), … … 4787 4838 'text' => true 4788 4839 ) 4840 ), 4841 'layout' => array( 4842 'allowEditing' => false 4843 ), 4844 'spacing' => array( 4845 'blockGap' => true 4789 4846 ) 4790 4847 ), … … 4966 5023 ) 4967 5024 ), 4968 'buttonBehavior' => array(4969 'type' => 'string',4970 'default' => 'expand-searchfield'4971 ),4972 5025 'isSearchFieldHidden' => array( 4973 5026 'type' => 'boolean', … … 5018 5071 'html' => false 5019 5072 ), 5020 'viewScript' => 'file:./view.min.js',5021 5073 'editorStyle' => 'wp-block-search-editor', 5022 5074 'style' => 'wp-block-search' … … 5284 5336 '__experimentalLetterSpacing' => true, 5285 5337 '__experimentalDefaultControls' => array( 5286 'fontSize' => true, 5287 'lineHeight' => true, 5288 'fontAppearance' => true, 5289 'letterSpacing' => true, 5290 'textTransform' => true 5338 'fontSize' => true 5291 5339 ) 5292 5340 ) … … 5497 5545 ), 5498 5546 'caption' => array( 5499 'type' => 'string', 5500 'source' => 'html', 5501 'selector' => 'figcaption', 5502 'default' => '' 5547 'type' => 'rich-text', 5548 'source' => 'rich-text', 5549 'selector' => 'figcaption' 5503 5550 ), 5504 5551 'head' => array( … … 5519 5566 'query' => array( 5520 5567 'content' => array( 5521 'type' => ' string',5522 'source' => ' html'5568 'type' => 'rich-text', 5569 'source' => 'rich-text' 5523 5570 ), 5524 5571 'tag' => array( … … 5568 5615 'query' => array( 5569 5616 'content' => array( 5570 'type' => ' string',5571 'source' => ' html'5617 'type' => 'rich-text', 5618 'source' => 'rich-text' 5572 5619 ), 5573 5620 'tag' => array( … … 5617 5664 'query' => array( 5618 5665 'content' => array( 5619 'type' => ' string',5620 'source' => ' html'5666 'type' => 'rich-text', 5667 'source' => 'rich-text' 5621 5668 ), 5622 5669 'tag' => array( … … 5795 5842 'align' => true, 5796 5843 'html' => false, 5797 'reusable' => false 5844 'reusable' => false, 5845 'renaming' => false 5798 5846 ), 5799 5847 'editorStyle' => 'wp-block-template-part-editor' … … 5901 5949 'attributes' => array( 5902 5950 'content' => array( 5903 'type' => ' string',5904 'source' => ' html',5951 'type' => 'rich-text', 5952 'source' => 'rich-text', 5905 5953 'selector' => 'pre', 5906 'default' => '',5907 5954 '__unstablePreserveWhiteSpace' => true, 5908 5955 '__experimentalRole' => 'content' … … 5932 5979 '__experimentalTextDecoration' => true, 5933 5980 '__experimentalDefaultControls' => array( 5934 'fontSize' => true, 5935 'fontAppearance' => true 5981 'fontSize' => true 5936 5982 ) 5937 5983 ), … … 5973 6019 ), 5974 6020 'caption' => array( 5975 'type' => ' string',5976 'source' => ' html',6021 'type' => 'rich-text', 6022 'source' => 'rich-text', 5977 6023 'selector' => 'figcaption', 5978 6024 '__experimentalRole' => 'content' … … 6054 6100 ), 6055 6101 'widget-group' => array( 6102 '$schema' => 'https://schemas.wp.org/trunk/block.json', 6056 6103 'apiVersion' => 3, 6057 6104 'name' => 'core/widget-group',
Note: See TracChangeset
for help on using the changeset viewer.