Make WordPress Core


Ignore:
Timestamp:
05/19/2021 03:07:55 PM (5 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages published for Gutenberg 10.6

It contains several changes in addition to regular update to WordPress packages:

  • All newly exposed blocks are now registered on the server.
  • Dutone block support was added.
  • Border block support was updated.
  • New shared function construct_wp_query_args was added for the family of Query blocks - it might need some further work.

Props youknowriad.
See #52991.

Location:
trunk/src/wp-includes/blocks
Files:
51 added
43 edited

Legend:

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

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/archives",
     4        "title": "Archives",
    45        "category": "widgets",
     6        "description": "Display a monthly archive of your posts.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "displayAsDropdown": {
  • trunk/src/wp-includes/blocks/audio/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/audio",
     4        "title": "Audio",
    45        "category": "media",
     6        "description": "Embed a simple audio player.",
     7        "keywords": [ "music", "sound", "podcast", "recording" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "src": {
  • trunk/src/wp-includes/blocks/block/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/block",
     4        "title": "Reusable block",
    45        "category": "reusable",
     6        "description": "Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "ref": {
  • trunk/src/wp-includes/blocks/button/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/button",
     4        "title": "Button",
    45        "category": "design",
    56        "parent": [ "core/buttons" ],
     7        "description": "Prompt visitors to take action with a button-style link.",
     8        "keywords": [ "link" ],
     9        "textdomain": "default",
    610        "attributes": {
    711                "url": {
    … …  
    6771                "__experimentalSelector": ".wp-block-button__link"
    6872        },
     73        "styles": [
     74                { "name": "fill", "label": "Fill", "isDefault": true },
     75                { "name": "outline", "label": "Outline" }
     76        ],
    6977        "editorStyle": "wp-block-button-editor",
    7078        "style": "wp-block-button"
  • trunk/src/wp-includes/blocks/buttons/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/buttons",
     4        "title": "Buttons",
    45        "category": "design",
     6        "description": "Prompt visitors to take action with a group of button-style links.",
     7        "keywords": [ "link" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "contentJustification": {
  • trunk/src/wp-includes/blocks/calendar/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/calendar",
     4        "title": "Calendar",
    45        "category": "widgets",
     6        "description": "A calendar of your site’s posts.",
     7        "keywords": [ "posts", "archive" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "month": {
  • trunk/src/wp-includes/blocks/categories/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/categories",
     4        "title": "Categories",
    45        "category": "widgets",
     6        "description": "Display a list of all categories.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "displayAsDropdown": {
  • trunk/src/wp-includes/blocks/code/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/code",
     4        "title": "Code",
    45        "category": "text",
     6        "description": "Display code snippets that respect your spacing and tabs.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "content": {
  • trunk/src/wp-includes/blocks/column/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/column",
     4        "title": "Column",
    45        "category": "text",
    56        "parent": [ "core/columns" ],
     7        "description": "A single column within a columns block.",
     8        "textdomain": "default",
    69        "attributes": {
    710                "verticalAlignment": {
    … …  
    1215                },
    1316                "templateLock": {
    14                         "type": "string"
     17                        "enum": [ "all", "insert", false ]
    1518                }
    1619        },
  • trunk/src/wp-includes/blocks/columns/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/columns",
     4        "title": "Columns",
    45        "category": "design",
     6        "description": "Add a block that displays content in multiple columns, then add whatever content blocks you’d like.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "verticalAlignment": {
  • trunk/src/wp-includes/blocks/cover/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/cover",
     4        "title": "Cover",
    45        "category": "media",
     6        "description": "Add an image or video with a text overlay — great for headers.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "url": {
    … …  
    5760                "spacing": {
    5861                        "padding": true
     62                },
     63                "color": {
     64                        "__experimentalDuotone": "> .wp-block-cover__image-background, > .wp-block-cover__video-background",
     65                        "text": false,
     66                        "background": false
    5967                }
    6068        },
  • trunk/src/wp-includes/blocks/embed/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/embed",
     4        "title": "Embed",
    45        "category": "embed",
     6        "description": "Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "url": {
  • trunk/src/wp-includes/blocks/file/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/file",
     4        "title": "File",
    45        "category": "media",
     6        "description": "Add a link to a downloadable file.",
     7        "keywords": [ "document", "pdf", "download" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "id": {
  • trunk/src/wp-includes/blocks/freeform/block.json

    r50066 r50929  
    22        "apiVersion": 2,
    33        "name": "core/freeform",
     4        "title": "Classic",
    45        "category": "text",
     6        "description": "Use the classic WordPress editor.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "content": {
  • trunk/src/wp-includes/blocks/gallery/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/gallery",
     4        "title": "Gallery",
    45        "category": "media",
     6        "description": "Display multiple images in a rich gallery.",
     7        "keywords": [ "images", "photos" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "images": {
  • trunk/src/wp-includes/blocks/group/block.json

    r50761 r50929  
    22        "apiVersion": 2,
    33        "name": "core/group",
     4        "title": "Group",
    45        "category": "design",
     6        "description": "Combine blocks into a group.",
     7        "keywords": [ "container", "wrapper", "row", "section" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "tagName": {
    … …  
    913                },
    1014                "templateLock": {
    11                         "type": "string"
     15                        "enum": [ "all", "insert", false ]
    1216                }
    1317        },
  • trunk/src/wp-includes/blocks/heading/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/heading",
     4        "title": "Heading",
    45        "category": "text",
     6        "description": "Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",
     7        "keywords": [ "title", "subtitle" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "textAlign": {
    … …  
    3135                "fontSize": true,
    3236                "lineHeight": true,
    33                 "__experimentalSelector": {
    34                         "core/heading/h1": {
    35                                 "selector": "h1",
    36                                 "title": "h1",
    37                                 "attributes": {
    38                                         "level": 1
    39                                 }
    40                         },
    41                         "core/heading/h2": {
    42                                 "selector": "h2",
    43                                 "title": "h2",
    44                                 "attributes": {
    45                                         "level": 2
    46                                 }
    47                         },
    48                         "core/heading/h3": {
    49                                 "selector": "h3",
    50                                 "title": "h3",
    51                                 "attributes": {
    52                                         "level": 3
    53                                 }
    54                         },
    55                         "core/heading/h4": {
    56                                 "selector": "h4",
    57                                 "title": "h4",
    58                                 "attributes": {
    59                                         "level": 4
    60                                 }
    61                         },
    62                         "core/heading/h5": {
    63                                 "selector": "h5",
    64                                 "title": "h5",
    65                                 "attributes": {
    66                                         "level": 5
    67                                 }
    68                         },
    69                         "core/heading/h6": {
    70                                 "selector": "h6",
    71                                 "title": "h6",
    72                                 "attributes": {
    73                                         "level": 6
    74                                 }
    75                         }
    76                 },
     37                "__experimentalSelector": "h1,h2,h3,h4,h5,h6",
    7738                "__unstablePasteTextInline": true
    7839        },
  • trunk/src/wp-includes/blocks/html/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/html",
     4        "title": "Custom HTML",
    45        "category": "widgets",
     6        "description": "Add custom HTML code and preview it as you edit.",
     7        "keywords": [ "embed" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "content": {
  • trunk/src/wp-includes/blocks/image/block.json

    r50137 r50929  
    22        "apiVersion": 2,
    33        "name": "core/image",
     4        "title": "Image",
    45        "category": "media",
     6        "description": "Insert an image to make a visual statement.",
     7        "keywords": [ "img", "photo", "picture" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "align": {
    … …  
    7377        "supports": {
    7478                "anchor": true,
     79                "color": {
     80                        "__experimentalDuotone": "img",
     81                        "text": false,
     82                        "background": false
     83                },
    7584                "__experimentalBorder": {
    7685                        "radius": true
    7786                }
    7887        },
     88        "styles": [
     89                {
     90                        "name": "default",
     91                        "label": "Default",
     92                        "isDefault": true
     93                },
     94                { "name": "rounded", "label": "Rounded" }
     95        ],
    7996        "editorStyle": "wp-block-image-editor",
    8097        "style": "wp-block-image"
  • trunk/src/wp-includes/blocks/index.php

    r50927 r50929  
    1414require ABSPATH . WPINC . '/blocks/latest-comments.php';
    1515require ABSPATH . WPINC . '/blocks/latest-posts.php';
     16require ABSPATH . WPINC . '/blocks/loginout.php';
     17require ABSPATH . WPINC . '/blocks/post-author.php';
     18require ABSPATH . WPINC . '/blocks/post-content.php';
     19require ABSPATH . WPINC . '/blocks/post-date.php';
     20require ABSPATH . WPINC . '/blocks/post-excerpt.php';
     21require ABSPATH . WPINC . '/blocks/post-featured-image.php';
     22require ABSPATH . WPINC . '/blocks/post-terms.php';
     23require ABSPATH . WPINC . '/blocks/post-title.php';
     24require ABSPATH . WPINC . '/blocks/query.php';
     25require ABSPATH . WPINC . '/blocks/query-loop.php';
     26require ABSPATH . WPINC . '/blocks/query-pagination.php';
     27require ABSPATH . WPINC . '/blocks/query-pagination-next.php';
     28require ABSPATH . WPINC . '/blocks/query-pagination-numbers.php';
     29require ABSPATH . WPINC . '/blocks/query-pagination-previous.php';
     30require ABSPATH . WPINC . '/blocks/query-title.php';
    1631require ABSPATH . WPINC . '/blocks/rss.php';
    1732require ABSPATH . WPINC . '/blocks/search.php';
    1833require ABSPATH . WPINC . '/blocks/shortcode.php';
     34require ABSPATH . WPINC . '/blocks/site-tagline.php';
     35require ABSPATH . WPINC . '/blocks/site-title.php';
    1936require ABSPATH . WPINC . '/blocks/social-link.php';
    2037require ABSPATH . WPINC . '/blocks/tag-cloud.php';
  • trunk/src/wp-includes/blocks/latest-comments/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/latest-comments",
     4        "title": "Latest Comments",
    45        "category": "widgets",
     6        "description": "Display a list of your most recent comments.",
     7        "keywords": [ "recent comments" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "commentsToShow": {
  • trunk/src/wp-includes/blocks/latest-posts/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/latest-posts",
     4        "title": "Latest Posts",
    45        "category": "widgets",
     6        "description": "Display a list of your most recent posts.",
     7        "keywords": [ "recent posts" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "categories": {
  • trunk/src/wp-includes/blocks/list/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/list",
     4        "title": "List",
    45        "category": "text",
     6        "description": "Create a bulleted or numbered list.",
     7        "keywords": [ "bullet list", "ordered list", "numbered list" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "ordered": {
  • trunk/src/wp-includes/blocks/media-text/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/media-text",
     4        "title": "Media & Text",
    45        "category": "media",
     6        "description": "Set media and words side-by-side for a richer layout.",
     7        "keywords": [ "image", "video" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "align": {
  • trunk/src/wp-includes/blocks/missing/block.json

    r49226 r50929  
    22        "apiVersion": 2,
    33        "name": "core/missing",
     4        "title": "Unsupported",
    45        "category": "text",
     6        "description": "Your site doesn’t include support for this block.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "originalName": {
  • trunk/src/wp-includes/blocks/more/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/more",
     4        "title": "More",
    45        "category": "design",
     6        "description": "Content before this block will be shown in the excerpt on your archives page.",
     7        "keywords": [ "read more" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "customText": {
  • trunk/src/wp-includes/blocks/nextpage/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/nextpage",
     4        "title": "Page Break",
    45        "category": "design",
     6        "description": "Separate your content into a multi-page experience.",
     7        "keywords": [ "next page", "pagination" ],
    58        "parent": [ "core/post-content" ],
     9        "textdomain": "default",
    610        "supports": {
    711                "customClassName": false,
  • trunk/src/wp-includes/blocks/paragraph/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/paragraph",
     4        "title": "Paragraph",
    45        "category": "text",
     6        "description": "Start with the building block of all narrative.",
     7        "keywords": [ "text" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "align": {
  • trunk/src/wp-includes/blocks/preformatted/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/preformatted",
     4        "title": "Preformatted",
    45        "category": "text",
     6        "description": "Add text that respects your spacing and tabs, and also allows styling.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "content": {
  • trunk/src/wp-includes/blocks/pullquote/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/pullquote",
     4        "title": "Pullquote",
    45        "category": "text",
     6        "description": "Give special visual emphasis to a quote from your text.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "value": {
    … …  
    3538                "align": [ "left", "right", "wide", "full" ]
    3639        },
     40        "styles": [
     41                {
     42                        "name": "default",
     43                        "label": "Default",
     44                        "isDefault": true
     45                },
     46                { "name": "solid-color", "label": "Solid color" }
     47        ],
    3748        "editorStyle": "wp-block-pullquote-editor",
    3849        "style": "wp-block-pullquote"
  • trunk/src/wp-includes/blocks/quote/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/quote",
     4        "title": "Quote",
    45        "category": "text",
     6        "description": "Give quoted text visual emphasis. \"In quoting others, we cite ourselves.\" — Julio Cortázar",
     7        "keywords": [ "blockquote", "cite" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "value": {
    … …  
    2630                "anchor": true
    2731        },
     32        "styles": [
     33                {
     34                        "name": "default",
     35                        "label": "Default",
     36                        "isDefault": true
     37                },
     38                { "name": "large", "label": "Large" }
     39        ],
    2840        "editorStyle": "wp-block-quote-editor",
    2941        "style": "wp-block-quote"
  • trunk/src/wp-includes/blocks/rss/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/rss",
     4        "title": "RSS",
    45        "category": "widgets",
     6        "description": "Display entries from any RSS or Atom feed.",
     7        "keywords": [ "atom", "feed" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "columns": {
  • trunk/src/wp-includes/blocks/search/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/search",
     4        "title": "Search",
    45        "category": "widgets",
     6        "description": "Help visitors find your content.",
     7        "keywords": [ "find" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "label": {
  • trunk/src/wp-includes/blocks/separator/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/separator",
     4        "title": "Separator",
    45        "category": "design",
     6        "description": "Create a break between ideas or sections with a horizontal separator.",
     7        "keywords": [ "horizontal-line", "hr", "divider" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "color": {
    … …  
    1519                "align": [ "center", "wide", "full" ]
    1620        },
     21        "styles": [
     22                { "name": "default", "label": "Default", "isDefault": true },
     23                { "name": "wide", "label": "Wide Line" },
     24                { "name": "dots", "label": "Dots" }
     25        ],
    1726        "editorStyle": "wp-block-separator-editor",
    1827        "style": "wp-block-separator"
  • trunk/src/wp-includes/blocks/shortcode/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/shortcode",
     4        "title": "Shortcode",
    45        "category": "widgets",
     6        "description": "Insert additional custom elements with a WordPress shortcode.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "text": {
  • trunk/src/wp-includes/blocks/social-link/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/social-link",
     4        "title": "Social Icon",
    45        "category": "widgets",
    56        "parent": [ "core/social-links" ],
     7        "description": "Display an icon linking to a social media profile or website.",
     8        "textdomain": "default",
    69        "attributes": {
    710                "url": {
  • trunk/src/wp-includes/blocks/social-links/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/social-links",
     4        "title": "Social Icons",
    45        "category": "widgets",
     6        "description": "Display icons linking to your social media profiles or websites.",
     7        "keywords": [ "links" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "iconColor": {
    … …  
    3943                "anchor": true
    4044        },
     45        "styles": [
     46                { "name": "default", "label": "Default", "isDefault": true },
     47                { "name": "logos-only", "label": "Logos Only" },
     48                { "name": "pill-shape", "label": "Pill Shape" }
     49        ],
    4150        "editorStyle": "wp-block-social-links-editor",
    4251        "style": "wp-block-social-links"
  • trunk/src/wp-includes/blocks/spacer/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/spacer",
     4        "title": "Spacer",
    45        "category": "design",
     6        "description": "Add white space between blocks and customize its height.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "height": {
  • trunk/src/wp-includes/blocks/table/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/table",
     4        "title": "Table",
    45        "category": "text",
     6        "description": "Insert a table — perfect for sharing charts and data.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "hasFixedLayout": {
    710                        "type": "boolean",
    811                        "default": false
    9                 },
    10                 "backgroundColor": {
    11                         "type": "string"
    1212                },
    1313                "caption": {
    … …  
    126126                "anchor": true,
    127127                "align": true,
     128                "color": {
     129                        "__experimentalSkipSerialization": true,
     130                        "gradients": true
     131                },
     132                "__experimentalBorder": {
     133                        "__experimentalSkipSerialization": true,
     134                        "color": true,
     135                        "style": true,
     136                        "width": true
     137                },
    128138                "__experimentalSelector": ".wp-block-table > table"
    129139        },
     140        "styles": [
     141                {
     142                        "name": "regular",
     143                        "label": "Default",
     144                        "isDefault": true
     145                },
     146                { "name": "stripes", "label": "Stripes" }
     147        ],
    130148        "editorStyle": "wp-block-table-editor",
    131149        "style": "wp-block-table"
  • trunk/src/wp-includes/blocks/tag-cloud/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/tag-cloud",
     4        "title": "Tag Cloud",
    45        "category": "widgets",
     6        "description": "A cloud of your most used tags.",
     7        "textdomain": "default",
    58        "attributes": {
    69                "taxonomy": {
  • trunk/src/wp-includes/blocks/text-columns/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/text-columns",
     4        "title": "Text Columns (deprecated)",
    45        "icon": "columns",
    56        "category": "design",
     7        "description": "This block is deprecated. Please use the Columns block instead.",
     8        "textdomain": "default",
    69        "attributes": {
    710                "content": {
  • trunk/src/wp-includes/blocks/verse/block.json

    r50824 r50929  
    22        "apiVersion": 2,
    33        "name": "core/verse",
     4        "title": "Verse",
    45        "category": "text",
     6        "description": "Insert poetry. Use special spacing formats. Or quote song lyrics.",
     7        "keywords": [ "poetry", "poem" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "content": {
  • trunk/src/wp-includes/blocks/video/block.json

    r50048 r50929  
    22        "apiVersion": 2,
    33        "name": "core/video",
     4        "title": "Video",
    45        "category": "media",
     6        "description": "Embed a video from your media library or upload a new one.",
     7        "keywords": [ "movie" ],
     8        "textdomain": "default",
    59        "attributes": {
    610                "autoplay": {
Note: See TracChangeset for help on using the changeset viewer.