Make WordPress Core


Ignore:
Timestamp:
12/17/2018 04:50:48 AM (5 years ago)
Author:
desrosj
Message:

Block Editor: Update @wordpress dependencies.

Changes of note:

  • Includes the new Annotations API package.
  • wp-polyfill-ecmascript.js is renamed to wp-polyfill.js.
  • strip_dynamic_blocks() has been removed in favor of excerpt_remove_blocks().
  • The PHP block parser is now syncing from the block-serialization-default-parser package.
  • do_blocks() uses the new parser.
  • The do_block filter has been removed from do_blocks(), in favor of a render_block filter in render_block().

Also, a little cleanup to render_block(). Always normalize $block['attrs’] to array in ’render_block’ filter.
Props pento, azaozz.

Merges [43884] and [43888] to trunk.

See #45145, #45190, #45264, #45282.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tests/phpunit/data/blocks/fixtures/core__column.parsed.json

    r44118 r44261  
    44        "attrs": {},
    55        "innerBlocks": [
    6             {
    7                 "blockName": null,
    8                 "attrs": {},
    9                 "innerBlocks": [],
    10                 "innerHTML": "\n<div class=\"wp-block-column\">\n\t"
    11             },
    126            {
    137                "blockName": "core/paragraph",
    148                "attrs": {},
    159                "innerBlocks": [],
    16                 "innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t"
     10                "innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t",
     11                "innerContent": [ "\n\t<p>Column One, Paragraph One</p>\n\t" ]
    1712            },
    18             {
    19                 "blockName": null,
    20                 "attrs": {},
    21                 "innerBlocks": [],
    22                 "innerHTML": "\n\t"
    23             },
    2413            {
    2514                "blockName": "core/paragraph",
    2615                "attrs": {},
    2716                "innerBlocks": [],
    28                 "innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t"
    29             },
    30             {
    31                 "blockName": null,
    32                 "attrs": {},
    33                 "innerBlocks": [],
    34                 "innerHTML": "\n</div>\n"
    35             }
    36         ],
    37         "innerHTML": ""
     17                "innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t",
     18                "innerContent": [ "\n\t<p>Column One, Paragraph Two</p>\n\t" ]
     19            }
     20        ],
     21        "innerHTML": "\n<div class=\"wp-block-column\">\n\t\n\t\n</div>\n",
     22        "innerContent": [ "\n<div class=\"wp-block-column\">\n\t", null, "\n\t", null, "\n</div>\n" ]
    3823    },
    3924    {
     
    4126        "attrs": {},
    4227        "innerBlocks": [],
    43         "innerHTML": "\n"
     28        "innerHTML": "\n",
     29        "innerContent": [ "\n" ]
    4430    }
    4531]
Note: See TracChangeset for help on using the changeset viewer.