WordPress.org

Make WordPress Core

Changeset 43884


Ignore:
Timestamp:
11/12/2018 02:26:18 AM (12 months 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.

Location:
branches/5.0
Files:
45 added
75 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/package-lock.json

    r43861 r43884  
    210210            }
    211211        },
     212        "@wordpress/annotations": {
     213            "version": "1.0.0",
     214            "resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-1.0.0.tgz",
     215            "integrity": "sha512-S1geWYg1OFRy9Lw8IE377DMEcnbFWD0457N7wHEvnjWU4ngI9rbFJ9FLEs/FNNlYR4zVy+niAl6I5pY1Qac9lw==",
     216            "requires": {
     217                "@babel/runtime": "^7.0.0",
     218                "@wordpress/data": "^3.1.2",
     219                "@wordpress/hooks": "^2.0.3",
     220                "@wordpress/i18n": "^3.0.1",
     221                "@wordpress/rich-text": "^2.0.4",
     222                "lodash": "^4.17.10",
     223                "rememo": "^3.0.0",
     224                "uuid": "^3.3.2"
     225            }
     226        },
    212227        "@wordpress/api-fetch": {
    213             "version": "2.2.2",
    214             "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.2.tgz",
    215             "integrity": "sha512-yqJjHR+EjbMZ9BO3DWJqydvlRZoS9M1NvdwXouzkmxCCdVF4JfmWdydfakeXreYH8+T01V/JjP2rZYcQDn36/Q==",
     228            "version": "2.2.3",
     229            "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-2.2.3.tgz",
     230            "integrity": "sha512-kYQ8Au3tkNYDkJQfXfe5KS5DGN7YlCM4Ltk1vMCNy7C9JdNNJQ5v44ccZr6hT0usxyj+4UyIh0AnY55asT+b/A==",
    216231            "requires": {
    217232                "@babel/runtime": "^7.0.0",
    218233                "@wordpress/hooks": "^2.0.3",
    219234                "@wordpress/i18n": "^3.0.1",
    220                 "@wordpress/url": "^2.2.0"
     235                "@wordpress/url": "^2.3.0"
    221236            }
    222237        },
     
    238253        },
    239254        "@wordpress/block-library": {
    240             "version": "2.1.8",
    241             "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.1.8.tgz",
    242             "integrity": "sha512-U8SmRZYsmbmPFV6mh6fyDkif+jvAUCeQgkDJjIMLBucq/7KWQutUj9Led8cFvgZ9mM/ZJ8h4YoFsuh7WhB7Liw==",
     255            "version": "2.2.2",
     256            "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.2.2.tgz",
     257            "integrity": "sha512-Q0hkYxq1eXRAAhGoCHZ1mT0GV1AtSpyB/N9ZwMrF3nP116tx7hbcMsyJW9j/tgvKLFOUforSitGQyfojxlWysQ==",
    243258            "requires": {
    244259                "@babel/runtime": "^7.0.0",
    245260                "@wordpress/autop": "^2.0.2",
    246261                "@wordpress/blob": "^2.1.0",
    247                 "@wordpress/blocks": "^5.1.2",
    248                 "@wordpress/components": "^5.0.2",
    249                 "@wordpress/compose": "^2.1.0",
    250                 "@wordpress/core-data": "^2.0.9",
    251                 "@wordpress/data": "^3.1.0",
     262                "@wordpress/blocks": "^5.3.1",
     263                "@wordpress/components": "^6.0.0",
     264                "@wordpress/compose": "^2.1.2",
     265                "@wordpress/core-data": "^2.0.12",
     266                "@wordpress/data": "^3.1.2",
    252267                "@wordpress/deprecated": "^2.0.3",
    253                 "@wordpress/editor": "^6.1.1",
    254                 "@wordpress/element": "^2.1.5",
     268                "@wordpress/editor": "^7.0.0",
     269                "@wordpress/element": "^2.1.7",
    255270                "@wordpress/html-entities": "^2.0.2",
    256271                "@wordpress/i18n": "^3.0.1",
    257272                "@wordpress/keycodes": "^2.0.3",
    258                 "@wordpress/viewport": "^2.0.8",
     273                "@wordpress/viewport": "^2.0.10",
    259274                "classnames": "^2.2.5",
    260275                "lodash": "^4.17.10",
     
    264279                "querystringify": "^1.0.0",
    265280                "url": "^0.11.0"
     281            },
     282            "dependencies": {
     283                "@wordpress/compose": {
     284                    "version": "2.1.2",
     285                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     286                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     287                    "requires": {
     288                        "@babel/runtime": "^7.0.0",
     289                        "@wordpress/deprecated": "^2.0.3",
     290                        "@wordpress/element": "^2.1.7",
     291                        "@wordpress/is-shallow-equal": "^1.1.4",
     292                        "lodash": "^4.17.10"
     293                    }
     294                },
     295                "@wordpress/data": {
     296                    "version": "3.1.2",
     297                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     298                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     299                    "requires": {
     300                        "@babel/runtime": "^7.0.0",
     301                        "@wordpress/compose": "^2.1.2",
     302                        "@wordpress/deprecated": "^2.0.3",
     303                        "@wordpress/element": "^2.1.7",
     304                        "@wordpress/is-shallow-equal": "^1.1.4",
     305                        "@wordpress/redux-routine": "^3.0.3",
     306                        "equivalent-key-map": "^0.2.2",
     307                        "is-promise": "^2.1.0",
     308                        "lodash": "^4.17.10",
     309                        "redux": "^4.0.0",
     310                        "turbo-combine-reducers": "^1.0.2"
     311                    }
     312                },
     313                "@wordpress/element": {
     314                    "version": "2.1.7",
     315                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     316                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     317                    "requires": {
     318                        "@babel/runtime": "^7.0.0",
     319                        "@wordpress/escape-html": "^1.0.1",
     320                        "lodash": "^4.17.10",
     321                        "react": "^16.4.1",
     322                        "react-dom": "^16.4.1"
     323                    }
     324                },
     325                "@wordpress/viewport": {
     326                    "version": "2.0.10",
     327                    "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz",
     328                    "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==",
     329                    "requires": {
     330                        "@babel/runtime": "^7.0.0",
     331                        "@wordpress/compose": "^2.1.2",
     332                        "@wordpress/data": "^3.1.2",
     333                        "@wordpress/element": "^2.1.7",
     334                        "lodash": "^4.17.10"
     335                    }
     336                }
    266337            }
    267338        },
    268339        "@wordpress/block-serialization-default-parser": {
    269             "version": "1.0.2",
    270             "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-1.0.2.tgz",
    271             "integrity": "sha512-rPsZz5b2E3o9DVsbTmAL64B5CQro65L1QAqyrqr89qUAROvLZepZKIuGo2fd8dsnWIO5v8oaMmc0amSdEmVAiw==",
     340            "version": "2.0.0",
     341            "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-2.0.0.tgz",
     342            "integrity": "sha512-WPQuQ2IsUOG9wMTst8CYW8c5NMM3iatTW2FinfZrHtH9R1g9qdQPt5Wv56U7eMeDACVOj35jG2oJtZCRaDyL7A==",
    272343            "requires": {
    273344                "@babel/runtime": "^7.0.0"
     
    275346        },
    276347        "@wordpress/block-serialization-spec-parser": {
    277             "version": "1.0.4",
    278             "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-1.0.4.tgz",
    279             "integrity": "sha512-Z+XfCWG3/wW9IIuxEuS7tHV81tx4rp0ZcAxF9+ESDbhaP5GFSFLVL4+/ubL713vev5TFaPJZN9pRYSljg+bOqA=="
     348            "version": "2.0.0",
     349            "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-spec-parser/-/block-serialization-spec-parser-2.0.0.tgz",
     350            "integrity": "sha512-l5N0o2Tkc4IcDhhMfX2W3KuEV/4F7TeitJEDtBpLYf7eRMIn3Uh6l5rPDmmuTDv7UFlMWTiA8z/oCpl13ZyBOw=="
    280351        },
    281352        "@wordpress/blocks": {
    282             "version": "5.1.2",
    283             "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-5.1.2.tgz",
    284             "integrity": "sha512-azOaGvpKyV+Jh8yQKjZ/1FzT63LyTmv/OddzSaln8glETF5yh8xsTDbh1XE9zGICi53fl7lgbpkW9OfZrbQTWQ==",
     353            "version": "5.3.1",
     354            "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-5.3.1.tgz",
     355            "integrity": "sha512-bC7yqqfwFRpcOwtcJ5KtIesVH8344wy7HAnYt7g58nGyoFXfO9Ja75f02XS2jqS7Jo1j+gacJqGZoLnHfN8dYw==",
    285356            "requires": {
    286357                "@babel/runtime": "^7.0.0",
    287358                "@wordpress/autop": "^2.0.2",
    288359                "@wordpress/blob": "^2.1.0",
    289                 "@wordpress/block-serialization-default-parser": "^1.0.2",
    290                 "@wordpress/block-serialization-spec-parser": "^1.0.4",
    291                 "@wordpress/data": "^3.1.0",
    292                 "@wordpress/dom": "^2.0.4",
    293                 "@wordpress/element": "^2.1.5",
     360                "@wordpress/block-serialization-default-parser": "^2.0.0",
     361                "@wordpress/block-serialization-spec-parser": "^2.0.0",
     362                "@wordpress/data": "^3.1.2",
     363                "@wordpress/dom": "^2.0.6",
     364                "@wordpress/element": "^2.1.7",
    294365                "@wordpress/hooks": "^2.0.3",
    295366                "@wordpress/i18n": "^3.0.1",
     
    302373                "simple-html-tokenizer": "^0.4.1",
    303374                "tinycolor2": "^1.4.1",
    304                 "uuid": "^3.1.0"
     375                "uuid": "^3.3.2"
     376            },
     377            "dependencies": {
     378                "@wordpress/compose": {
     379                    "version": "2.1.2",
     380                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     381                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     382                    "requires": {
     383                        "@babel/runtime": "^7.0.0",
     384                        "@wordpress/deprecated": "^2.0.3",
     385                        "@wordpress/element": "^2.1.7",
     386                        "@wordpress/is-shallow-equal": "^1.1.4",
     387                        "lodash": "^4.17.10"
     388                    }
     389                },
     390                "@wordpress/data": {
     391                    "version": "3.1.2",
     392                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     393                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     394                    "requires": {
     395                        "@babel/runtime": "^7.0.0",
     396                        "@wordpress/compose": "^2.1.2",
     397                        "@wordpress/deprecated": "^2.0.3",
     398                        "@wordpress/element": "^2.1.7",
     399                        "@wordpress/is-shallow-equal": "^1.1.4",
     400                        "@wordpress/redux-routine": "^3.0.3",
     401                        "equivalent-key-map": "^0.2.2",
     402                        "is-promise": "^2.1.0",
     403                        "lodash": "^4.17.10",
     404                        "redux": "^4.0.0",
     405                        "turbo-combine-reducers": "^1.0.2"
     406                    }
     407                },
     408                "@wordpress/dom": {
     409                    "version": "2.0.6",
     410                    "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
     411                    "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
     412                    "requires": {
     413                        "@babel/runtime": "^7.0.0",
     414                        "lodash": "^4.17.10"
     415                    }
     416                },
     417                "@wordpress/element": {
     418                    "version": "2.1.7",
     419                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     420                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     421                    "requires": {
     422                        "@babel/runtime": "^7.0.0",
     423                        "@wordpress/escape-html": "^1.0.1",
     424                        "lodash": "^4.17.10",
     425                        "react": "^16.4.1",
     426                        "react-dom": "^16.4.1"
     427                    }
     428                }
    305429            }
    306430        },
    307431        "@wordpress/components": {
    308             "version": "5.0.2",
    309             "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-5.0.2.tgz",
    310             "integrity": "sha512-i/gnog8ilbZb+8EuIKfJnPQkx1IEh6U/mmWDaesWrYVuIzs7Z4NGWUpLKnmQZHGN6G0YZkd3FJSu5gspwT5bDg==",
     432            "version": "6.0.0",
     433            "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-6.0.0.tgz",
     434            "integrity": "sha512-0TeXSfUYHeismfdrTKeFnxg30Nz2F9ZgvqTz2KAiQcCzwgZ/cY8ijf9Ef6Xl11RCEsKoN82tYmc5WNTRrClObA==",
    311435            "requires": {
    312436                "@babel/runtime": "^7.0.0",
    313437                "@wordpress/a11y": "^2.0.2",
    314                 "@wordpress/api-fetch": "^2.2.2",
    315                 "@wordpress/compose": "^2.1.0",
     438                "@wordpress/api-fetch": "^2.2.3",
     439                "@wordpress/compose": "^2.1.2",
    316440                "@wordpress/deprecated": "^2.0.3",
    317                 "@wordpress/dom": "^2.0.4",
    318                 "@wordpress/element": "^2.1.5",
     441                "@wordpress/dom": "^2.0.6",
     442                "@wordpress/element": "^2.1.7",
    319443                "@wordpress/hooks": "^2.0.3",
    320444                "@wordpress/i18n": "^3.0.1",
    321445                "@wordpress/is-shallow-equal": "^1.1.4",
    322446                "@wordpress/keycodes": "^2.0.3",
    323                 "@wordpress/url": "^2.2.0",
     447                "@wordpress/url": "^2.3.0",
    324448                "classnames": "^2.2.5",
    325449                "clipboard": "^2.0.1",
     
    335459                "rememo": "^3.0.0",
    336460                "tinycolor2": "^1.4.1",
    337                 "uuid": "^3.1.0"
     461                "uuid": "^3.3.2"
     462            },
     463            "dependencies": {
     464                "@wordpress/compose": {
     465                    "version": "2.1.2",
     466                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     467                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     468                    "requires": {
     469                        "@babel/runtime": "^7.0.0",
     470                        "@wordpress/deprecated": "^2.0.3",
     471                        "@wordpress/element": "^2.1.7",
     472                        "@wordpress/is-shallow-equal": "^1.1.4",
     473                        "lodash": "^4.17.10"
     474                    }
     475                },
     476                "@wordpress/dom": {
     477                    "version": "2.0.6",
     478                    "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
     479                    "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
     480                    "requires": {
     481                        "@babel/runtime": "^7.0.0",
     482                        "lodash": "^4.17.10"
     483                    }
     484                },
     485                "@wordpress/element": {
     486                    "version": "2.1.7",
     487                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     488                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     489                    "requires": {
     490                        "@babel/runtime": "^7.0.0",
     491                        "@wordpress/escape-html": "^1.0.1",
     492                        "lodash": "^4.17.10",
     493                        "react": "^16.4.1",
     494                        "react-dom": "^16.4.1"
     495                    }
     496                }
    338497            }
    339498        },
    340499        "@wordpress/compose": {
    341             "version": "2.1.0",
    342             "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.0.tgz",
    343             "integrity": "sha512-QtjesFxEdLAUoBxFQ7rkpUG5aA4ccRxZI71fz0RkMiBVKoUHIqy+R6VGViL/wkdYigmfD9KU89Rg3Ksk40hVIA==",
     500            "version": "2.1.2",
     501            "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     502            "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
    344503            "requires": {
    345504                "@babel/runtime": "^7.0.0",
    346505                "@wordpress/deprecated": "^2.0.3",
    347                 "@wordpress/element": "^2.1.5",
     506                "@wordpress/element": "^2.1.7",
    348507                "@wordpress/is-shallow-equal": "^1.1.4",
    349508                "lodash": "^4.17.10"
     
    351510        },
    352511        "@wordpress/core-data": {
    353             "version": "2.0.9",
    354             "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.9.tgz",
    355             "integrity": "sha512-+mnHzz6lOur6+MEpgdASza1e7RjCgLty7p+tFZM9k8euNnx+UxffiPd1IWTV8CqBV7sTpZE5mqrM3oCeUxUFtg==",
     512            "version": "2.0.12",
     513            "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-2.0.12.tgz",
     514            "integrity": "sha512-Z1nby7U+m+R2LVH2N6YEanbSbBiwKc+Ce646TULbnP7+S1NMGiLTlY00/00TWuIlQ6+gFHAd3lDuwigY6LZorw==",
    356515            "requires": {
    357516                "@babel/runtime": "^7.0.0",
    358                 "@wordpress/api-fetch": "^2.2.2",
    359                 "@wordpress/data": "^3.1.0",
    360                 "@wordpress/url": "^2.2.0",
     517                "@wordpress/api-fetch": "^2.2.3",
     518                "@wordpress/data": "^3.1.2",
     519                "@wordpress/url": "^2.3.0",
    361520                "equivalent-key-map": "^0.2.2",
    362521                "lodash": "^4.17.10",
    363522                "rememo": "^3.0.0"
     523            },
     524            "dependencies": {
     525                "@wordpress/compose": {
     526                    "version": "2.1.2",
     527                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     528                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     529                    "requires": {
     530                        "@babel/runtime": "^7.0.0",
     531                        "@wordpress/deprecated": "^2.0.3",
     532                        "@wordpress/element": "^2.1.7",
     533                        "@wordpress/is-shallow-equal": "^1.1.4",
     534                        "lodash": "^4.17.10"
     535                    }
     536                },
     537                "@wordpress/data": {
     538                    "version": "3.1.2",
     539                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     540                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     541                    "requires": {
     542                        "@babel/runtime": "^7.0.0",
     543                        "@wordpress/compose": "^2.1.2",
     544                        "@wordpress/deprecated": "^2.0.3",
     545                        "@wordpress/element": "^2.1.7",
     546                        "@wordpress/is-shallow-equal": "^1.1.4",
     547                        "@wordpress/redux-routine": "^3.0.3",
     548                        "equivalent-key-map": "^0.2.2",
     549                        "is-promise": "^2.1.0",
     550                        "lodash": "^4.17.10",
     551                        "redux": "^4.0.0",
     552                        "turbo-combine-reducers": "^1.0.2"
     553                    }
     554                },
     555                "@wordpress/element": {
     556                    "version": "2.1.7",
     557                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     558                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     559                    "requires": {
     560                        "@babel/runtime": "^7.0.0",
     561                        "@wordpress/escape-html": "^1.0.1",
     562                        "lodash": "^4.17.10",
     563                        "react": "^16.4.1",
     564                        "react-dom": "^16.4.1"
     565                    }
     566                }
    364567            }
    365568        },
     
    375578        },
    376579        "@wordpress/data": {
    377             "version": "3.1.0",
    378             "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.0.tgz",
    379             "integrity": "sha512-XQNSOy7xSHVi4KGxOOd6gJJ3+Qq4XWZMK5hMBSEwVCiyIcSbcP6I1AT1NnnPuJeH94BmFCPNADElHB4gazg8xA==",
     580            "version": "3.1.2",
     581            "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     582            "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
    380583            "requires": {
    381584                "@babel/runtime": "^7.0.0",
    382                 "@wordpress/compose": "^2.1.0",
     585                "@wordpress/compose": "^2.1.2",
    383586                "@wordpress/deprecated": "^2.0.3",
    384                 "@wordpress/element": "^2.1.5",
     587                "@wordpress/element": "^2.1.7",
    385588                "@wordpress/is-shallow-equal": "^1.1.4",
    386589                "@wordpress/redux-routine": "^3.0.3",
     
    393596        },
    394597        "@wordpress/date": {
    395             "version": "2.1.0",
    396             "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2.1.0.tgz",
    397             "integrity": "sha512-MMDU2/N0unnwKTmaeCYy4fW/CuyCdM5t+/ANXVigBxY/IiOGeRXnmiU4VHK1BshEnsWRJz687MmEGEkxVpwd8w==",
     598            "version": "2.2.1",
     599            "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2.2.1.tgz",
     600            "integrity": "sha512-icDlv9HAEVx4xXveU9m93CHqH+82SqkL/Y3Po9jjuCS6K2F0OMJURdQSbcf6QJ6KmCXJzeQTq4/IrtioXOEy5w==",
    398601            "requires": {
    399602                "@babel/runtime": "^7.0.0",
     
    412615        },
    413616        "@wordpress/dom": {
    414             "version": "2.0.4",
    415             "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.4.tgz",
    416             "integrity": "sha512-uW/yeWayoSu6uUA+xrM+yCbNJc3oQfga1Y1PUgXvowv0ydn5Qhgh2Dj07ANgg1AncZqFZsObPerBFNloaJhsvQ==",
     617            "version": "2.0.6",
     618            "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
     619            "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
    417620            "requires": {
    418621                "@babel/runtime": "^7.0.0",
     
    429632        },
    430633        "@wordpress/edit-post": {
    431             "version": "2.0.3",
    432             "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-2.0.3.tgz",
    433             "integrity": "sha512-p95SERqEfafGPh4xvAWJLxL6CeBHpiHk6ZKCHd5aAzALYc53ERWCDkz4vR7KLmhFLpaUNfduAcOD+Zh0oxJr8g==",
     634            "version": "3.0.0",
     635            "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.0.0.tgz",
     636            "integrity": "sha512-sswJ8jFYoUn70WGcWuxzPCldjAsAlmyBfOsfEdy6LDeBvxwi84Bk9CzooJr/V+FGsRmMtmRA5O6XbpnaBVo6Ig==",
    434637            "requires": {
    435638                "@babel/runtime": "^7.0.0",
    436639                "@wordpress/a11y": "^2.0.2",
    437                 "@wordpress/api-fetch": "^2.2.2",
    438                 "@wordpress/block-library": "^2.1.8",
    439                 "@wordpress/blocks": "^5.1.2",
    440                 "@wordpress/components": "^5.0.2",
    441                 "@wordpress/compose": "^2.1.0",
    442                 "@wordpress/core-data": "^2.0.9",
    443                 "@wordpress/data": "^3.1.0",
    444                 "@wordpress/deprecated": "^2.0.3",
    445                 "@wordpress/editor": "^6.1.1",
    446                 "@wordpress/element": "^2.1.5",
    447                 "@wordpress/format-library": "^1.0.3",
     640                "@wordpress/api-fetch": "^2.2.3",
     641                "@wordpress/block-library": "^2.2.2",
     642                "@wordpress/blocks": "^5.3.1",
     643                "@wordpress/components": "^6.0.0",
     644                "@wordpress/compose": "^2.1.2",
     645                "@wordpress/core-data": "^2.0.12",
     646                "@wordpress/data": "^3.1.2",
     647                "@wordpress/editor": "^7.0.0",
     648                "@wordpress/element": "^2.1.7",
     649                "@wordpress/format-library": "^1.2.0",
    448650                "@wordpress/hooks": "^2.0.3",
    449651                "@wordpress/i18n": "^3.0.1",
    450652                "@wordpress/keycodes": "^2.0.3",
    451                 "@wordpress/nux": "^2.0.9",
    452                 "@wordpress/plugins": "^2.0.6",
    453                 "@wordpress/url": "^2.2.0",
    454                 "@wordpress/viewport": "^2.0.8",
     653                "@wordpress/nux": "^2.0.12",
     654                "@wordpress/plugins": "^2.0.8",
     655                "@wordpress/url": "^2.3.0",
     656                "@wordpress/viewport": "^2.0.10",
    455657                "classnames": "^2.2.5",
    456658                "lodash": "^4.17.10",
    457659                "refx": "^3.0.0"
     660            },
     661            "dependencies": {
     662                "@wordpress/compose": {
     663                    "version": "2.1.2",
     664                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     665                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     666                    "requires": {
     667                        "@babel/runtime": "^7.0.0",
     668                        "@wordpress/deprecated": "^2.0.3",
     669                        "@wordpress/element": "^2.1.7",
     670                        "@wordpress/is-shallow-equal": "^1.1.4",
     671                        "lodash": "^4.17.10"
     672                    }
     673                },
     674                "@wordpress/data": {
     675                    "version": "3.1.2",
     676                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     677                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     678                    "requires": {
     679                        "@babel/runtime": "^7.0.0",
     680                        "@wordpress/compose": "^2.1.2",
     681                        "@wordpress/deprecated": "^2.0.3",
     682                        "@wordpress/element": "^2.1.7",
     683                        "@wordpress/is-shallow-equal": "^1.1.4",
     684                        "@wordpress/redux-routine": "^3.0.3",
     685                        "equivalent-key-map": "^0.2.2",
     686                        "is-promise": "^2.1.0",
     687                        "lodash": "^4.17.10",
     688                        "redux": "^4.0.0",
     689                        "turbo-combine-reducers": "^1.0.2"
     690                    }
     691                },
     692                "@wordpress/element": {
     693                    "version": "2.1.7",
     694                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     695                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     696                    "requires": {
     697                        "@babel/runtime": "^7.0.0",
     698                        "@wordpress/escape-html": "^1.0.1",
     699                        "lodash": "^4.17.10",
     700                        "react": "^16.4.1",
     701                        "react-dom": "^16.4.1"
     702                    }
     703                },
     704                "@wordpress/plugins": {
     705                    "version": "2.0.8",
     706                    "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.8.tgz",
     707                    "integrity": "sha512-qxoUQ6QukmktKDAIvYg+tJBSihZ/gPftxXOuYhoPBADXnAUxh6s7njpWebf2sw7pJjQPYv4EG7/edOQ0bt6C9Q==",
     708                    "requires": {
     709                        "@babel/runtime": "^7.0.0",
     710                        "@wordpress/compose": "^2.1.2",
     711                        "@wordpress/element": "^2.1.7",
     712                        "@wordpress/hooks": "^2.0.3",
     713                        "lodash": "^4.17.10"
     714                    }
     715                },
     716                "@wordpress/viewport": {
     717                    "version": "2.0.10",
     718                    "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz",
     719                    "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==",
     720                    "requires": {
     721                        "@babel/runtime": "^7.0.0",
     722                        "@wordpress/compose": "^2.1.2",
     723                        "@wordpress/data": "^3.1.2",
     724                        "@wordpress/element": "^2.1.7",
     725                        "lodash": "^4.17.10"
     726                    }
     727                }
    458728            }
    459729        },
    460730        "@wordpress/editor": {
    461             "version": "6.1.1",
    462             "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-6.1.1.tgz",
    463             "integrity": "sha512-jLF2ig7G+25Amc+393swPpgGA7W5qJJHR8Nq+P4fQE4c98q4uB0buXeZBtxENscnMC8arsiucSymQMXlMkCSMA==",
     731            "version": "7.0.0",
     732            "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-7.0.0.tgz",
     733            "integrity": "sha512-aNSwKvBlU6tg9qwte+yMk8W+sgOy2HUQyoyoPJIXo0awqfDPLFrBG8I7tnicybPXxxtBNamybSf6TVB1R/kn8A==",
    464734            "requires": {
    465735                "@babel/runtime": "^7.0.0",
    466736                "@wordpress/a11y": "^2.0.2",
    467                 "@wordpress/api-fetch": "^2.2.2",
     737                "@wordpress/api-fetch": "^2.2.3",
    468738                "@wordpress/blob": "^2.1.0",
    469                 "@wordpress/blocks": "^5.1.2",
    470                 "@wordpress/components": "^5.0.2",
    471                 "@wordpress/compose": "^2.1.0",
    472                 "@wordpress/core-data": "^2.0.9",
    473                 "@wordpress/data": "^3.1.0",
    474                 "@wordpress/date": "^2.1.0",
     739                "@wordpress/blocks": "^5.3.1",
     740                "@wordpress/components": "^6.0.0",
     741                "@wordpress/compose": "^2.1.2",
     742                "@wordpress/core-data": "^2.0.12",
     743                "@wordpress/data": "^3.1.2",
     744                "@wordpress/date": "^2.2.1",
    475745                "@wordpress/deprecated": "^2.0.3",
    476                 "@wordpress/dom": "^2.0.4",
    477                 "@wordpress/element": "^2.1.5",
     746                "@wordpress/dom": "^2.0.6",
     747                "@wordpress/element": "^2.1.7",
    478748                "@wordpress/hooks": "^2.0.3",
    479749                "@wordpress/html-entities": "^2.0.2",
     
    481751                "@wordpress/is-shallow-equal": "^1.1.4",
    482752                "@wordpress/keycodes": "^2.0.3",
    483                 "@wordpress/notices": "^1.0.2",
    484                 "@wordpress/nux": "^2.0.9",
     753                "@wordpress/notices": "^1.0.4",
     754                "@wordpress/nux": "^2.0.12",
    485755                "@wordpress/token-list": "^1.0.2",
    486                 "@wordpress/url": "^2.2.0",
    487                 "@wordpress/viewport": "^2.0.8",
     756                "@wordpress/url": "^2.3.0",
     757                "@wordpress/viewport": "^2.0.10",
    488758                "@wordpress/wordcount": "^2.0.3",
    489759                "classnames": "^2.2.5",
     
    501771                "tinymce": "^4.7.2",
    502772                "traverse": "^0.6.6"
     773            },
     774            "dependencies": {
     775                "@wordpress/compose": {
     776                    "version": "2.1.2",
     777                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     778                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     779                    "requires": {
     780                        "@babel/runtime": "^7.0.0",
     781                        "@wordpress/deprecated": "^2.0.3",
     782                        "@wordpress/element": "^2.1.7",
     783                        "@wordpress/is-shallow-equal": "^1.1.4",
     784                        "lodash": "^4.17.10"
     785                    }
     786                },
     787                "@wordpress/data": {
     788                    "version": "3.1.2",
     789                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     790                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     791                    "requires": {
     792                        "@babel/runtime": "^7.0.0",
     793                        "@wordpress/compose": "^2.1.2",
     794                        "@wordpress/deprecated": "^2.0.3",
     795                        "@wordpress/element": "^2.1.7",
     796                        "@wordpress/is-shallow-equal": "^1.1.4",
     797                        "@wordpress/redux-routine": "^3.0.3",
     798                        "equivalent-key-map": "^0.2.2",
     799                        "is-promise": "^2.1.0",
     800                        "lodash": "^4.17.10",
     801                        "redux": "^4.0.0",
     802                        "turbo-combine-reducers": "^1.0.2"
     803                    }
     804                },
     805                "@wordpress/date": {
     806                    "version": "2.2.1",
     807                    "resolved": "https://registry.npmjs.org/@wordpress/date/-/date-2.2.1.tgz",
     808                    "integrity": "sha512-icDlv9HAEVx4xXveU9m93CHqH+82SqkL/Y3Po9jjuCS6K2F0OMJURdQSbcf6QJ6KmCXJzeQTq4/IrtioXOEy5w==",
     809                    "requires": {
     810                        "@babel/runtime": "^7.0.0",
     811                        "moment": "^2.22.1",
     812                        "moment-timezone": "^0.5.16"
     813                    }
     814                },
     815                "@wordpress/dom": {
     816                    "version": "2.0.6",
     817                    "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
     818                    "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
     819                    "requires": {
     820                        "@babel/runtime": "^7.0.0",
     821                        "lodash": "^4.17.10"
     822                    }
     823                },
     824                "@wordpress/element": {
     825                    "version": "2.1.7",
     826                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     827                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     828                    "requires": {
     829                        "@babel/runtime": "^7.0.0",
     830                        "@wordpress/escape-html": "^1.0.1",
     831                        "lodash": "^4.17.10",
     832                        "react": "^16.4.1",
     833                        "react-dom": "^16.4.1"
     834                    }
     835                },
     836                "@wordpress/notices": {
     837                    "version": "1.0.4",
     838                    "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.4.tgz",
     839                    "integrity": "sha512-7vjv62bx2VJLagl6+8FPkQeVtWMd4tC3GYIqX6AU4HA6RUaC0VPxWxVTHt0tFXPL7bqUkOZgICNHTyzOIzdTzA==",
     840                    "requires": {
     841                        "@babel/runtime": "^7.0.0",
     842                        "@wordpress/a11y": "^2.0.2",
     843                        "@wordpress/data": "^3.1.2",
     844                        "lodash": "^4.17.10"
     845                    }
     846                },
     847                "@wordpress/viewport": {
     848                    "version": "2.0.10",
     849                    "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz",
     850                    "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==",
     851                    "requires": {
     852                        "@babel/runtime": "^7.0.0",
     853                        "@wordpress/compose": "^2.1.2",
     854                        "@wordpress/data": "^3.1.2",
     855                        "@wordpress/element": "^2.1.7",
     856                        "lodash": "^4.17.10"
     857                    }
     858                }
    503859            }
    504860        },
    505861        "@wordpress/element": {
    506             "version": "2.1.5",
    507             "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.5.tgz",
    508             "integrity": "sha512-y567y5SZv3VXDrUw/qpO7ElrTc8/BhumAivVlpAItychfn/PdTxd2l5V1Cc91Uc2/JDoAhPCRIO23UFWX+Ehtw==",
     862            "version": "2.1.7",
     863            "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     864            "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
    509865            "requires": {
    510866                "@babel/runtime": "^7.0.0",
     
    524880        },
    525881        "@wordpress/format-library": {
    526             "version": "1.0.3",
    527             "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.0.3.tgz",
    528             "integrity": "sha512-mNo9WgS9PChhtGV8ihV3a/i1KlpIttqma/wTiaHPkoecZwYECptnMF+jYNeQ8DTP/GtvgnWhiEdnlEVQ/tknHw==",
     882            "version": "1.2.0",
     883            "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.2.0.tgz",
     884            "integrity": "sha512-FnkzmgMYrKiBdQN1iDUgqjqZTnniHsrxcg/MvQwpg+inRtXYUTh2lp4wWsn9lEO2g2t85r69GAYsC8TmmaUjEQ==",
    529885            "requires": {
    530886                "@babel/runtime": "^7.0.0",
    531                 "@wordpress/components": "^5.0.2",
    532                 "@wordpress/dom": "^2.0.4",
    533                 "@wordpress/editor": "^6.1.1",
    534                 "@wordpress/element": "^2.1.5",
     887                "@wordpress/components": "^6.0.0",
     888                "@wordpress/dom": "^2.0.6",
     889                "@wordpress/editor": "^7.0.0",
     890                "@wordpress/element": "^2.1.7",
    535891                "@wordpress/i18n": "^3.0.1",
    536892                "@wordpress/keycodes": "^2.0.3",
    537                 "@wordpress/rich-text": "^2.0.2",
    538                 "@wordpress/url": "^2.2.0"
     893                "@wordpress/rich-text": "^2.0.4",
     894                "@wordpress/url": "^2.3.0"
     895            },
     896            "dependencies": {
     897                "@wordpress/compose": {
     898                    "version": "2.1.2",
     899                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     900                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     901                    "requires": {
     902                        "@babel/runtime": "^7.0.0",
     903                        "@wordpress/deprecated": "^2.0.3",
     904                        "@wordpress/element": "^2.1.7",
     905                        "@wordpress/is-shallow-equal": "^1.1.4",
     906                        "lodash": "^4.17.10"
     907                    }
     908                },
     909                "@wordpress/data": {
     910                    "version": "3.1.2",
     911                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     912                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     913                    "requires": {
     914                        "@babel/runtime": "^7.0.0",
     915                        "@wordpress/compose": "^2.1.2",
     916                        "@wordpress/deprecated": "^2.0.3",
     917                        "@wordpress/element": "^2.1.7",
     918                        "@wordpress/is-shallow-equal": "^1.1.4",
     919                        "@wordpress/redux-routine": "^3.0.3",
     920                        "equivalent-key-map": "^0.2.2",
     921                        "is-promise": "^2.1.0",
     922                        "lodash": "^4.17.10",
     923                        "redux": "^4.0.0",
     924                        "turbo-combine-reducers": "^1.0.2"
     925                    }
     926                },
     927                "@wordpress/dom": {
     928                    "version": "2.0.6",
     929                    "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-2.0.6.tgz",
     930                    "integrity": "sha512-z1xdNASrkJc+FTdYAEDKub7pqrizAo2WFlkBmqrurwBcY/HoOTTEqg6wzq2SwvEq/rff741BCWD/JmGU7tI3AQ==",
     931                    "requires": {
     932                        "@babel/runtime": "^7.0.0",
     933                        "lodash": "^4.17.10"
     934                    }
     935                },
     936                "@wordpress/element": {
     937                    "version": "2.1.7",
     938                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     939                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     940                    "requires": {
     941                        "@babel/runtime": "^7.0.0",
     942                        "@wordpress/escape-html": "^1.0.1",
     943                        "lodash": "^4.17.10",
     944                        "react": "^16.4.1",
     945                        "react-dom": "^16.4.1"
     946                    }
     947                },
     948                "@wordpress/rich-text": {
     949                    "version": "2.0.4",
     950                    "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0.4.tgz",
     951                    "integrity": "sha512-c1DQ5xhVb8k1PV/9fTCSFHyu8SbKVzM3tCG7JX/fsUppzjV3CzljkxSYRm1GrFidRX5uqOYP+SGWi9x25Cnl1g==",
     952                    "requires": {
     953                        "@babel/runtime": "^7.0.0",
     954                        "@wordpress/data": "^3.1.2",
     955                        "@wordpress/deprecated": "^2.0.3",
     956                        "@wordpress/escape-html": "^1.0.1",
     957                        "lodash": "^4.17.10",
     958                        "rememo": "^3.0.0"
     959                    }
     960                }
    539961            }
    540962        },
     
    5961018        },
    5971019        "@wordpress/list-reusable-blocks": {
    598             "version": "1.1.7",
    599             "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.7.tgz",
    600             "integrity": "sha512-kdAmGks2p+J/z3iwOnir4kg/itqex+kRiJkH7TozzafgM2czBDh8oJ27Esy7NYAc8iu0FOfi4pIkQiZlGcKW3w==",
     1020            "version": "1.1.10",
     1021            "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-1.1.10.tgz",
     1022            "integrity": "sha512-8Jdee13/AYfEYbTXZqz9XHbhKdw0c41oa3bf3nKWqrf2DaNWxLBAT9U9VsINcfFa0+508fLf6kgRCjNpmHvNag==",
    6011023            "requires": {
    6021024                "@babel/runtime": "^7.0.0",
    603                 "@wordpress/api-fetch": "^2.2.2",
    604                 "@wordpress/components": "^5.0.2",
    605                 "@wordpress/compose": "^2.1.0",
    606                 "@wordpress/element": "^2.1.5",
     1025                "@wordpress/api-fetch": "^2.2.3",
     1026                "@wordpress/components": "^6.0.0",
     1027                "@wordpress/compose": "^2.1.2",
     1028                "@wordpress/element": "^2.1.7",
    6071029                "@wordpress/i18n": "^3.0.1",
    6081030                "lodash": "^4.17.10"
     1031            },
     1032            "dependencies": {
     1033                "@wordpress/compose": {
     1034                    "version": "2.1.2",
     1035                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     1036                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     1037                    "requires": {
     1038                        "@babel/runtime": "^7.0.0",
     1039                        "@wordpress/deprecated": "^2.0.3",
     1040                        "@wordpress/element": "^2.1.7",
     1041                        "@wordpress/is-shallow-equal": "^1.1.4",
     1042                        "lodash": "^4.17.10"
     1043                    }
     1044                },
     1045                "@wordpress/element": {
     1046                    "version": "2.1.7",
     1047                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     1048                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     1049                    "requires": {
     1050                        "@babel/runtime": "^7.0.0",
     1051                        "@wordpress/escape-html": "^1.0.1",
     1052                        "lodash": "^4.17.10",
     1053                        "react": "^16.4.1",
     1054                        "react-dom": "^16.4.1"
     1055                    }
     1056                }
    6091057            }
    6101058        },
    6111059        "@wordpress/notices": {
    612             "version": "1.0.2",
    613             "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.2.tgz",
    614             "integrity": "sha512-wvXWEuZRupmmuADY9boBm91YEUaGpE52+Xx2d1nqH8047XI+iBGsTCLSo3kzNMVrKgNVCli0wFb26KmB+KPRBw==",
     1060            "version": "1.0.4",
     1061            "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-1.0.4.tgz",
     1062            "integrity": "sha512-7vjv62bx2VJLagl6+8FPkQeVtWMd4tC3GYIqX6AU4HA6RUaC0VPxWxVTHt0tFXPL7bqUkOZgICNHTyzOIzdTzA==",
    6151063            "requires": {
    6161064                "@babel/runtime": "^7.0.0",
    6171065                "@wordpress/a11y": "^2.0.2",
    618                 "@wordpress/data": "^3.1.0",
     1066                "@wordpress/data": "^3.1.2",
    6191067                "lodash": "^4.17.10"
    6201068            }
    6211069        },
    6221070        "@wordpress/nux": {
    623             "version": "2.0.9",
    624             "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-2.0.9.tgz",
    625             "integrity": "sha512-Zna2UABmkzxdP6dTPOeDc1ki+AoGDVsqDKOFK7m3OkzcIeUcLuUAQ0a0cJYyK7EE/T4lFezYJSamJ0osThXmHA==",
     1071            "version": "2.0.12",
     1072            "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-2.0.12.tgz",
     1073            "integrity": "sha512-y97Q/plpcFPTRYqbfeucmIOnJe1jEIJwFJxJinDqifcfGhYZ4/x3JN7+9uwyatdT8oDzHUO67VoE9z2k2fPTmQ==",
    6261074            "requires": {
    6271075                "@babel/runtime": "^7.0.0",
    628                 "@wordpress/components": "^5.0.2",
    629                 "@wordpress/compose": "^2.1.0",
    630                 "@wordpress/data": "^3.1.0",
     1076                "@wordpress/components": "^6.0.0",
     1077                "@wordpress/compose": "^2.1.2",
     1078                "@wordpress/data": "^3.1.2",
    6311079                "@wordpress/deprecated": "^2.0.3",
    632                 "@wordpress/element": "^2.1.5",
     1080                "@wordpress/element": "^2.1.7",
    6331081                "@wordpress/i18n": "^3.0.1",
    6341082                "lodash": "^4.17.10",
    6351083                "rememo": "^3.0.0"
     1084            },
     1085            "dependencies": {
     1086                "@wordpress/compose": {
     1087                    "version": "2.1.2",
     1088                    "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-2.1.2.tgz",
     1089                    "integrity": "sha512-jr1bWRYx8vt4bCWB4hqR9Ve9rk/TCJ5mFRvkwEd+xTDyXG6ZMmps3HszGA6aCH7E+TCHH+bWw2qZo9sAeHVK/w==",
     1090                    "requires": {
     1091                        "@babel/runtime": "^7.0.0",
     1092                        "@wordpress/deprecated": "^2.0.3",
     1093                        "@wordpress/element": "^2.1.7",
     1094                        "@wordpress/is-shallow-equal": "^1.1.4",
     1095                        "lodash": "^4.17.10"
     1096                    }
     1097                },
     1098                "@wordpress/data": {
     1099                    "version": "3.1.2",
     1100                    "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-3.1.2.tgz",
     1101                    "integrity": "sha512-aAYgRIljpLboplTaCA7t5r+qVjE53VGMS7rLjSHFsoFxj9GYPiCCX1f/B01eKz9pf04rVdM2N4cEowyxjkhKFA==",
     1102                    "requires": {
     1103                        "@babel/runtime": "^7.0.0",
     1104                        "@wordpress/compose": "^2.1.2",
     1105                        "@wordpress/deprecated": "^2.0.3",
     1106                        "@wordpress/element": "^2.1.7",
     1107                        "@wordpress/is-shallow-equal": "^1.1.4",
     1108                        "@wordpress/redux-routine": "^3.0.3",
     1109                        "equivalent-key-map": "^0.2.2",
     1110                        "is-promise": "^2.1.0",
     1111                        "lodash": "^4.17.10",
     1112                        "redux": "^4.0.0",
     1113                        "turbo-combine-reducers": "^1.0.2"
     1114                    }
     1115                },
     1116                "@wordpress/element": {
     1117                    "version": "2.1.7",
     1118                    "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-2.1.7.tgz",
     1119                    "integrity": "sha512-+2Nbs0R3eP2gNrH0z1H5ZXTr0Lja7ZGFrtlKXa3+ZblHDBAheSB24ZEbQqZJTK1zdGw+GOU/vXPyY4ThHHJiPg==",
     1120                    "requires": {
     1121                        "@babel/runtime": "^7.0.0",
     1122                        "@wordpress/escape-html": "^1.0.1",
     1123                        "lodash": "^4.17.10",
     1124                        "react": "^16.4.1",
     1125                        "react-dom": "^16.4.1"
     1126                    }
     1127                }
    6361128            }
    6371129        },
    6381130        "@wordpress/plugins": {
    639             "version": "2.0.6",
    640             "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.6.tgz",
    641             "integrity": "sha512-6irK6QjXc414ns0P/gSMJFUBXDVxqvuHmYKGNo5lyBbmas68WwyBwV/V52wP1cBhfqo3LCpYshX+jzTm/HXMLw==",
     1131            "version": "2.0.8",
     1132            "resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-2.0.8.tgz",
     1133            "integrity": "sha512-qxoUQ6QukmktKDAIvYg+tJBSihZ/gPftxXOuYhoPBADXnAUxh6s7njpWebf2sw7pJjQPYv4EG7/edOQ0bt6C9Q==",
    6421134            "requires": {
    6431135                "@babel/runtime": "^7.0.0",
    644                 "@wordpress/compose": "^2.1.0",
    645                 "@wordpress/element": "^2.1.5",
     1136                "@wordpress/compose": "^2.1.2",
     1137                "@wordpress/element": "^2.1.7",
    6461138                "@wordpress/hooks": "^2.0.3",
    6471139                "lodash": "^4.17.10"
     
    6591151        },
    6601152        "@wordpress/rich-text": {
    661             "version": "2.0.2",
    662             "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0.2.tgz",
    663             "integrity": "sha512-86h3BEDtjegQ/SxkwtzuSUcKN7DQJN/4EZEeAF6Wg3Jg6E6wNl5y8v3ymdCYjyF8N901FN177uB9cKDrhaxXzQ==",
     1153            "version": "2.0.4",
     1154            "resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-2.0.4.tgz",
     1155            "integrity": "sha512-c1DQ5xhVb8k1PV/9fTCSFHyu8SbKVzM3tCG7JX/fsUppzjV3CzljkxSYRm1GrFidRX5uqOYP+SGWi9x25Cnl1g==",
    6641156            "requires": {
    6651157                "@babel/runtime": "^7.0.0",
    666                 "@wordpress/data": "^3.1.0",
     1158                "@wordpress/data": "^3.1.2",
    6671159                "@wordpress/deprecated": "^2.0.3",
    6681160                "@wordpress/escape-html": "^1.0.1",
     
    6911183        },
    6921184        "@wordpress/url": {
    693             "version": "2.2.0",
    694             "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.2.0.tgz",
    695             "integrity": "sha512-Y1Vjbvkcfeh9scstzArW0f4G0v1YpevZcjlPvVM77gqXPxKhoBobc/XyErUaqWbozji6L2YE/baP/bYSOaswug==",
     1185            "version": "2.3.0",
     1186            "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-2.3.0.tgz",
     1187            "integrity": "sha512-Uzl6RZnPZZHM67Z6Rs4lHgGY7dJO6OHjWrcw5/Pnoy/WQGDAg1vl5lfTbRXSNKsubOsbvB9IF8qTwVoPEl/ezA==",
    6961188            "requires": {
    6971189                "@babel/runtime": "^7.0.0",
     
    7001192        },
    7011193        "@wordpress/viewport": {
    702             "version": "2.0.8",
    703             "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.8.tgz",
    704             "integrity": "sha512-3gSZ381WHMGR4ZzfWRmEh2NL2tA06ukUD8H6LoNCxuyeHkQwUgqBrKc8c6CLSoCkS7aNarSvlqEqYmrKqr1jcA==",
     1194            "version": "2.0.10",
     1195            "resolved": "https://registry.npmjs.org/@wordpress/viewport/-/viewport-2.0.10.tgz",
     1196            "integrity": "sha512-G+7VgUQkRu9JwrsiBvTs/CS87vs6wcxCknr2lWU14rk55FWpxg4fhduRHUcBYEk7E+bvOHV1TgnAspBncu1aYg==",
    7051197            "requires": {
    7061198                "@babel/runtime": "^7.0.0",
    707                 "@wordpress/compose": "^2.1.0",
    708                 "@wordpress/data": "^3.1.0",
    709                 "@wordpress/element": "^2.1.5",
     1199                "@wordpress/compose": "^2.1.2",
     1200                "@wordpress/data": "^3.1.2",
     1201                "@wordpress/element": "^2.1.7",
    7101202                "lodash": "^4.17.10"
    7111203            }
     
    28853377        },
    28863378        "clipboard": {
    2887             "version": "2.0.1",
    2888             "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.1.tgz",
    2889             "integrity": "sha512-7yhQBmtN+uYZmfRjjVjKa0dZdWuabzpSKGtyQZN+9C8xlC788SSJjOHWh7tzurfwTqTD5UDYAhIv5fRJg3sHjQ==",
     3379            "version": "2.0.2",
     3380            "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.2.tgz",
     3381            "integrity": "sha512-kr53YUunMs26TNMZ+O++poRqAVRFskEi7xrqJwMWrTPMOF5pfXkRz8tDw52lKdfkF8b81G8vS6hIR952JgGmIw==",
    28903382            "requires": {
    28913383                "good-listener": "^1.2.2",
     
    1124611738        },
    1124711739        "re-resizable": {
    11248             "version": "4.9.2",
    11249             "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9.2.tgz",
    11250             "integrity": "sha512-cmgy8mQO9hpiwMklqHpnjlOzSVKTNi3szgj45gauQ22NRWEpRROx3ms+a7TgcdoYlmOzMGSv4Py5pNd63XmVdg=="
     11740            "version": "4.9.3",
     11741            "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-4.9.3.tgz",
     11742            "integrity": "sha512-JKzmZdUAYWs85YErkmZNB7hjGR9qUOHFUZUtEplZlEZBFHRguiWck5J+HFTy/NjlMJtqQsYPQq57nQAO2BuRRg=="
    1125111743        },
    1125211744        "react": {
     
    1270013192        },
    1270113193        "showdown": {
    12702             "version": "1.8.7",
    12703             "resolved": "https://registry.npmjs.org/showdown/-/showdown-1.8.7.tgz",
    12704             "integrity": "sha512-S1wyj80vu2lZZ7xm2ijr6e3VxHxPu8WfhTH7R6nelbIQeyl2g0ioEohS0YtFim8yAFMbQ8sQuXxiKvr10rKbTg==",
     13194            "version": "1.9.0",
     13195            "resolved": "https://registry.npmjs.org/showdown/-/showdown-1.9.0.tgz",
     13196            "integrity": "sha512-x7xDCRIaOlicbC57nMhGfKamu+ghwsdVkHMttyn+DelwzuHOx4OHCVL/UW/2QOLH7BxfCcCCVVUix3boKXJKXQ==",
    1270513197            "requires": {
    1270613198                "yargs": "^10.0.3"
  • branches/5.0/package.json

    r43861 r43884  
    5252        "@babel/polyfill": "^7.0.0",
    5353        "@wordpress/a11y": "^2.0.2",
    54         "@wordpress/api-fetch": "^2.2.2",
     54        "@wordpress/annotations": "^1.0.0",
     55        "@wordpress/api-fetch": "^2.2.3",
    5556        "@wordpress/autop": "^2.0.2",
    5657        "@wordpress/blob": "^2.1.0",
    57         "@wordpress/block-library": "^2.1.8",
    58         "@wordpress/block-serialization-default-parser": "^1.0.2",
    59         "@wordpress/blocks": "^5.1.2",
    60         "@wordpress/components": "^5.0.2",
    61         "@wordpress/compose": "^2.1.0",
    62         "@wordpress/core-data": "^2.0.9",
    63         "@wordpress/data": "^3.1.0",
    64         "@wordpress/date": "^2.1.0",
     58        "@wordpress/block-library": "^2.2.2",
     59        "@wordpress/block-serialization-default-parser": "^2.0.0",
     60        "@wordpress/blocks": "^5.3.1",
     61        "@wordpress/components": "^6.0.0",
     62        "@wordpress/compose": "^2.1.2",
     63        "@wordpress/core-data": "^2.0.12",
     64        "@wordpress/data": "^3.1.2",
     65        "@wordpress/date": "^2.2.1",
    6566        "@wordpress/deprecated": "^2.0.3",
    66         "@wordpress/dom": "^2.0.4",
     67        "@wordpress/dom": "^2.0.6",
    6768        "@wordpress/dom-ready": "^2.0.2",
    68         "@wordpress/edit-post": "^2.0.3",
    69         "@wordpress/editor": "^6.1.1",
    70         "@wordpress/element": "^2.1.5",
     69        "@wordpress/edit-post": "^3.0.0",
     70        "@wordpress/editor": "^7.0.0",
     71        "@wordpress/element": "^2.1.7",
    7172        "@wordpress/escape-html": "^1.0.1",
    72         "@wordpress/format-library": "^1.0.3",
     73        "@wordpress/format-library": "^1.2.0",
    7374        "@wordpress/hooks": "^2.0.3",
    7475        "@wordpress/html-entities": "^2.0.2",
     
    7677        "@wordpress/is-shallow-equal": "^1.1.4",
    7778        "@wordpress/keycodes": "^2.0.3",
    78         "@wordpress/list-reusable-blocks": "^1.1.7",
    79         "@wordpress/notices": "^1.0.2",
    80         "@wordpress/nux": "^2.0.9",
    81         "@wordpress/plugins": "^2.0.6",
     79        "@wordpress/list-reusable-blocks": "^1.1.10",
     80        "@wordpress/notices": "^1.0.4",
     81        "@wordpress/nux": "^2.0.12",
     82        "@wordpress/plugins": "^2.0.8",
    8283        "@wordpress/redux-routine": "^3.0.3",
    83         "@wordpress/rich-text": "^2.0.2",
     84        "@wordpress/rich-text": "^2.0.4",
    8485        "@wordpress/shortcode": "^2.0.2",
    8586        "@wordpress/token-list": "^1.0.2",
    86         "@wordpress/url": "^2.2.0",
    87         "@wordpress/viewport": "^2.0.8",
     87        "@wordpress/url": "^2.3.0",
     88        "@wordpress/viewport": "^2.0.10",
    8889        "@wordpress/wordcount": "^2.0.3",
    8990        "element-closest": "^2.0.2",
  • branches/5.0/src/wp-admin/edit-form-blocks.php

    r43882 r43884  
    104104    // Override "(Auto Draft)" new post default title with empty string, or filtered value.
    105105    $initial_edits = array(
    106         'title'   => array(
    107             'raw' => $post->post_title,
    108         ),
    109         'content' => array(
    110             'raw' => $post->post_content,
    111         ),
    112         'excerpt' => array(
    113             'raw' => $post->post_excerpt,
    114         ),
     106        'title'   => $post->post_title,
     107        'content' => $post->post_content,
     108        'excerpt' => $post->post_excerpt,
    115109    );
    116110}
     
    203197
    204198// Image sizes.
    205 $image_sizes   = get_intermediate_image_sizes();
    206 $image_sizes[] = 'full';
    207199
    208200/** This filter is documented in wp-admin/includes/media.php */
     
    218210
    219211$available_image_sizes = array();
    220 foreach ( $image_sizes as $image_size_slug ) {
     212foreach ( $image_size_names as $image_size_slug => $image_size_name ) {
    221213    $available_image_sizes[] = array(
    222214        'slug' => $image_size_slug,
    223         'name' => isset( $image_size_names[ $image_size_slug ] ) ? $image_size_names[ $image_size_slug ] : $image_size_slug,
     215        'name' => $image_size_name,
    224216    );
    225217}
     
    260252 * @since 5.0.0
    261253 *
    262  * @param string  $text Placeholder text. Default 'Write your story'.
     254 * @param string  $text Placeholder text. Default 'Start writing or type / to choose a block'.
    263255 * @param WP_Post $post Post object.
    264256 */
    265 $body_placeholder = apply_filters( 'write_your_story', __( 'Write your story' ), $post );
     257$body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post );
    266258
    267259$editor_settings = array(
     
    280272    'allowedMimeTypes'       => get_allowed_mime_types(),
    281273    'styles'                 => $styles,
    282     'availableImageSizes'    => $available_image_sizes,
     274    'imageSizes'             => $available_image_sizes,
    283275    'postLock'               => $lock_details,
    284276    'postLockUtils'          => array(
  • branches/5.0/src/wp-includes/blocks.php

    r43883 r43884  
    115115
    116116/**
    117  * Remove all dynamic blocks from the given content.
    118  *
    119  * @since 5.0.0
    120  *
    121  * @param string $content Content of the current post.
    122  * @return string
    123  */
    124 function strip_dynamic_blocks( $content ) {
    125     return _recurse_strip_dynamic_blocks( parse_blocks( $content ) );
    126 }
    127 
    128 /**
    129  * Helper function for strip_dynamic_blocks(), to recurse through the block tree.
    130  *
    131  * @since 5.0.0
    132  * @access private
    133  *
    134  * @param array $blocks Array of blocks from parse_blocks().
    135  * @return string HTML from the non-dynamic blocks.
    136  */
    137 function _recurse_strip_dynamic_blocks( $blocks ) {
    138     $clean_content  = '';
    139     $dynamic_blocks = get_dynamic_block_names();
    140 
    141     foreach ( $blocks as $block ) {
    142         if ( ! in_array( $block['blockName'], $dynamic_blocks ) ) {
    143             if ( $block['innerBlocks'] ) {
    144                 $clean_content .= _recurse_strip_dynamic_blocks( $block['innerBlocks'] );
    145             } else {
    146                 $clean_content .= $block['innerHTML'];
    147             }
    148         }
    149     }
    150 
    151     return $clean_content;
     117 * Parses blocks out of a content string, and renders those appropriate for the excerpt.
     118 *
     119 * As the excerpt should be a small string of text relevant to the full post content,
     120 * this function renders the blocks that are most likely to contain such text.
     121 *
     122 * @since 5.0.0
     123 *
     124 * @param string $content The content to parse.
     125 * @return string The parsed and filtered content.
     126 */
     127function excerpt_remove_blocks( $content ) {
     128    $allowed_blocks = array(
     129        // Classic blocks have their blockName set to null.
     130        null,
     131        'core/columns',
     132        'core/freeform',
     133        'core/heading',
     134        'core/html',
     135        'core/list',
     136        'core/media-text',
     137        'core/paragraph',
     138        'core/preformatted',
     139        'core/pullquote',
     140        'core/quote',
     141        'core/table',
     142        'core/verse',
     143    );
     144    /**
     145     * Filters the list of blocks that can contribute to the excerpt.
     146     *
     147     * If a dynamic block is added to this list, it must not generate another
     148     * excerpt, as this will cause an infinite loop to occur.
     149     *
     150     * @since 4.4.0
     151     *
     152     * @param array $allowed_blocks The list of allowed blocks.
     153     */
     154    $allowed_blocks = apply_filters( 'excerpt_allowed_blocks', $allowed_blocks );
     155    $blocks = parse_blocks( $content );
     156    $output = '';
     157     foreach ( $blocks as $block ) {
     158        if ( in_array( $block['blockName'], $allowed_blocks, true ) ) {
     159            $output .= render_block( $block );
     160        }
     161    }
     162     return $output;
     163}
     164
     165/**
     166 * Renders a single block into a HTML string.
     167 *
     168 * @since 5.0.0
     169 *
     170 * @global WP_Post $post The post to edit.
     171 *
     172 * @param array $block A single parsed block object.
     173 * @return string String of rendered HTML.
     174 */
     175function render_block( $block ) {
     176    global $post;
     177
     178    $block_type    = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
     179    $is_dynamic    = $block['blockName'] && null !== $block_type && $block_type->is_dynamic();
     180    $block_content = '';
     181    $index         = 0;
     182
     183    foreach ( $block['innerContent'] as $chunk ) {
     184        $block_content .= is_string( $chunk ) ? $chunk : render_block( $block['innerBlocks'][ $index++ ] );
     185    }
     186
     187    if ( $is_dynamic ) {
     188        $attributes    = is_array( $block['attrs'] ) ? (array) $block['attrs'] : array();
     189        $global_post   = $post;
     190        $block_content = $block_type->render( $attributes, $block_content );
     191        $post          = $global_post;
     192    }
     193
     194    /**
     195     * Filters the content of a single block.
     196     *
     197     * @since 5.0.0
     198     *
     199     * @param string $block_content The block content about to be appended.
     200     * @param array  $block         The full block, including name and attributes.
     201     */
     202    return apply_filters( 'render_block', $block_content, $block );
    152203}
    153204
     
    157208 * @since 5.0.0
    158209 *
    159  * @param  string $content Post content.
    160  * @return array  Array of parsed block objects.
     210 * @param string $content Post content.
     211 * @return array Array of parsed block objects.
    161212 */
    162213function parse_blocks( $content ) {
    163     /*
    164      * If there are no blocks in the content, return a single block, rather
    165      * than wasting time trying to parse the string.
    166      */
    167     if ( ! has_blocks( $content ) ) {
    168         return array(
    169             array(
    170                 'blockName'   => null,
    171                 'attrs'       => array(),
    172                 'innerBlocks' => array(),
    173                 'innerHTML'   => $content,
    174             ),
    175         );
    176     }
    177 
    178214    /**
    179215     * Filter to allow plugins to replace the server-side block parser
     
    207243
    208244    $blocks = parse_blocks( $content );
    209     return _recurse_do_blocks( $blocks, $blocks );
     245    $output = '';
     246
     247    foreach ( $blocks as $block ) {
     248        $output .= render_block( $block );
     249    }
     250
     251    return $output;
    210252}
    211253
     
    232274
    233275/**
    234  * Helper function for do_blocks(), to recurse through the block tree.
    235  *
    236  * @since 5.0.0
    237  * @access private
    238  *
    239  * @param array $blocks     Array of blocks from parse_blocks().
    240  * @param array $all_blocks The top level array of blocks.
    241  * @return string The block HTML.
    242  */
    243 function _recurse_do_blocks( $blocks, $all_blocks ) {
    244     global $post;
    245 
    246     /*
    247      * Back up global post, to restore after render callback.
    248      * Allows callbacks to run new WP_Query instances without breaking the global post.
    249      */
    250     $global_post = $post;
    251 
    252     $rendered_content = '';
    253     $dynamic_blocks   = get_dynamic_block_names();
    254 
    255     foreach ( $blocks as $block ) {
    256         $block = (array) $block;
    257         if ( in_array( $block['blockName'], $dynamic_blocks ) ) {
    258             // Find registered block type. We can assume it exists since we use the
    259             // `get_dynamic_block_names` function as a source for pattern matching.
    260             $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
    261 
    262             // Replace dynamic block with server-rendered output.
    263             $block_content = $block_type->render( (array) $block['attrs'], $block['innerHTML'] );
    264         } else if ( $block['innerBlocks'] ) {
    265             $block_content = _recurse_do_blocks( $block['innerBlocks'], $blocks );
    266         } else {
    267             $block_content = $block['innerHTML'];
    268         }
    269 
    270         /**
    271          * Filters the content of a single block.
    272          *
    273          * During the_content, each block is parsed and added to the output individually. This filter allows
    274          * that content to be altered immediately before it's appended.
    275          *
    276          * @since 5.0.0
    277          *
    278          * @param string $block_content The block content about to be appended.
    279          * @param array  $block         The full block, including name and attributes.
    280          * @param array  $all_blocks    The array of all blocks being processed.
    281          */
    282         $rendered_content .= apply_filters( 'do_block', $block_content, $block, $all_blocks );
    283 
    284         // Restore global $post.
    285         $post = $global_post;
    286     }
    287 
    288     // Strip remaining block comment demarcations.
    289     $rendered_content = preg_replace( '/<!--\s+\/?wp:.*?-->/m', '', $rendered_content );
    290 
    291     return $rendered_content;
    292 }
    293 
    294 /**
    295276 * Returns the current version of the block format that the content string is using.
    296277 *
  • branches/5.0/src/wp-includes/class-wp-block-parser.php

    r43752 r43884  
    4949    public $innerHTML;
    5050
    51     function __construct( $name, $attrs, $innerBlocks, $innerHTML ) {
     51    /**
     52     * List of string fragments and null markers where inner blocks were found
     53     *
     54     * @example array(
     55     *   'innerHTML'    => 'BeforeInnerAfter',
     56     *   'innerBlocks'  => array( block, block ),
     57     *   'innerContent' => array( 'Before', null, 'Inner', null, 'After' ),
     58     * )
     59     *
     60     * @since 4.2.0
     61     * @var array
     62     */
     63    public $innerContent;
     64
     65    function __construct( $name, $attrs, $innerBlocks, $innerHTML, $innerContent ) {
    5266        $this->blockName   = $name;
    5367        $this->attrs       = $attrs;
    5468        $this->innerBlocks = $innerBlocks;
    5569        $this->innerHTML   = $innerHTML;
     70        $this->innerContent = $innerContent;
    5671    }
    5772}
     
    160175
    161176    /**
     177     * Empty associative array, here due to PHP quirks
     178     *
     179     * @since 4.4.0
     180     * @var array empty associative array
     181     */
     182    public $empty_attrs;
     183
     184    /**
    162185     * Parses a document and returns a list of block structures
    163186     *
     
    172195     */
    173196    function parse( $document ) {
    174         $this->document = $document;
    175         $this->offset   = 0;
    176         $this->output   = array();
    177         $this->stack    = array();
     197        $this->document    = $document;
     198        $this->offset      = 0;
     199        $this->output      = array();
     200        $this->stack       = array();
     201        $this->empty_attrs = json_decode( '{}', true );
    178202
    179203        do {
     
    253277                    }
    254278
    255                     $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '' );
     279                    $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
    256280                    $this->offset = $start_offset + $token_length;
    257281                    return true;
     
    260284                // otherwise we found an inner block
    261285                $this->add_inner_block(
    262                     new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),
     286                    new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
    263287                    $start_offset,
    264288                    $token_length
     
    270294                // track all newly-opened blocks on the stack
    271295                array_push( $this->stack, new WP_Block_Parser_Frame(
    272                     new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),
     296                    new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
    273297                    $start_offset,
    274298                    $token_length,
     
    307331                 */
    308332                $stack_top = array_pop( $this->stack );
    309 
    310333                $html = substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
    311                 if ( $stack_top->block->innerBlocks ) {
    312                     $stack_top->block->innerBlocks[] = (array) $this->freeform( $html );
    313                 } else {
    314                     $stack_top->block->innerHTML = $html;
    315                 }
    316 
     334                $stack_top->block->innerHTML .= $html;
     335                $stack_top->block->innerContent[] = $html;
    317336                $stack_top->prev_offset = $start_offset + $token_length;
    318337
     
    355374         */
    356375        $has_match = preg_match(
    357             '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:(?!}\s+-->).)+?}\s+)?(?<void>\/)?-->/s',
     376            '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:[^}]+|}+(?=})|(?!}\s+-->).)*?}\s+)?(?<void>\/)?-->/s',
    358377            $this->document,
    359378            $matches,
     
    383402        $attrs = $has_attrs
    384403            ? json_decode( $matches[ 'attrs' ][ 0 ], /* as-associative */ true )
    385             : json_decode( '{}', /* don't ask why, just verify in PHP */ false );
     404            : $this->empty_attrs;
    386405
    387406        /*
     
    413432     * @return WP_Block_Parser_Block freeform block object
    414433     */
    415     static function freeform( $innerHTML ) {
    416         return new WP_Block_Parser_Block( null, array(), array(), $innerHTML );
     434    function freeform( $innerHTML ) {
     435        return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $innerHTML, array( $innerHTML ) );
    417436    }
    418437
     
    448467    function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) {
    449468        $parent = $this->stack[ count( $this->stack ) - 1 ];
    450         $parent->block->innerBlocks[] = (array) $this->freeform( substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset ) );
    451469        $parent->block->innerBlocks[] = (array) $block;
     470        $html = substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
     471
     472        if ( ! empty( $html ) ) {
     473            $parent->block->innerHTML .= $html;
     474            $parent->block->innerContent[] = $html;
     475        }
     476
     477        $parent->block->innerContent[] = null;
    452478        $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;
    453479    }
     
    468494            : substr( $this->document, $prev_offset );
    469495
    470         if ( $stack_top->block->innerBlocks ) {
    471             $stack_top->block->innerBlocks[] = (array) $this->freeform( $html );
    472         } else {
    473             $stack_top->block->innerHTML = $html;
     496        if ( ! empty( $html ) ) {
     497            $stack_top->block->innerHTML .= $html;
     498            $stack_top->block->innerContent[] = $html;
    474499        }
    475500
  • branches/5.0/src/wp-includes/formatting.php

    r43879 r43884  
    33723372
    33733373        $text = strip_shortcodes( $text );
    3374         $text = strip_dynamic_blocks( $text );
     3374        $text = excerpt_remove_blocks( $text );
    33753375
    33763376        /** This filter is documented in wp-includes/post-template.php */
  • branches/5.0/src/wp-includes/script-loader.php

    r43878 r43884  
    8686        'wp-polyfill-node-contains',
    8787        'wp-polyfill-element-closest',
    88         'wp-polyfill-ecmascript',
     88        'wp-polyfill',
    8989    );
    9090
     
    100100    }
    101101
    102     $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill-ecmascript' ) );
     102    $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) );
    103103    did_action( 'init' ) && $scripts->add_data(
    104104        'wp-polyfill',
     
    167167        'api-fetch' => array( 'wp-polyfill', 'wp-hooks', 'wp-i18n', 'wp-url' ),
    168168        'a11y' => array( 'wp-dom-ready', 'wp-polyfill' ),
     169        'annotations' => array(
     170            'wp-data',
     171            'wp-hooks',
     172            'wp-i18n',
     173            'wp-polyfill',
     174            'wp-rich-text',
     175        ),
    169176        'autop' => array( 'wp-polyfill' ),
    170177        'blob' => array( 'wp-polyfill' ),
     
    260267            'wp-core-data',
    261268            'wp-data',
    262             'wp-deprecated',
    263269            'wp-dom-ready',
    264270            'wp-editor',
     
    335341            'wp-a11y',
    336342            'wp-data',
    337             'wp-polyfill-ecmascript',
     343            'wp-polyfill',
    338344        ),
    339345        'nux' => array(
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "<!-- wp:core/4-invalid /-->\n"
     6        "innerHTML": "<!-- wp:core/4-invalid /-->\n",
     7        "innerContent": [
     8            "<!-- wp:core/4-invalid /-->\n"
     9        ]
    710    }
    811]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.server.html

    r43752 r43884  
    1 
     1<!-- wp:core/4-invalid /-->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": ""
     9        "innerHTML": "",
     10        "innerContent": []
    1011    }
    1112]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": ""
     9        "innerHTML": "",
     10        "innerContent": []
    1011    }
    1112]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n    <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n"
     8        "innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n    <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n",
     9        "innerContent": [ "\n<figure class=\"wp-block-audio alignright\">\n    <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n" ]
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": ""
     8        "innerHTML": "",
     9        "innerContent": []
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n"
     8        "innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n",
     9        "innerContent": [ "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n" ]
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json

    r43751 r43884  
    55        "isValid": true,
    66        "attributes": {
    7             "showPostCounts": false,
    87            "displayAsDropdown": false,
    9             "showHierarchy": false
     8            "showHierarchy": false,
     9            "showPostCounts": false
    1010        },
    1111        "innerBlocks": [],
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json

    r43751 r43884  
    88        },
    99        "innerBlocks": [],
    10         "innerHTML": ""
     10        "innerHTML": "",
     11        "innerContent": []
    1112    },
    1213    {
     
    1415        "attrs": {},
    1516        "innerBlocks": [],
    16         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [ "\n" ]
    1719    }
    1820]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n"
     6        "innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n",
     7        "innerContent": [ "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json

    r43752 r43884  
    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]
  • 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]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n    <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n"
     9        "innerHTML": "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n    <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n",
     10        "innerContent": [
     11            "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n    <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n"
     12        ]
    1013    },
    1114    {
     
    1316        "attrs": {},
    1417        "innerBlocks": [],
    15         "innerHTML": "\n"
     18        "innerHTML": "\n",
     19        "innerContent": [
     20            "\n"
     21        ]
    1622    }
    1723]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<figure class=\"wp-block-embed\">\n    <div class=\"wp-block-embed__wrapper\">\n        https://example.com/\n    </div>\n    <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n"
     8        "innerHTML": "\n<figure class=\"wp-block-embed\">\n    <div class=\"wp-block-embed__wrapper\">\n        https://example.com/\n    </div>\n    <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n",
     9        "innerContent": [
     10            "\n<figure class=\"wp-block-embed\">\n    <div class=\"wp-block-embed__wrapper\">\n        https://example.com/\n    </div>\n    <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html

    r43751 r43884  
    11<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} -->
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="6546">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33<!-- /wp:file -->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json

    r43751 r43884  
    1414        },
    1515        "innerBlocks": [],
    16         "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"6546\">Download</a></div>"
     16        "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>"
    1717    }
    1818]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json

    r43751 r43884  
    88        },
    99        "innerBlocks": [],
    10         "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"6546\">Download</a></div>\n"
     10        "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n",
     11        "innerContent": [
     12            "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n"
     13        ]
    1114    },
    1215    {
     
    1417        "attrs": {},
    1518        "innerBlocks": [],
    16         "innerHTML": "\n"
     19        "innerHTML": "\n",
     20        "innerContent": [
     21            "\n"
     22        ]
    1723    }
    1824]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html

    r43751 r43884  
    11<!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} -->
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="6546">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33<!-- /wp:file -->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.server.html

    r43752 r43884  
    11
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="6546">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json

    r43751 r43884  
    88        },
    99        "innerBlocks": [],
    10         "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n"
     10        "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n",
     11        "innerContent": [
     12            "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n"
     13        ]
    1114    },
    1215    {
     
    1417        "attrs": {},
    1518        "innerBlocks": [],
    16         "innerHTML": "\n"
     19        "innerHTML": "\n",
     20        "innerContent": [
     21            "\n"
     22        ]
    1723    }
    1824]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html

    r43751 r43884  
    11<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} -->
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33<!-- /wp:file -->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json

    r43751 r43884  
    1212        },
    1313        "innerBlocks": [],
    14         "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"\">Download</a></div>"
     14        "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>"
    1515    }
    1616]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json

    r43751 r43884  
    88        },
    99        "innerBlocks": [],
    10         "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"\">Download</a></div>\n"
     10        "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n",
     11        "innerContent": [
     12            "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download>Download</a></div>\n"
     13        ]
    1114    },
    1215    {
     
    1417        "attrs": {},
    1518        "innerBlocks": [],
    16         "innerHTML": "\n"
     19        "innerHTML": "\n",
     20        "innerContent": [
     21            "\n"
     22        ]
    1723    }
    1824]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html

    r43751 r43884  
    11<!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} -->
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33<!-- /wp:file -->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.server.html

    r43752 r43884  
    11
    2 <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="">Download</a></div>
     2<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download>Download</a></div>
    33
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
     6        "innerHTML": "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n",
     7        "innerContent": [
     8            "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json

    r43751 r43884  
    11[
    22    {
     3        "blockName": null,
    34        "attrs": {},
    4         "blockName": null,
    55        "innerBlocks": [],
    6         "innerHTML": "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
     6        "innerHTML": "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n",
     7        "innerContent": [
     8            "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
     9        ]
    710    }
    811]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
     6        "innerHTML": "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n",
     7        "innerContent": [
     8            "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
     8        "innerHTML": "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n",
     9        "innerContent": [
     10            "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<h2>The <em>Inserter</em> Tool</h2>\n"
     6        "innerHTML": "\n<h2>The <em>Inserter</em> Tool</h2>\n",
     7        "innerContent": [
     8            "\n<h2>The <em>Inserter</em> Tool</h2>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n"
     6        "innerHTML": "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n",
     7        "innerContent": [
     8            "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n"
     6        "innerHTML": "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n",
     7        "innerContent": [
     8            "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n"
     6        "innerHTML": "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n",
     7        "innerContent": [
     8            "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     8        "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
     9        "innerContent": [
     10            "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the &quot;really wide&quot; button on the image toolbar.</figcaption></figure></div>\n"
     8        "innerHTML": "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the &quot;really wide&quot; button on the image toolbar.</figcaption></figure></div>\n",
     9        "innerContent": [
     10            "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the &quot;really wide&quot; button on the image toolbar.</figcaption></figure></div>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     8        "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
     9        "innerContent": [
     10            "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     8        "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
     9        "innerContent": [
     10            "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
     11        ]
    912    },
    1013    {
     
    1215        "attrs": {},
    1316        "innerBlocks": [],
    14         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1521    }
    1622]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "<!-- wp:core/invalid-Capitals /-->\n"
     6        "innerHTML": "<!-- wp:core/invalid-Capitals /-->\n",
     7        "innerContent": [
     8            "<!-- wp:core/invalid-Capitals /-->\n"
     9        ]
    710    }
    811]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.server.html

    r43752 r43884  
    1 
     1<!-- wp:core/invalid-Capitals /-->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "<!-- wp:core/invalid-$special /-->\n"
     6        "innerHTML": "<!-- wp:core/invalid-$special /-->\n",
     7        "innerContent": [
     8            "<!-- wp:core/invalid-$special /-->\n"
     9        ]
    710    }
    811]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.server.html

    r43752 r43884  
    1 
     1<!-- wp:core/invalid-$special /-->
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json

    r43751 r43884  
    88        },
    99        "innerBlocks": [],
    10         "innerHTML": ""
     10        "innerHTML": "",
     11        "innerContent": []
    1112    },
    1213    {
     
    1415        "attrs": {},
    1516        "innerBlocks": [],
    16         "innerHTML": "\n"
     17        "innerHTML": "\n",
     18        "innerContent": [
     19            "\n"
     20        ]
    1721    }
    1822]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": ""
     9        "innerHTML": "",
     10        "innerContent": []
    1011    },
    1112    {
     
    1314        "attrs": {},
    1415        "innerBlocks": [],
    15         "innerHTML": "\n"
     16        "innerHTML": "\n",
     17        "innerContent": [
     18            "\n"
     19        ]
    1620    }
    1721]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": ""
     9        "innerHTML": "",
     10        "innerContent": []
    1011    },
    1112    {
     
    1314        "attrs": {},
    1415        "innerBlocks": [],
    15         "innerHTML": "\n"
     16        "innerHTML": "\n",
     17        "innerContent": [
     18            "\n"
     19        ]
    1620    }
    1721]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n"
     6        "innerHTML": "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n",
     7        "innerContent": [
     8            "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n"
     9        ]
    710    },
    811    {
     
    1013        "attrs": {},
    1114        "innerBlocks": [],
    12         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [
     17            "\n"
     18        ]
    1319    }
    1420]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json

    r43751 r43884  
    55        "isValid": true,
    66        "attributes": {
    7             "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->",
    8             "originalName": "unregistered/example",
    9             "originalUndelimitedContent": "<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
     7            "originalName": "unregistered/example",
     8            "originalUndelimitedContent": "<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>",
     9            "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->"
    1010        },
    1111        "innerBlocks": [],
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json

    r43751 r43884  
    33        "blockName": "unregistered/example",
    44        "attrs": {
    5             "attr1": "One",
    6             "attr2": "Two"
    7         },
     5            "attr1": "One",
     6            "attr2": "Two"
     7        },
    88        "innerBlocks": [],
    9         "innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
     9        "innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n",
     10        "innerContent": [ "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" ]
    1011    },
    1112    {
    12         "blockName": null,
    13         "attrs": {},
    14         "innerBlocks": [],
    15         "innerHTML": "\n"
     13        "blockName": null,
     14        "attrs": {},
     15        "innerBlocks": [],
     16        "innerHTML": "\n",
     17        "innerContent": [ "\n" ]
    1618    }
    1719]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<!--more-->\n"
     6        "innerHTML": "\n<!--more-->\n",
     7        "innerContent": [ "\n<!--more-->\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json

    r43751 r43884  
    77        },
    88        "innerBlocks": [],
    9         "innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n"
     9        "innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n",
     10        "innerContent": [ "\n<!--more Continue Reading-->\n<!--noteaser-->\n" ]
    1011    },
    1112    {
     
    1314        "attrs": {},
    1415        "innerBlocks": [],
    15         "innerHTML": "\n"
     16        "innerHTML": "\n",
     17        "innerContent": [ "\n" ]
    1618    }
    1719]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<!--nextpage-->\n"
     6        "innerHTML": "\n<!--nextpage-->\n",
     7        "innerContent": [ "\n<!--nextpage-->\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n"
     8        "innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n",
     9        "innerContent": [ "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n" ]
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\nUnwrapped is <em>still</em> valid.\n"
     6        "innerHTML": "\nUnwrapped is <em>still</em> valid.\n",
     7        "innerContent": [ "\nUnwrapped is <em>still</em> valid.\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n"
     6        "innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n",
     7        "innerContent": [ "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n    <p>Testing pullquote block...</p><cite>...with a caption</cite>\n    </blockquote>\n</figure>\n"
     6        "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n    <p>Testing pullquote block...</p><cite>...with a caption</cite>\n    </blockquote>\n</figure>\n",
     7        "innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n    <p>Testing pullquote block...</p><cite>...with a caption</cite>\n    </blockquote>\n</figure>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n        <p>Paragraph <strong>one</strong></p>\n        <p>Paragraph two</p>\n        <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n"
     6        "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n        <p>Paragraph <strong>one</strong></p>\n        <p>Paragraph two</p>\n        <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n",
     7        "innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n    <blockquote>\n        <p>Paragraph <strong>one</strong></p>\n        <p>Paragraph two</p>\n        <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n"
     6        "innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n",
     7        "innerContent": [ "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n"
     8        "innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n",
     9        "innerContent": [ "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n" ]
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<hr class=\"wp-block-separator\" />\n"
     6        "innerHTML": "\n<hr class=\"wp-block-separator\" />\n",
     7        "innerContent": [ "\n<hr class=\"wp-block-separator\" />\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n[gallery ids=\"238,338\"]\n"
     6        "innerHTML": "\n[gallery ids=\"238,338\"]\n",
     7        "innerContent": [ "\n[gallery ids=\"238,338\"]\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n"
     6        "innerHTML": "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n",
     7        "innerContent": [ "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n"
     6        "innerHTML": "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n",
     7        "innerContent": [ "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>&hellip;</td><td>&hellip;</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n"
     6        "innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>&hellip;</td><td>&hellip;</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n",
     7        "innerContent": [ "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>&hellip;</td><td>&hellip;</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json

    r43751 r43884  
    66        },
    77        "innerBlocks": [],
    8         "innerHTML": "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n    <div class=\"wp-block-column\">\n        <p>One</p>\n    </div>\n    <div class=\"wp-block-column\">\n        <p>Two</p>\n    </div>\n</div>\n"
     8        "innerHTML": "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n    <div class=\"wp-block-column\">\n        <p>One</p>\n    </div>\n    <div class=\"wp-block-column\">\n        <p>Two</p>\n    </div>\n</div>\n",
     9        "innerContent": [ "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n    <div class=\"wp-block-column\">\n        <p>One</p>\n    </div>\n    <div class=\"wp-block-column\">\n        <p>Two</p>\n    </div>\n</div>\n" ]
    910    },
    1011    {
     
    1213        "attrs": {},
    1314        "innerBlocks": [],
    14         "innerHTML": "\n"
     15        "innerHTML": "\n",
     16        "innerContent": [ "\n" ]
    1517    }
    1618]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<p>This is an old-style text block.  Changed to <code>paragraph</code> in #2135.</p>\n"
     6        "innerHTML": "\n<p>This is an old-style text block.  Changed to <code>paragraph</code> in #2135.</p>\n",
     7        "innerContent": [ "\n<p>This is an old-style text block.  Changed to <code>paragraph</code> in #2135.</p>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n"
     6        "innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n",
     7        "innerContent": [ "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json

    r43751 r43884  
    44        "attrs": {},
    55        "innerBlocks": [],
    6         "innerHTML": "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n"
     6        "innerHTML": "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n",
     7        "innerContent": [ "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n" ]
    78    },
    89    {
     
    1011        "attrs": {},
    1112        "innerBlocks": [],
    12         "innerHTML": "\n"
     13        "innerHTML": "\n",
     14        "innerContent": [ "\n" ]
    1315    }
    1416]
  • branches/5.0/tests/phpunit/tests/blocks/render.php

    r43881 r43884  
    4747            $registry->unregister( 'core/test' );
    4848        }
     49        if ( $registry->is_registered( 'core/dynamic' ) ) {
     50            $registry->unregister( 'core/dynamic' );
     51        }
    4952    }
    5053
     
    7679        $block_filtered_content = preg_replace( "/\n{2,}/", "\n", $block_filtered_content );
    7780
     81        remove_shortcode( 'someshortcode' );
     82
    7883        $this->assertEquals( trim( $classic_filtered_content ), trim( $block_filtered_content ) );
    7984    }
     
    8186    function handle_shortcode( $atts, $content ) {
    8287        return $content;
     88    }
     89
     90    public function test_can_nest_at_least_so_deep() {
     91        $minimum_depth = 99;
     92
     93        $content = 'deep inside';
     94        for ( $i = 0; $i < $minimum_depth; $i++ ) {
     95            $content = '<!-- wp:core/test -->' . $content . '<!-- /wp:core/test -->';
     96        }
     97
     98        $this->assertEquals( 'deep inside', do_blocks( $content ) );
     99    }
     100
     101    public function test_can_nest_at_least_so_deep_with_dynamic_blocks() {
     102        $minimum_depth = 99;
     103
     104        $content = '0';
     105        for ( $i = 0; $i < $minimum_depth; $i++ ) {
     106            $content = '<!-- wp:core/test -->' . $content . '<!-- /wp:core/test -->';
     107        }
     108
     109        register_block_type(
     110            'core/test',
     111            array(
     112                'render_callback' => array(
     113                    $this,
     114                    'render_dynamic_incrementer',
     115                ),
     116            )
     117        );
     118
     119        $this->assertEquals( $minimum_depth, (int) do_blocks( $content ) );
     120    }
     121
     122    public function render_dynamic_incrementer( $attrs, $content ) {
     123        return (string) ( 1 + (int) $content );
    83124    }
    84125
     
    243284    }
    244285
     286    public function test_dynamic_block_gets_inner_html() {
     287        register_block_type(
     288            'core/dynamic',
     289            array(
     290                'render_callback' => array(
     291                    $this,
     292                    'render_serialize_dynamic_block',
     293                ),
     294            )
     295        );
     296
     297        $output = do_blocks( '<!-- wp:dynamic -->inner<!-- /wp:dynamic -->' );
     298
     299        $data = unserialize( base64_decode( $output ) );
     300
     301        $this->assertEquals( 'inner', $data[1] );
     302    }
     303
     304    public function test_dynamic_block_gets_rendered_inner_blocks() {
     305        register_block_type(
     306            'core/test',
     307            array(
     308                'render_callback' => array(
     309                    $this,
     310                    'render_test_block_numeric',
     311                ),
     312            )
     313        );
     314
     315        register_block_type(
     316            'core/dynamic',
     317            array(
     318                'render_callback' => array(
     319                    $this,
     320                    'render_serialize_dynamic_block',
     321                ),
     322            )
     323        );
     324
     325        $output = do_blocks( '<!-- wp:dynamic -->before<!-- wp:test /-->after<!-- /wp:dynamic -->' );
     326
     327        $data = unserialize( base64_decode( $output ) );
     328
     329        $this->assertEquals( 'before10after', $data[1] );
     330    }
     331
     332    public function test_dynamic_block_gets_rendered_inner_dynamic_blocks() {
     333        register_block_type(
     334            'core/dynamic',
     335            array(
     336                'render_callback' => array(
     337                    $this,
     338                    'render_serialize_dynamic_block',
     339                ),
     340            )
     341        );
     342
     343        $output = do_blocks( '<!-- wp:dynamic -->before<!-- wp:dynamic -->deep inner<!-- /wp:dynamic -->after<!-- /wp:dynamic -->' );
     344
     345        $data = unserialize( base64_decode( $output ) );
     346
     347        $inner = $this->render_serialize_dynamic_block( array(), 'deep inner' );
     348
     349        $this->assertEquals( $data[1], 'before' . $inner . 'after' );
     350    }
     351
    245352    /**
    246353     * Helper function to remove relative paths and extension from a filename, leaving just the fixture name.
     
    306413    public function render_test_block_numeric() {
    307414        return 10;
     415    }
     416
     417    /**
     418     * Test block rendering function, returning base64 encoded serialised value.
     419     *
     420     * @since 5.0.0
     421     *
     422     * @return string Block output.
     423     */
     424    public function render_serialize_dynamic_block( $attributes, $content ) {
     425        return base64_encode( serialize( array( $attributes, $content ) ) );
    308426    }
    309427
  • branches/5.0/tools/webpack/packages.js

    r43840 r43884  
    5858        'api-fetch',
    5959        'a11y',
     60        'annotations',
    6061        'autop',
    6162        'blob',
     
    9697    const vendors = {
    9798        'lodash.js': 'lodash/lodash.js',
    98         'wp-polyfill-ecmascript.js': '@babel/polyfill/dist/polyfill.js',
     99        'wp-polyfill.js': '@babel/polyfill/dist/polyfill.js',
    99100        'wp-polyfill-fetch.js': 'whatwg-fetch/dist/fetch.umd.js',
    100101        'wp-polyfill-element-closest.js': 'element-closest/element-closest.js',
     
    108109    const minifiedVendors = {
    109110        'lodash.min.js': 'lodash/lodash.min.js',
    110         'wp-polyfill-ecmascript.min.js': '@babel/polyfill/dist/polyfill.min.js',
     111        'wp-polyfill.min.js': '@babel/polyfill/dist/polyfill.min.js',
    111112        'wp-polyfill-formdata.min.js': 'formdata-polyfill/formdata.min.js',
    112113        'moment.min.js': 'moment/min/moment.min.js',
     
    122123
    123124    const phpFiles = {
    124         // Parser shouldn't be copied until nested block issues are resolved.
    125         // 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php',
     125        'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php',
    126126        'block-library/src/archives/index.php': 'wp-includes/blocks/archives.php',
    127127        'block-library/src/block/index.php': 'wp-includes/blocks/block.php',
Note: See TracChangeset for help on using the changeset viewer.