Make WordPress Core


Ignore:
Timestamp:
11/12/2018 02:26:18 AM (8 years ago)
Author:
pento
Message:

Block Editor: Update @wordpress dependencies to the latest version.

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 favour 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 favour of a render_block filter in render_block().

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json

    r43752 r43884  
    66        },
    77        "innerBlocks": [
    8                         {
    9                                 "blockName": null,
    10                                 "attrs": {},
    11                                 "innerBlocks": [],
    12                                 "innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t"
    13                         },
    148            {
    159                "blockName": "core/column",
    1610                "attrs": {},
    1711                "innerBlocks": [
    18                                         {
    19                                                 "blockName": null,
    20                                                 "attrs": {},
    21                                                 "innerBlocks": [],
    22                                                 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t"
    23                                         },
    24                                         {
     12                    {
    2513                        "blockName": "core/paragraph",
    2614                        "attrs": {},
    2715                        "innerBlocks": [],
    28                         "innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t"
     16                        "innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t",
     17                        "innerContent": [
     18                            "\n\t\t<p>Column One, Paragraph One</p>\n\t\t"
     19                        ]
    2920                    },
    30                                         {
    31                                                 "blockName": null,
    32                                                 "attrs": {},
    33                                                 "innerBlocks": [],
    34                                                 "innerHTML": "\n\t\t"
    35                                         },
    36                                         {
     21                    {
    3722                        "blockName": "core/paragraph",
    3823                        "attrs": {},
    3924                        "innerBlocks": [],
    40                         "innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t"
    41                     },
    42                                         {
    43                                                 "blockName": null,
    44                                                 "attrs": {},
    45                                                 "innerBlocks": [],
    46                                                 "innerHTML": "\n\t</div>\n\t"
    47                                         }
     25                        "innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t",
     26                        "innerContent": [
     27                            "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t"
     28                        ]
     29                    }
    4830                ],
    49                 "innerHTML": ""
     31                "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t",
     32                "innerContent": [
     33                    "\n\t<div class=\"wp-block-column\">\n\t\t",
     34                    null,
     35                    "\n\t\t",
     36                    null,
     37                    "\n\t</div>\n\t"
     38                ]
    5039            },
    51                         {
    52                                 "blockName": null,
    53                                 "attrs": {},
    54                                 "innerBlocks": [],
    55                                 "innerHTML": "\n\t"
    56                         },
    5740            {
    5841                "blockName": "core/column",
    5942                "attrs": {},
    60                                 "innerBlocks": [
    61                                         {
    62                                                 "blockName": null,
    63                                                 "attrs": {},
    64                                                 "innerBlocks": [],
    65                                                 "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t"
    66                                         },
    67                                         {
     43                "innerBlocks": [
     44                    {
    6845                        "blockName": "core/paragraph",
    6946                        "attrs": {},
    7047                        "innerBlocks": [],
    71                         "innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t"
     48                        "innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t",
     49                        "innerContent": [
     50                            "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t"
     51                        ]
    7252                    },
    73                                         {
    74                                                 "blockName": null,
    75                                                 "attrs": {},
    76                                                 "innerBlocks": [],
    77                                                 "innerHTML": "\n\t\t"
    78                                         },
    79                                         {
     53                    {
    8054                        "blockName": "core/paragraph",
    8155                        "attrs": {},
    8256                        "innerBlocks": [],
    83                         "innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t"
    84                     },
    85                                         {
    86                                                 "blockName": null,
    87                                                 "attrs": {},
    88                                                 "innerBlocks": [],
    89                                                 "innerHTML": "\n\t</div>\n\t"
    90                                         }
     57                        "innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t",
     58                        "innerContent": [
     59                            "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t"
     60                        ]
     61                    }
    9162                ],
    92                 "innerHTML": ""
    93             },
    94                         {
    95                                 "blockName": null,
    96                                 "attrs": {},
    97                                 "innerBlocks": [],
    98                                 "innerHTML": "\n</div>\n"
    99                         }
     63                "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t",
     64                "innerContent": [
     65                    "\n\t<div class=\"wp-block-column\">\n\t\t",
     66                    null,
     67                    "\n\t\t",
     68                    null,
     69                    "\n\t</div>\n\t"
     70                ]
     71            }
    10072        ],
    101         "innerHTML": ""
     73        "innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>\n",
     74        "innerContent": [
     75            "\n<div class=\"wp-block-columns has-3-columns\">\n\t",
     76            null,
     77            "\n\t",
     78            null,
     79            "\n</div>\n"
     80        ]
    10281    },
    10382    {
     
    10584        "attrs": {},
    10685        "innerBlocks": [],
    107         "innerHTML": "\n"
     86        "innerHTML": "\n",
     87        "innerContent": [
     88            "\n"
     89        ]
    10890    }
    10991]
Note: See TracChangeset for help on using the changeset viewer.