Make WordPress Core


Ignore:
Timestamp:
05/07/2021 11:46:32 AM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages from Gutenberg 10.5

Applies changes between the Gutenberg plugin v10.4 and v10.5. It contains the latest version of WordPress packages and PHP changes applied to non-experimental features.

Props youknowriad.
See #52991.

Location:
trunk/src/wp-includes/blocks
Files:
3 added
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/button/block.json

    r50761 r50824  
    33    "name": "core/button",
    44    "category": "design",
    5     "parent": [
    6         "core/buttons"
    7     ],
     5    "parent": [ "core/buttons" ],
    86    "attributes": {
    97        "url": {
     
    3937            "type": "string"
    4038        },
    41         "borderRadius": {
    42             "type": "number"
    43         },
    44         "style": {
    45             "type": "object"
    46         },
    4739        "backgroundColor": {
    4840            "type": "string"
     
    6658            "gradients": true
    6759        },
     60        "fontSize": true,
    6861        "reusable": false,
     62        "__experimentalBorder": {
     63            "radius": true,
     64            "__experimentalSkipSerialization": true
     65        },
     66        "__experimentalFontFamily": true,
    6967        "__experimentalSelector": ".wp-block-button__link"
    7068    },
  • trunk/src/wp-includes/blocks/column/block.json

    r49226 r50824  
    33    "name": "core/column",
    44    "category": "text",
    5     "parent": [
    6         "core/columns"
    7     ],
     5    "parent": [ "core/columns" ],
    86    "attributes": {
    97        "verticalAlignment": {
  • trunk/src/wp-includes/blocks/columns/block.json

    r50048 r50824  
    1010    "supports": {
    1111        "anchor": true,
    12         "align": [
    13             "wide",
    14             "full"
    15         ],
     12        "align": [ "wide", "full" ],
    1613        "html": false,
    1714        "color": {
  • trunk/src/wp-includes/blocks/file/block.json

    r50048 r50824  
    3535            "source": "html",
    3636            "selector": "a[download]"
     37        },
     38        "displayPreview": {
     39            "type": "boolean"
     40        },
     41        "previewHeight": {
     42            "type": "number",
     43            "default": 600
    3744        }
    3845    },
  • trunk/src/wp-includes/blocks/heading/block.json

    r50048 r50824  
    1111            "source": "html",
    1212            "selector": "h1,h2,h3,h4,h5,h6",
    13             "default": ""
     13            "default": "",
     14            "__experimentalRole": "content"
    1415        },
    1516        "level": {
  • trunk/src/wp-includes/blocks/index.php

    r50761 r50824  
    1111require ABSPATH . WPINC . '/blocks/calendar.php';
    1212require ABSPATH . WPINC . '/blocks/categories.php';
     13require ABSPATH . WPINC . '/blocks/file.php';
    1314require ABSPATH . WPINC . '/blocks/latest-comments.php';
    1415require ABSPATH . WPINC . '/blocks/latest-posts.php';
     
    3435        'columns',
    3536        'embed',
    36         'file',
    3737        'freeform',
    3838        'gallery',
  • trunk/src/wp-includes/blocks/latest-posts/block.json

    r50048 r50824  
    5959        "featuredImageAlign": {
    6060            "type": "string",
    61             "enum": [
    62                 "left",
    63                 "center",
    64                 "right"
    65             ]
     61            "enum": [ "left", "center", "right" ]
    6662        },
    6763        "featuredImageSizeSlug": {
  • trunk/src/wp-includes/blocks/list/block.json

    r50048 r50824  
    66        "ordered": {
    77            "type": "boolean",
    8             "default": false
     8            "default": false,
     9            "__experimentalRole": "content"
    910        },
    1011        "values": {
     
    1415            "multiline": "li",
    1516            "__unstableMultilineWrapperTags": [ "ol", "ul" ],
    16             "default": ""
     17            "default": "",
     18            "__experimentalRole": "content"
    1719        },
    1820        "type": {
     
    2426        "reversed": {
    2527            "type": "boolean"
     28        },
     29        "placeholder": {
     30            "type": "string"
    2631        }
    2732    },
  • trunk/src/wp-includes/blocks/paragraph/block.json

    r50048 r50824  
    1111            "source": "html",
    1212            "selector": "p",
    13             "default": ""
     13            "default": "",
     14            "__experimentalRole": "content"
    1415        },
    1516        "dropCap": {
     
    2223        "direction": {
    2324            "type": "string",
    24             "enum": [
    25                 "ltr",
    26                 "rtl"
    27             ]
     25            "enum": [ "ltr", "rtl" ]
    2826        }
    2927    },
  • trunk/src/wp-includes/blocks/preformatted/block.json

    r50761 r50824  
    99            "selector": "pre",
    1010            "default": "",
    11             "__unstablePreserveWhiteSpace": true
     11            "__unstablePreserveWhiteSpace": true,
     12            "__experimentalRole": "content"
    1213        }
    1314    },
  • trunk/src/wp-includes/blocks/pullquote/block.json

    r50048 r50824  
    88            "source": "html",
    99            "selector": "blockquote",
    10             "multiline": "p"
     10            "multiline": "p",
     11            "__experimentalRole": "content"
    1112        },
    1213        "citation": {
     
    1415            "source": "html",
    1516            "selector": "cite",
    16             "default": ""
     17            "default": "",
     18            "__experimentalRole": "content"
    1719        },
    1820        "mainColor": {
     
    3133    "supports": {
    3234        "anchor": true,
    33         "align": [
    34             "left",
    35             "right",
    36             "wide",
    37             "full"
    38         ]
     35        "align": [ "left", "right", "wide", "full" ]
    3936    },
    4037    "editorStyle": "wp-block-pullquote-editor",
  • trunk/src/wp-includes/blocks/quote/block.json

    r50048 r50824  
    99            "selector": "blockquote",
    1010            "multiline": "p",
    11             "default": ""
     11            "default": "",
     12            "__experimentalRole": "content"
    1213        },
    1314        "citation": {
     
    1516            "source": "html",
    1617            "selector": "cite",
    17             "default": ""
     18            "default": "",
     19            "__experimentalRole": "content"
    1820        },
    1921        "align": {
  • trunk/src/wp-includes/blocks/search/block.json

    r50761 r50824  
    55    "attributes": {
    66        "label": {
    7             "type": "string"
     7            "type": "string",
     8            "__experimentalRole": "content"
    89        },
    910        "showLabel": {
     
    1314        "placeholder": {
    1415            "type": "string",
    15             "default": ""
     16            "default": "",
     17            "__experimentalRole": "content"
    1618        },
    1719        "width": {
     
    2224        },
    2325        "buttonText": {
    24             "type": "string"
     26            "type": "string",
     27            "__experimentalRole": "content"
    2528        },
    2629        "buttonPosition": {
  • trunk/src/wp-includes/blocks/separator/block.json

    r50048 r50824  
    1313    "supports": {
    1414        "anchor": true,
    15         "align": ["center","wide","full"]
     15        "align": [ "center", "wide", "full" ]
    1616    },
    1717    "editorStyle": "wp-block-separator-editor",
  • trunk/src/wp-includes/blocks/social-link.php

    r50761 r50824  
    99 * Renders the `core/social-link` block on server.
    1010 *
    11  * @param Array   $attributes The block attributes.
    12  * @param String  $content InnerBlocks content of the Block.
    13  * @param WPBlock $block Block object.
     11 * @param Array    $attributes The block attributes.
     12 * @param String   $content    InnerBlocks content of the Block.
     13 * @param WP_Block $block      Block object.
    1414 *
    1515 * @return string Rendered HTML of the referenced block.
  • trunk/src/wp-includes/blocks/social-link/block.json

    r50458 r50824  
    33    "name": "core/social-link",
    44    "category": "widgets",
    5     "parent": [
    6         "core/social-links"
    7     ],
     5    "parent": [ "core/social-links" ],
    86    "attributes": {
    97        "url": {
  • trunk/src/wp-includes/blocks/social-links/block.json

    r50458 r50824  
    3636    },
    3737    "supports": {
    38         "align": [
    39             "left",
    40             "center",
    41             "right"
    42         ],
     38        "align": [ "left", "center", "right" ],
    4339        "anchor": true
    4440    },
  • trunk/src/wp-includes/blocks/spacer/block.json

    r50761 r50824  
    1212        }
    1313    },
    14     "usesContext": [
    15         "orientation"
    16     ],
     14    "usesContext": [ "orientation" ],
    1715    "supports": {
    1816        "anchor": true
  • trunk/src/wp-includes/blocks/text-columns/block.json

    r50048 r50824  
    1515                }
    1616            },
    17             "default": [
    18                 {},
    19                 {}
    20             ]
     17            "default": [ {}, {} ]
    2118        },
    2219        "columns": {
  • trunk/src/wp-includes/blocks/verse/block.json

    r50761 r50824  
    99            "selector": "pre",
    1010            "default": "",
    11             "__unstablePreserveWhiteSpace": true
     11            "__unstablePreserveWhiteSpace": true,
     12            "__experimentalRole": "content"
    1213        },
    1314        "textAlign": {
     
    1718    "supports": {
    1819        "anchor": true,
     20        "color": {
     21            "gradients": true,
     22            "link": true
     23        },
    1924        "__experimentalFontFamily": true,
    2025        "fontSize": true,
Note: See TracChangeset for help on using the changeset viewer.