Make WordPress Core

Changeset 52324


Ignore:
Timestamp:
12/06/2021 06:18:27 AM (3 years ago)
Author:
noisysocks
Message:

Update @wordpress packages

Update packages to include these bug fixes from Gutenberg:

  • Gallery block: turn on auto-migration of v1 Gallery blocks to v2 format when edited
  • Add accessible labelling to submenu buttons.
  • Improve performance of wp_navigation lookup.
  • Various inline docblock corrections
  • Use core version of template and template part post types and REST endpoints for WP 5.9, with back compat for 5.8
  • Gradients: Enable adding custom gradient when gradients are disabled
  • Custom color palette: add default color name
  • Color Picker: Re-instate debounce and controlled value to fix issue with gradient picker
  • Add aria-current="page" to active navigation item
  • Site Editor: Templat list fallback to slug
  • Fix: Custom color picker popover position
  • Fix: php 5.6 error in theme JSON class.
  • Update the WP_Theme_JSON_Gutenberg class to be like the core one
  • Update the WP_Theme_JSON_Resolver_Gutenberg class to be like the core one
  • Move Global Styles code to lib/compat/wordpress-5.9 folder
  • E2E Tests: Fix failing image e2e test by waiting for required element
  • Navigation: Try removing absorb toolbar prop.
  • Navigation: Fix navigation justifications.
  • Fix wordbreak for URLs
  • Polish unset color indicator.
  • Template revert flow: Make label description source agnostic
  • [Block Library - Navigation]: Fix vertical layout
  • Add: Corners to custom color picker popover
  • Add: Missing margin to the color picker clear button
  • Gradient: Fix clearing a custom gradient from throwing a React warning
  • [Block Library]: Rename Query Pagination blocks
  • PHP Unit Tests: Use global transients
  • Remove CSS that causes conflict with theme.json
  • Add actions which fire during the loading process of block template parts
  • Fix usage of useSetting('color.palette')
  • Update micromodal, include click-through fix
  • Site Editor: Remove unused PHP code
  • Don't try and render unstable location if Nav block has ID
  • Fix gutenberg prefixed function references in core
  • Card: support the extraSmall option for the size prop
  • Gallery block: enable the new gallery block by default if running in core
  • Block fixtures: Change port to 8889 to placate KSES
  • Full Site Editing: Remove block template resolution unit tests
  • Site Editor: Sync export API

See #54487.

Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r52277 r52324  
    35303530        },
    35313531        "@wordpress/block-directory": {
    3532             "version": "3.0.13",
    3533             "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.13.tgz",
    3534             "integrity": "sha512-fUrJy5e/j8mrJgM0KHCatxR4kDf85JA5tTjRAu8GLALyE8g9cvdXNGjvKSYUhiQVogTPMvxaz6ZxHeySrd9gvA==",
     3532            "version": "3.0.14",
     3533            "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.14.tgz",
     3534            "integrity": "sha512-c9fSb3JHosUJb8HdatmvZg8iI9AtYfVwyaARt/5LT0xVtsOlNP6+WeaJa2ikpkdxpIt+sUG28YAgOWuCnLkALA==",
    35353535            "requires": {
    35363536                "@babel/runtime": "^7.16.0",
    35373537                "@wordpress/a11y": "^3.2.4",
    35383538                "@wordpress/api-fetch": "^5.2.6",
    3539                 "@wordpress/block-editor": "^8.0.7",
     3539                "@wordpress/block-editor": "^8.0.8",
    35403540                "@wordpress/blocks": "^11.1.4",
    3541                 "@wordpress/components": "^19.1.1",
     3541                "@wordpress/components": "^19.1.2",
    35423542                "@wordpress/compose": "^5.0.6",
    35433543                "@wordpress/core-data": "^4.0.8",
    35443544                "@wordpress/data": "^6.1.4",
    3545                 "@wordpress/edit-post": "^5.0.13",
    3546                 "@wordpress/editor": "^12.0.10",
     3545                "@wordpress/edit-post": "^5.0.14",
     3546                "@wordpress/editor": "^12.0.11",
    35473547                "@wordpress/element": "^4.0.4",
    35483548                "@wordpress/hooks": "^3.2.2",
     
    35573557        },
    35583558        "@wordpress/block-editor": {
    3559             "version": "8.0.7",
    3560             "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.7.tgz",
    3561             "integrity": "sha512-Z1t9O98B/VVzQGO8xrahiL04Rm9e77DdJdUbTGYX3sGv4PqiwSfMtX+MMPE+RGC2koBpgOHzj8rbWeohvtYfxQ==",
     3559            "version": "8.0.8",
     3560            "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.8.tgz",
     3561            "integrity": "sha512-3KFD0gQZ6gvP98b3mvDYtZS/APaxWfw02L8/ur23i79HpKfNYheT+3HMrUf/MUxmsJX++BgWWU86r5kqH0Ug0A==",
    35623562            "requires": {
    35633563                "@babel/runtime": "^7.16.0",
     
    35683568                "@wordpress/block-serialization-default-parser": "^4.2.3",
    35693569                "@wordpress/blocks": "^11.1.4",
    3570                 "@wordpress/components": "^19.1.1",
     3570                "@wordpress/components": "^19.1.2",
    35713571                "@wordpress/compose": "^5.0.6",
    35723572                "@wordpress/data": "^6.1.4",
     
    36043604        },
    36053605        "@wordpress/block-library": {
    3606             "version": "6.0.11",
    3607             "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.11.tgz",
    3608             "integrity": "sha512-IyQiNVzkPz5gQtcmOozZO9TNmzNUEPKn3OLgmgarVwNAN9hf3dY+zx9y1MyeDDjvIgnoYVVTiWQO1on36mjW6g==",
     3606            "version": "6.0.12",
     3607            "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.12.tgz",
     3608            "integrity": "sha512-Mdlspqpezzq0WSmBd2jTlUXb2/Y4CC+AFyOzY5X47ErWbwZPZnwZtqOmeAjrVwfdQpkqAyMJWjMdj7C71qoRTQ==",
    36093609            "requires": {
    36103610                "@babel/runtime": "^7.16.0",
     
    36133613                "@wordpress/autop": "^3.2.3",
    36143614                "@wordpress/blob": "^3.2.2",
    3615                 "@wordpress/block-editor": "^8.0.7",
     3615                "@wordpress/block-editor": "^8.0.8",
    36163616                "@wordpress/blocks": "^11.1.4",
    3617                 "@wordpress/components": "^19.1.1",
     3617                "@wordpress/components": "^19.1.2",
    36183618                "@wordpress/compose": "^5.0.6",
    36193619                "@wordpress/core-data": "^4.0.8",
     
    36283628                "@wordpress/i18n": "^4.2.4",
    36293629                "@wordpress/icons": "^6.1.1",
    3630                 "@wordpress/interface": "^4.1.9",
     3630                "@wordpress/interface": "^4.1.10",
    36313631                "@wordpress/is-shallow-equal": "^4.2.1",
    36323632                "@wordpress/keycodes": "^3.2.4",
    36333633                "@wordpress/notices": "^3.2.7",
    36343634                "@wordpress/primitives": "^3.0.4",
    3635                 "@wordpress/reusable-blocks": "^3.0.13",
     3635                "@wordpress/reusable-blocks": "^3.0.14",
    36363636                "@wordpress/rich-text": "^5.0.6",
    3637                 "@wordpress/server-side-render": "^3.0.11",
     3637                "@wordpress/server-side-render": "^3.0.12",
    36383638                "@wordpress/url": "^3.3.1",
    36393639                "@wordpress/viewport": "^4.0.6",
     
    36433643                "lodash": "^4.17.21",
    36443644                "memize": "^1.1.0",
    3645                 "micromodal": "^0.4.6",
     3645                "micromodal": "^0.4.9",
    36463646                "moment": "^2.22.1"
    36473647            }
     
    36903690        },
    36913691        "@wordpress/components": {
    3692             "version": "19.1.1",
    3693             "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.1.1.tgz",
    3694             "integrity": "sha512-mEjVRp10RNl/wu24N4cYPebiMJpVt/kFsHaNJTlkCZmEHVZXeByoa3gToyRE1G4ImFuiHEElQ0nWz3RNFFlRxg==",
     3692            "version": "19.1.2",
     3693            "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.1.2.tgz",
     3694            "integrity": "sha512-Qdj8l+/3wwkwxP1/pG3369/2xhKz07lpDXlNyAOMEctA8o8YhVLKvHhAiOKMNL/TQkPz9hWai9MEK/5aPsXffg==",
    36953695            "requires": {
    36963696                "@babel/runtime": "^7.16.0",
     
    37863786        },
    37873787        "@wordpress/customize-widgets": {
    3788             "version": "2.0.13",
    3789             "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.13.tgz",
    3790             "integrity": "sha512-no5D7OucerLGPEHFa0f8yWVWGjhHsAyWE6wOViA2zOof92y6/rqgYjDmKl//E3IdguE/v6wUxApConIYhtnf5Q==",
     3788            "version": "2.0.14",
     3789            "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.14.tgz",
     3790            "integrity": "sha512-QGHulwm/osqTMnVIcGjCz+hHTNNb1VSucr1zp/pr294H9StOIENer20dr7WSFiUavTRtXdcAWxpbiJkcaeEwYw==",
    37913791            "requires": {
    37923792                "@babel/runtime": "^7.16.0",
    37933793                "@wordpress/a11y": "^3.2.4",
    3794                 "@wordpress/block-editor": "^8.0.7",
    3795                 "@wordpress/block-library": "^6.0.11",
     3794                "@wordpress/block-editor": "^8.0.8",
     3795                "@wordpress/block-library": "^6.0.12",
    37963796                "@wordpress/blocks": "^11.1.4",
    3797                 "@wordpress/components": "^19.1.1",
     3797                "@wordpress/components": "^19.1.2",
    37983798                "@wordpress/compose": "^5.0.6",
    37993799                "@wordpress/core-data": "^4.0.8",
     
    38043804                "@wordpress/i18n": "^4.2.4",
    38053805                "@wordpress/icons": "^6.1.1",
    3806                 "@wordpress/interface": "^4.1.9",
     3806                "@wordpress/interface": "^4.1.10",
    38073807                "@wordpress/is-shallow-equal": "^4.2.1",
    38083808                "@wordpress/keyboard-shortcuts": "^3.0.6",
    38093809                "@wordpress/keycodes": "^3.2.4",
    38103810                "@wordpress/media-utils": "^3.0.5",
    3811                 "@wordpress/widgets": "^2.0.13",
     3811                "@wordpress/widgets": "^2.0.14",
    38123812                "classnames": "^2.3.1",
    38133813                "lodash": "^4.17.21"
     
    39103910        },
    39113911        "@wordpress/e2e-test-utils": {
    3912             "version": "5.4.8",
    3913             "resolved": "https://registry.npmjs.org/@wordpress/e2e-test-utils/-/e2e-test-utils-5.4.8.tgz",
    3914             "integrity": "sha512-fV4tx/wB9ldU+5APPcrHT/V2Jmt4vYtNKtMmOLJhInjvMWjaqL6buUpSvoMyFR//P95GUz/KqaLXh/i/smfuow==",
     3912            "version": "5.4.9",
     3913            "resolved": "https://registry.npmjs.org/@wordpress/e2e-test-utils/-/e2e-test-utils-5.4.9.tgz",
     3914            "integrity": "sha512-L0ReQGU8N9soIUoomVEILR7/PX0BrlBMltH9yjFuNxUweqZxoKd5vhNEDQfN2BZM24Zrnm9P/XQmdNwr9r/vPw==",
    39153915            "dev": true,
    39163916            "requires": {
     
    39383938        },
    39393939        "@wordpress/edit-post": {
    3940             "version": "5.0.13",
    3941             "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.13.tgz",
    3942             "integrity": "sha512-dMCMxJTERUxGbcZqJOTH6Hv0WSQ1FuKUS/ug48f0osgVQR61e4QiJC10Ld2uNeB2ZNNyOcFM0YIashZk0u91HQ==",
     3940            "version": "5.0.14",
     3941            "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.14.tgz",
     3942            "integrity": "sha512-5groMRI4CT6I6TcZeG2T5GC5j4Uj1dNlk69DF4q+eLJf6bs3EO3A2gIfzr2fuMTsfOO9pyrk+Y3yjEG8fDg3AA==",
    39433943            "requires": {
    39443944                "@babel/runtime": "^7.16.0",
    39453945                "@wordpress/a11y": "^3.2.4",
    39463946                "@wordpress/api-fetch": "^5.2.6",
    3947                 "@wordpress/block-editor": "^8.0.7",
    3948                 "@wordpress/block-library": "^6.0.11",
     3947                "@wordpress/block-editor": "^8.0.8",
     3948                "@wordpress/block-library": "^6.0.12",
    39493949                "@wordpress/blocks": "^11.1.4",
    3950                 "@wordpress/components": "^19.1.1",
     3950                "@wordpress/components": "^19.1.2",
    39513951                "@wordpress/compose": "^5.0.6",
    39523952                "@wordpress/core-data": "^4.0.8",
    39533953                "@wordpress/data": "^6.1.4",
    39543954                "@wordpress/data-controls": "^2.2.7",
    3955                 "@wordpress/editor": "^12.0.10",
     3955                "@wordpress/editor": "^12.0.11",
    39563956                "@wordpress/element": "^4.0.4",
    39573957                "@wordpress/hooks": "^3.2.2",
    39583958                "@wordpress/i18n": "^4.2.4",
    39593959                "@wordpress/icons": "^6.1.1",
    3960                 "@wordpress/interface": "^4.1.9",
     3960                "@wordpress/interface": "^4.1.10",
    39613961                "@wordpress/keyboard-shortcuts": "^3.0.6",
    39623962                "@wordpress/keycodes": "^3.2.4",
     
    39833983        },
    39843984        "@wordpress/edit-site": {
    3985             "version": "3.0.13",
    3986             "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.13.tgz",
    3987             "integrity": "sha512-Lk3xlea+4gQ8l3j5iwlbCsJaRMgXXd/XBiNnctkszFkJ0gLMOnMJDvqjGUUzqzi1xHu/Hj9G3JtNm6XbJDeTIw==",
     3985            "version": "3.0.14",
     3986            "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.14.tgz",
     3987            "integrity": "sha512-mG3D1rad/HK87HqxvnZE7wiQl9ZC2fqrxiUwfQgyOU9F+2T3s6DCKMquJhDrs0TPCmZMj+y4H/cHN46Yw8hhbw==",
    39883988            "requires": {
    39893989                "@babel/runtime": "^7.16.0",
    39903990                "@wordpress/a11y": "^3.2.4",
    39913991                "@wordpress/api-fetch": "^5.2.6",
    3992                 "@wordpress/block-editor": "^8.0.7",
    3993                 "@wordpress/block-library": "^6.0.11",
     3992                "@wordpress/block-editor": "^8.0.8",
     3993                "@wordpress/block-library": "^6.0.12",
    39943994                "@wordpress/blocks": "^11.1.4",
    3995                 "@wordpress/components": "^19.1.1",
     3995                "@wordpress/components": "^19.1.2",
    39963996                "@wordpress/compose": "^5.0.6",
    39973997                "@wordpress/core-data": "^4.0.8",
    39983998                "@wordpress/data": "^6.1.4",
    39993999                "@wordpress/data-controls": "^2.2.7",
    4000                 "@wordpress/editor": "^12.0.10",
     4000                "@wordpress/editor": "^12.0.11",
    40014001                "@wordpress/element": "^4.0.4",
    40024002                "@wordpress/hooks": "^3.2.2",
     
    40044004                "@wordpress/i18n": "^4.2.4",
    40054005                "@wordpress/icons": "^6.1.1",
    4006                 "@wordpress/interface": "^4.1.9",
     4006                "@wordpress/interface": "^4.1.10",
    40074007                "@wordpress/keyboard-shortcuts": "^3.0.6",
    40084008                "@wordpress/keycodes": "^3.2.4",
     
    40114011                "@wordpress/plugins": "^4.0.6",
    40124012                "@wordpress/primitives": "^3.0.4",
    4013                 "@wordpress/reusable-blocks": "^3.0.13",
     4013                "@wordpress/reusable-blocks": "^3.0.14",
    40144014                "@wordpress/url": "^3.3.1",
    40154015                "@wordpress/viewport": "^4.0.6",
     
    40234023        },
    40244024        "@wordpress/edit-widgets": {
    4025             "version": "3.1.8",
    4026             "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.8.tgz",
    4027             "integrity": "sha512-Pz7kqi92mV25StGrEnhGI3rxtC/7JEsc524/4NxMP5NvecS4MjXCshmN+PzmFqTSHyOTAtGe2p1vdhdiOLHa4w==",
     4025            "version": "3.1.9",
     4026            "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.9.tgz",
     4027            "integrity": "sha512-ivcnkftK+0N6lZjtcIbj2onsfvmt7/oo6e5Uh+ZcYXQGoX9t+02zFik23gOgqPqbb7XkbkQGf1sHWs5eaFFo5g==",
    40284028            "requires": {
    40294029                "@babel/runtime": "^7.16.0",
    40304030                "@wordpress/a11y": "^3.2.4",
    40314031                "@wordpress/api-fetch": "^5.2.6",
    4032                 "@wordpress/block-editor": "^8.0.7",
    4033                 "@wordpress/block-library": "^6.0.11",
     4032                "@wordpress/block-editor": "^8.0.8",
     4033                "@wordpress/block-library": "^6.0.12",
    40344034                "@wordpress/blocks": "^11.1.4",
    4035                 "@wordpress/components": "^19.1.1",
     4035                "@wordpress/components": "^19.1.2",
    40364036                "@wordpress/compose": "^5.0.6",
    40374037                "@wordpress/core-data": "^4.0.8",
     
    40424042                "@wordpress/i18n": "^4.2.4",
    40434043                "@wordpress/icons": "^6.1.1",
    4044                 "@wordpress/interface": "^4.1.9",
     4044                "@wordpress/interface": "^4.1.10",
    40454045                "@wordpress/keyboard-shortcuts": "^3.0.6",
    40464046                "@wordpress/keycodes": "^3.2.4",
     
    40484048                "@wordpress/notices": "^3.2.7",
    40494049                "@wordpress/plugins": "^4.0.6",
    4050                 "@wordpress/reusable-blocks": "^3.0.13",
    4051                 "@wordpress/server-side-render": "^3.0.11",
     4050                "@wordpress/reusable-blocks": "^3.0.14",
     4051                "@wordpress/server-side-render": "^3.0.12",
    40524052                "@wordpress/url": "^3.3.1",
    4053                 "@wordpress/widgets": "^2.0.13",
     4053                "@wordpress/widgets": "^2.0.14",
    40544054                "classnames": "^2.3.1",
    40554055                "lodash": "^4.17.21",
     
    40594059        },
    40604060        "@wordpress/editor": {
    4061             "version": "12.0.10",
    4062             "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.10.tgz",
    4063             "integrity": "sha512-V3O2rBtmN6gGbaWtYjc6IVA6GbRUzGxEQ3Z7mVPnF0G0x7hWrmrMIwGEQ0jC+jvJ5OdVUH9GyJwD2ns+PqAgIQ==",
     4061            "version": "12.0.11",
     4062            "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.11.tgz",
     4063            "integrity": "sha512-qZ2WJ7JiycKtkPuSUoRApOVECZC5XuseRhfDl3dUwlaRl0jND83B/kj3NoHfZPNB09621j+bwBT39qH78e953g==",
    40644064            "requires": {
    40654065                "@babel/runtime": "^7.16.0",
     
    40684068                "@wordpress/autop": "^3.2.3",
    40694069                "@wordpress/blob": "^3.2.2",
    4070                 "@wordpress/block-editor": "^8.0.7",
     4070                "@wordpress/block-editor": "^8.0.8",
    40714071                "@wordpress/blocks": "^11.1.4",
    4072                 "@wordpress/components": "^19.1.1",
     4072                "@wordpress/components": "^19.1.2",
    40734073                "@wordpress/compose": "^5.0.6",
    40744074                "@wordpress/core-data": "^4.0.8",
     
    40874087                "@wordpress/media-utils": "^3.0.5",
    40884088                "@wordpress/notices": "^3.2.7",
    4089                 "@wordpress/reusable-blocks": "^3.0.13",
     4089                "@wordpress/reusable-blocks": "^3.0.14",
    40904090                "@wordpress/rich-text": "^5.0.6",
    4091                 "@wordpress/server-side-render": "^3.0.11",
     4091                "@wordpress/server-side-render": "^3.0.12",
    40924092                "@wordpress/url": "^3.3.1",
    40934093                "@wordpress/wordcount": "^3.2.3",
     
    41764176        },
    41774177        "@wordpress/format-library": {
    4178             "version": "3.0.13",
    4179             "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.13.tgz",
    4180             "integrity": "sha512-OJ1US9AcUZ9vCY+kvzTmcSx15nnHTdU1rYTwGiacPg6ES6pxc7iyMJU+cltUi0+YM3MV8dGvH9jNnZPAlPUy4A==",
     4178            "version": "3.0.14",
     4179            "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.14.tgz",
     4180            "integrity": "sha512-iemQKg711CrFmpJvPh1isceiorAGPkKXouPt+UF7Ic8G6YggyUf8hnyGuPIWZM7wTlbh5PD2XeL90+pChJVfRQ==",
    41814181            "requires": {
    41824182                "@babel/runtime": "^7.16.0",
    41834183                "@wordpress/a11y": "^3.2.4",
    4184                 "@wordpress/block-editor": "^8.0.7",
    4185                 "@wordpress/components": "^19.1.1",
     4184                "@wordpress/block-editor": "^8.0.8",
     4185                "@wordpress/components": "^19.1.2",
    41864186                "@wordpress/compose": "^5.0.6",
    41874187                "@wordpress/data": "^6.1.4",
     
    42384238        },
    42394239        "@wordpress/interface": {
    4240             "version": "4.1.9",
    4241             "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.9.tgz",
    4242             "integrity": "sha512-iemRnmrKP3SHfjS159kWdAp1Klzzm2JmaNGCvt+hjiZwMGvJhA1I90yGY5WFy+JG+lF6ssmoi6j8L4SXLCIiTw==",
     4240            "version": "4.1.10",
     4241            "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.10.tgz",
     4242            "integrity": "sha512-3nUDqo69m0EBPpXW83Zv4MjTDRmmeoo2cYWNi2tUEi117Ls7Nuw+zXMdHCdYk1QcqVfVOmRg77tZlPDapDZBqQ==",
    42434243            "requires": {
    42444244                "@babel/runtime": "^7.16.0",
    42454245                "@wordpress/a11y": "^3.2.4",
    4246                 "@wordpress/components": "^19.1.1",
     4246                "@wordpress/components": "^19.1.2",
    42474247                "@wordpress/compose": "^5.0.6",
    42484248                "@wordpress/data": "^6.1.4",
     
    43424342        },
    43434343        "@wordpress/list-reusable-blocks": {
    4344             "version": "3.0.11",
    4345             "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.11.tgz",
    4346             "integrity": "sha512-zMufOLhJEe4xqDmL3FVsT1Qcj/kiNShaIqmVES57fLDVUvKOZjJbV2zRcJxJmaBqlz6bJuOPjZAZDNRoFNN9hg==",
     4344            "version": "3.0.12",
     4345            "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.12.tgz",
     4346            "integrity": "sha512-slGIu0ABCws87Ch8urInCpg/YI/B7Ap2U8AJ5FSM5cQ6ex+JCbMexABOwiuIHL065hEaw/wI/LNrgP75MRjT8A==",
    43474347            "requires": {
    43484348                "@babel/runtime": "^7.16.0",
    43494349                "@wordpress/api-fetch": "^5.2.6",
    4350                 "@wordpress/components": "^19.1.1",
     4350                "@wordpress/components": "^19.1.2",
    43514351                "@wordpress/compose": "^5.0.6",
    43524352                "@wordpress/element": "^4.0.4",
     
    43864386        },
    43874387        "@wordpress/nux": {
    4388             "version": "5.0.11",
    4389             "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.11.tgz",
    4390             "integrity": "sha512-o9dq2ZaAFmqamYBJ+aJs9RoceRmNNEVWhsCgBbS3LaXHIXPkI8NRaCG8uerKcWGYkQvRnN7GnUtvMrRJVH2TxA==",
     4388            "version": "5.0.12",
     4389            "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.12.tgz",
     4390            "integrity": "sha512-qMWUHyACqTMI6vGXQA20nUGlagaQ/GOGuk1al6acMrHMbk3b5LCgrA6nYPuHDXfgheZ5dZ85p8r2onos1bUkig==",
    43914391            "requires": {
    43924392                "@babel/runtime": "^7.16.0",
    4393                 "@wordpress/components": "^19.1.1",
     4393                "@wordpress/components": "^19.1.2",
    43944394                "@wordpress/compose": "^5.0.6",
    43954395                "@wordpress/data": "^6.1.4",
     
    45164516        },
    45174517        "@wordpress/reusable-blocks": {
    4518             "version": "3.0.13",
    4519             "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.13.tgz",
    4520             "integrity": "sha512-pgeo7T796FxD+GUhzq2CpmXGFLIy9uoKyJ2TQ3F5s6u5a1ZXZumHcYTFXoofXXxfUjK3QRqkMphVKJHFdzslHg==",
    4521             "requires": {
    4522                 "@wordpress/block-editor": "^8.0.7",
     4518            "version": "3.0.14",
     4519            "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.14.tgz",
     4520            "integrity": "sha512-jR4byu0is1n4FX53wVxuTR60bTU3wYv+yS+nvUPqgo7Ngh/8m3HP6PeKFP35/w3L3zYXM309s9tox7mUsycadg==",
     4521            "requires": {
     4522                "@wordpress/block-editor": "^8.0.8",
    45234523                "@wordpress/blocks": "^11.1.4",
    4524                 "@wordpress/components": "^19.1.1",
     4524                "@wordpress/components": "^19.1.2",
    45254525                "@wordpress/compose": "^5.0.6",
    45264526                "@wordpress/core-data": "^4.0.8",
     
    54885488        },
    54895489        "@wordpress/server-side-render": {
    5490             "version": "3.0.11",
    5491             "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.11.tgz",
    5492             "integrity": "sha512-VjTQiercy6saBPtK9icvLchB08qJaGkkR/I5up7oq7w2pDINEpm2oj0sGYV1l26HJ2cxLBBwDzSJxrMmmrXa4w==",
     5490            "version": "3.0.12",
     5491            "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.12.tgz",
     5492            "integrity": "sha512-ctiH9X/8Yn/Cp7Yvpcq7ee/kG6FDVhgLbCtNLFN+4estKfcKXfdMuzEsV0Lhi3z8SF9pRewwvas0cdIo+maK7g==",
    54935493            "requires": {
    54945494                "@babel/runtime": "^7.16.0",
    54955495                "@wordpress/api-fetch": "^5.2.6",
    54965496                "@wordpress/blocks": "^11.1.4",
    5497                 "@wordpress/components": "^19.1.1",
     5497                "@wordpress/components": "^19.1.2",
    54985498                "@wordpress/compose": "^5.0.6",
    54995499                "@wordpress/data": "^6.1.4",
     
    55615561        },
    55625562        "@wordpress/widgets": {
    5563             "version": "2.0.13",
    5564             "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.13.tgz",
    5565             "integrity": "sha512-ffcQjUa2iZ3wXOqLTUi6GnWILLybBm7ep5aUWYuKJ2DdWcJAlFX9/NfTrnS5KI338Uc2Mxfjq1ZKBg4vxvnRZw==",
     5563            "version": "2.0.14",
     5564            "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.14.tgz",
     5565            "integrity": "sha512-fMAWwEcK79esTIttuQkCFTHhPsrWbCQmletT8IjpUmT34RXbwGreBXnief8n9H4BC8eTe1JAE/kI3AhtdYfrRg==",
    55665566            "requires": {
    55675567                "@babel/runtime": "^7.16.0",
    55685568                "@wordpress/api-fetch": "^5.2.6",
    5569                 "@wordpress/block-editor": "^8.0.7",
     5569                "@wordpress/block-editor": "^8.0.8",
    55705570                "@wordpress/blocks": "^11.1.4",
    5571                 "@wordpress/components": "^19.1.1",
     5571                "@wordpress/components": "^19.1.2",
    55725572                "@wordpress/compose": "^5.0.6",
    55735573                "@wordpress/core-data": "^4.0.8",
  • trunk/package.json

    r52277 r52324  
    2828        "@wordpress/custom-templated-path-webpack-plugin": "2.1.0",
    2929        "@wordpress/dependency-extraction-webpack-plugin": "3.2.1",
    30         "@wordpress/e2e-test-utils": "5.4.8",
     30        "@wordpress/e2e-test-utils": "5.4.9",
    3131        "@wordpress/library-export-default-webpack-plugin": "2.2.0",
    3232        "@wordpress/scripts": "19.2.2",
     
    8383        "@wordpress/autop": "3.2.3",
    8484        "@wordpress/blob": "3.2.2",
    85         "@wordpress/block-directory": "3.0.13",
    86         "@wordpress/block-editor": "8.0.7",
    87         "@wordpress/block-library": "6.0.11",
     85        "@wordpress/block-directory": "3.0.14",
     86        "@wordpress/block-editor": "8.0.8",
     87        "@wordpress/block-library": "6.0.12",
    8888        "@wordpress/block-serialization-default-parser": "4.2.3",
    8989        "@wordpress/blocks": "11.1.4",
    90         "@wordpress/components": "19.1.1",
     90        "@wordpress/components": "19.1.2",
    9191        "@wordpress/compose": "5.0.6",
    9292        "@wordpress/core-data": "4.0.8",
    93         "@wordpress/customize-widgets": "2.0.13",
     93        "@wordpress/customize-widgets": "2.0.14",
    9494        "@wordpress/data": "6.1.4",
    9595        "@wordpress/data-controls": "2.2.7",
     
    9898        "@wordpress/dom": "3.2.7",
    9999        "@wordpress/dom-ready": "3.2.3",
    100         "@wordpress/edit-post": "5.0.13",
    101         "@wordpress/edit-site": "3.0.13",
    102         "@wordpress/edit-widgets": "3.1.8",
    103         "@wordpress/editor": "12.0.10",
     100        "@wordpress/edit-post": "5.0.14",
     101        "@wordpress/edit-site": "3.0.14",
     102        "@wordpress/edit-widgets": "3.1.9",
     103        "@wordpress/editor": "12.0.11",
    104104        "@wordpress/element": "4.0.4",
    105105        "@wordpress/escape-html": "2.2.3",
    106         "@wordpress/format-library": "3.0.13",
     106        "@wordpress/format-library": "3.0.14",
    107107        "@wordpress/hooks": "3.2.2",
    108108        "@wordpress/html-entities": "3.2.3",
    109109        "@wordpress/i18n": "4.2.4",
    110110        "@wordpress/icons": "6.1.1",
    111         "@wordpress/interface": "4.1.9",
     111        "@wordpress/interface": "4.1.10",
    112112        "@wordpress/is-shallow-equal": "4.2.1",
    113113        "@wordpress/keyboard-shortcuts": "3.0.6",
    114114        "@wordpress/keycodes": "3.2.4",
    115         "@wordpress/list-reusable-blocks": "3.0.11",
     115        "@wordpress/list-reusable-blocks": "3.0.12",
    116116        "@wordpress/media-utils": "3.0.5",
    117117        "@wordpress/notices": "3.2.7",
    118         "@wordpress/nux": "5.0.11",
     118        "@wordpress/nux": "5.0.12",
    119119        "@wordpress/plugins": "4.0.6",
    120120        "@wordpress/primitives": "3.0.4",
    121121        "@wordpress/priority-queue": "2.2.3",
    122122        "@wordpress/redux-routine": "4.2.2",
    123         "@wordpress/reusable-blocks": "3.0.13",
     123        "@wordpress/reusable-blocks": "3.0.14",
    124124        "@wordpress/rich-text": "5.0.6",
    125         "@wordpress/server-side-render": "3.0.11",
     125        "@wordpress/server-side-render": "3.0.12",
    126126        "@wordpress/shortcode": "3.2.3",
    127127        "@wordpress/token-list": "2.2.2",
     
    129129        "@wordpress/viewport": "4.0.6",
    130130        "@wordpress/warning": "2.2.2",
    131         "@wordpress/widgets": "2.0.13",
     131        "@wordpress/widgets": "2.0.14",
    132132        "@wordpress/wordcount": "3.2.3",
    133133        "backbone": "1.4.0",
  • trunk/src/wp-includes/assets/script-loader-packages.php

    r52277 r52324  
    1 <?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '6334f95fc53c1ec41d5ecf2911797ca5'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '24e7bb0f5f3588492f387671b2a46fc9'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '3bab8235e19d9f09164c30ab5363093a'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9dac23239e3ee771f867989188a2e766'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '15ee57b1f0ac2f25cdee181ee369950a'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'f9c70b06478edf537328ed5ca3555658'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '78dd73ace08da4436266d54e551f1801'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => '8379e53bda963fe8c9de710f71982031'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '98424c28360f75deb941d9d5977df074'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '22329f7ff9d35759e1a4ed63f50fd1f1'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '314e138f1050b863fc65347b91b547d5'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ff256efbd27ce91d114094be9982fadc'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007'));
     1<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '1f942819c3ee4c8817290d91009999f9'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '9c50f4a2655f7982925830bfa279e623'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '222096a6b8f6db7f3d31e2a7095c7624'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9dac23239e3ee771f867989188a2e766'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '15ee57b1f0ac2f25cdee181ee369950a'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'f9c70b06478edf537328ed5ca3555658'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '78dd73ace08da4436266d54e551f1801'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => '28cef4f1147fe985ff7d5074907fc201'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '98424c28360f75deb941d9d5977df074'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '22329f7ff9d35759e1a4ed63f50fd1f1'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '314e138f1050b863fc65347b91b547d5'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ff256efbd27ce91d114094be9982fadc'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007'));
  • trunk/src/wp-includes/block-supports/layout.php

    r52302 r52324  
    105105        if ( 'horizontal' === $layout_orientation ) {
    106106            $style .= 'align-items: center;';
     107            if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
     108                $style .= '--layout-direction: row;';
     109            }
    107110            /**
    108111             * Add this style only if is not empty for backwards compatibility,
     
    115118                    // --layout-justification-setting allows children to inherit the value regardless or row or column direction.
    116119                    $style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};";
    117                     $style .= '--layout-direction: row;';
    118120                    $style .= "--layout-wrap: $flex_wrap;";
    119121                    $style .= "--layout-justify: {$justify_content_options[ $layout['justifyContent'] ]};";
     
    126128                $style .= "align-items: {$justify_content_options[ $layout['justifyContent'] ]};";
    127129                if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
     130                    $style .= '--layout-direction: column;';
     131                }
     132                if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) {
    128133                    // --layout-justification-setting allows children to inherit the value regardless or row or column direction.
    129134                    $style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};";
    130                     $style .= '--layout-direction: column;';
    131135                    $style .= '--layout-justify: initial;';
    132136                    $style .= "--layout-align: {$justify_content_options[ $layout['justifyContent'] ]};";
  • trunk/src/wp-includes/block-template-utils.php

    r52318 r52324  
    745745function get_block_template( $id, $template_type = 'wp_template' ) {
    746746    /**
    747      * Filters the block templates array before the query takes place.
     747     *Filters the block template object before the query takes place.
    748748     *
    749749     * Return a non-null value to bypass the WordPress queries.
     
    794794
    795795    /**
    796      * Filters the array of queried block templates array after they've been fetched.
     796     * Filters the queried block template object after it's been fetched.
    797797     *
    798798     * @since 5.9.0
    799799     *
    800      * @param WP_Block_Template $block_template The found block template.
    801      * @param string            $id             Template unique identifier (example: theme_slug//template_slug).
    802      * @param array             $template_type  Template type: `'wp_template'` or '`wp_template_part'`.
     800     * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one.
     801     * @param string                 $id             Template unique identifier (example: theme_slug//template_slug).
     802     * @param array                  $template_type  Template type: `'wp_template'` or '`wp_template_part'`.
    803803     */
    804804    return apply_filters( 'get_block_template', $block_template, $id, $template_type );
  • trunk/src/wp-includes/blocks/navigation-submenu.php

    r52232 r52324  
    164164        )
    165165    );
    166     $html               = '<li ' . $wrapper_attributes . '>';
     166
     167    $label = '';
     168
     169    if ( isset( $attributes['label'] ) ) {
     170        $label .= wp_kses(
     171            $attributes['label'],
     172            array(
     173                'code'   => array(),
     174                'em'     => array(),
     175                'img'    => array(
     176                    'scale' => array(),
     177                    'class' => array(),
     178                    'style' => array(),
     179                    'src'   => array(),
     180                    'alt'   => array(),
     181                ),
     182                's'      => array(),
     183                'span'   => array(
     184                    'style' => array(),
     185                ),
     186                'strong' => array(),
     187            )
     188        );
     189    }
     190
     191    $html = '<li ' . $wrapper_attributes . '>';
    167192
    168193    // If Submenus open on hover, we render an anchor tag with attributes.
     
    194219        // End appending HTML attributes to anchor tag.
    195220
    196         if ( isset( $attributes['label'] ) ) {
    197             $html .= wp_kses(
    198                 $attributes['label'],
    199                 array(
    200                     'code'   => array(),
    201                     'em'     => array(),
    202                     'img'    => array(
    203                         'scale' => array(),
    204                         'class' => array(),
    205                         'style' => array(),
    206                         'src'   => array(),
    207                         'alt'   => array(),
    208                     ),
    209                     's'      => array(),
    210                     'span'   => array(
    211                         'style' => array(),
    212                     ),
    213                     'strong' => array(),
    214                 )
    215             );
    216         }
     221        $html .= $label;
    217222
    218223        $html .= '</a>';
     
    222227            // The submenu icon is rendered in a button here
    223228            // so that there's a clickable elment to open the submenu.
    224             $html .= '<button class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
     229            $html .= '<button aria-label="' . $label . ' ' . __( 'submenu', 'gutenberg' ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
    225230        }
    226231    } else {
    227232        // If menus open on click, we render the parent as a button.
    228         $html .= '<button class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';
     233        $html .= '<button aria-label="' . $label . ' ' . __( 'submenu', 'gutenberg' ) . '" class="wp-block-navigation-item__content wp-block-navigation-submenu__toggle" aria-expanded="false">';
    229234
    230235        // Wrap title with span to isolate it from submenu icon.
    231236        $html .= '<span class="wp-block-navigation-item__label">';
    232237
    233         if ( isset( $attributes['label'] ) ) {
    234             $html .= wp_kses(
    235                 $attributes['label'],
    236                 array(
    237                     'code'   => array(),
    238                     'em'     => array(),
    239                     'img'    => array(
    240                         'scale' => array(),
    241                         'class' => array(),
    242                         'style' => array(),
    243                         'src'   => array(),
    244                         'alt'   => array(),
    245                     ),
    246                     's'      => array(),
    247                     'span'   => array(
    248                         'style' => array(),
    249                     ),
    250                     'strong' => array(),
    251                 )
    252             );
    253         }
     238        $html .= $label;
    254239
    255240        $html .= '</span>';
  • trunk/src/wp-includes/blocks/navigation.php

    r52277 r52324  
    55 * @package WordPress
    66 */
     7
     8// These functions are used for the __unstableLocation feature and only active
     9// when the gutenberg plugin is active.
     10if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
     11    /**
     12     * Returns the menu items for a WordPress menu location.
     13     *
     14     * @param string $location The menu location.
     15     * @return array Menu items for the location.
     16     */
     17    function block_core_navigation_get_menu_items_at_location( $location ) {
     18        if ( empty( $location ) ) {
     19            return;
     20        }
     21
     22        // Build menu data. The following approximates the code in
     23        // `wp_nav_menu()` and `gutenberg_output_block_nav_menu`.
     24
     25        // Find the location in the list of locations, returning early if the
     26        // location can't be found.
     27        $locations = get_nav_menu_locations();
     28        if ( ! isset( $locations[ $location ] ) ) {
     29            return;
     30        }
     31
     32        // Get the menu from the location, returning early if there is no
     33        // menu or there was an error.
     34        $menu = wp_get_nav_menu_object( $locations[ $location ] );
     35        if ( ! $menu || is_wp_error( $menu ) ) {
     36            return;
     37        }
     38
     39        $menu_items = wp_get_nav_menu_items( $menu->term_id, array( 'update_post_term_cache' => false ) );
     40        _wp_menu_item_classes_by_context( $menu_items );
     41
     42        return $menu_items;
     43    }
     44
     45
     46    /**
     47     * Sorts a standard array of menu items into a nested structure keyed by the
     48     * id of the parent menu.
     49     *
     50     * @param array $menu_items Menu items to sort.
     51     * @return array An array keyed by the id of the parent menu where each element
     52     *               is an array of menu items that belong to that parent.
     53     */
     54    function block_core_navigation_sort_menu_items_by_parent_id( $menu_items ) {
     55        $sorted_menu_items = array();
     56        foreach ( (array) $menu_items as $menu_item ) {
     57            $sorted_menu_items[ $menu_item->menu_order ] = $menu_item;
     58        }
     59        unset( $menu_items, $menu_item );
     60
     61        $menu_items_by_parent_id = array();
     62        foreach ( $sorted_menu_items as $menu_item ) {
     63            $menu_items_by_parent_id[ $menu_item->menu_item_parent ][] = $menu_item;
     64        }
     65
     66        return $menu_items_by_parent_id;
     67    }
     68
     69    /**
     70     * Turns menu item data into a nested array of parsed blocks
     71     *
     72     * @param array $menu_items               An array of menu items that represent
     73     *                                        an individual level of a menu.
     74     * @param array $menu_items_by_parent_id  An array keyed by the id of the
     75     *                                        parent menu where each element is an
     76     *                                        array of menu items that belong to
     77     *                                        that parent.
     78     * @return array An array of parsed block data.
     79     */
     80    function block_core_navigation_parse_blocks_from_menu_items( $menu_items, $menu_items_by_parent_id ) {
     81        if ( empty( $menu_items ) ) {
     82            return array();
     83        }
     84
     85        $blocks = array();
     86
     87        foreach ( $menu_items as $menu_item ) {
     88            $class_name       = ! empty( $menu_item->classes ) ? implode( ' ', (array) $menu_item->classes ) : null;
     89            $id               = ( null !== $menu_item->object_id && 'custom' !== $menu_item->object ) ? $menu_item->object_id : null;
     90            $opens_in_new_tab = null !== $menu_item->target && '_blank' === $menu_item->target;
     91            $rel              = ( null !== $menu_item->xfn && '' !== $menu_item->xfn ) ? $menu_item->xfn : null;
     92            $kind             = null !== $menu_item->type ? str_replace( '_', '-', $menu_item->type ) : 'custom';
     93
     94            $block = array(
     95                'blockName' => isset( $menu_items_by_parent_id[ $menu_item->ID ] ) ? 'core/navigation-submenu' : 'core/navigation-link',
     96                'attrs'     => array(
     97                    'className'     => $class_name,
     98                    'description'   => $menu_item->description,
     99                    'id'            => $id,
     100                    'kind'          => $kind,
     101                    'label'         => $menu_item->title,
     102                    'opensInNewTab' => $opens_in_new_tab,
     103                    'rel'           => $rel,
     104                    'title'         => $menu_item->attr_title,
     105                    'type'          => $menu_item->object,
     106                    'url'           => $menu_item->url,
     107                ),
     108            );
     109
     110            $block['innerBlocks']  = isset( $menu_items_by_parent_id[ $menu_item->ID ] )
     111                ? block_core_navigation_parse_blocks_from_menu_items( $menu_items_by_parent_id[ $menu_item->ID ], $menu_items_by_parent_id )
     112                : array();
     113            $block['innerContent'] = array_map( 'serialize_block', $block['innerBlocks'] );
     114
     115            $blocks[] = $block;
     116        }
     117
     118        return $blocks;
     119    }
     120}
    7121
    8122/**
     
    146260    // - https://github.com/WordPress/wordpress-develop/blob/ba943e113d3b31b121f77a2d30aebe14b047c69d/src/wp-includes/nav-menu.php#L613-L619.
    147261    // - https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters.
    148     $navigation_posts = get_posts(
    149         array(
    150             'post_type'      => 'wp_navigation',
    151             'order'          => 'ASC',
    152             'orderby'        => 'name',
    153             'posts_per_page' => 1, // only the first post.
    154             's'              => '<!-- wp:', // look for block indicators to ensure we only include non-empty Navigations.
    155         )
    156     );
    157     return count( $navigation_posts ) ? $navigation_posts[0] : null;
    158 
     262    $parsed_args = array(
     263        'post_type'      => 'wp_navigation',
     264        'no_found_rows'  => true,
     265        'order'          => 'ASC',
     266        'orderby'        => 'name',
     267        'post_status'    => 'publish',
     268        'posts_per_page' => 20, // Try the first 20 posts.
     269    );
     270
     271    $navigation_posts = new WP_Query( $parsed_args );
     272    foreach ( $navigation_posts->posts as $navigation_post ) {
     273        if ( has_blocks( $navigation_post ) ) {
     274            return $navigation_post;
     275        }
     276    }
     277
     278    return null;
    159279}
    160280
     
    273393    $inner_blocks = $block->inner_blocks;
    274394
    275     // If `__unstableLocation` is defined, create inner blocks from the classic menu assigned to that location.
    276     if ( empty( $inner_blocks ) && array_key_exists( '__unstableLocation', $attributes ) ) {
    277         $menu_items = gutenberg_get_menu_items_at_location( $attributes['__unstableLocation'] );
    278         if ( empty( $menu_items ) ) {
    279             return '';
    280         }
    281 
    282         $menu_items_by_parent_id = gutenberg_sort_menu_items_by_parent_id( $menu_items );
    283         $parsed_blocks           = gutenberg_parse_blocks_from_menu_items( $menu_items_by_parent_id[0], $menu_items_by_parent_id );
    284         $inner_blocks            = new WP_Block_List( $parsed_blocks, $attributes );
    285     }
    286 
    287395    // Ensure that blocks saved with the legacy ref attribute name (navigationMenuId) continue to render.
    288396    if ( array_key_exists( 'navigationMenuId', $attributes ) ) {
    289397        $attributes['ref'] = $attributes['navigationMenuId'];
    290398    }
     399
     400    // If:
     401    // - the gutenberg plugin is active
     402    // - `__unstableLocation` is defined
     403    // - we have menu items at the defined location
     404    // - we don't have a relationship to a `wp_navigation` Post (via `ref`).
     405    // ...then create inner blocks from the classic menu assigned to that location.
     406    if (
     407        defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN &&
     408        array_key_exists( '__unstableLocation', $attributes ) &&
     409        ! array_key_exists( 'ref', $attributes ) &&
     410        ! empty( block_core_navigation_get_menu_items_at_location( $attributes['__unstableLocation'] ) )
     411    ) {
     412        $menu_items = block_core_navigation_get_menu_items_at_location( $attributes['__unstableLocation'] );
     413        if ( empty( $menu_items ) ) {
     414            return '';
     415        }
     416
     417        $menu_items_by_parent_id = block_core_navigation_sort_menu_items_by_parent_id( $menu_items );
     418        $parsed_blocks           = block_core_navigation_parse_blocks_from_menu_items( $menu_items_by_parent_id[0], $menu_items_by_parent_id );
     419        $inner_blocks            = new WP_Block_List( $parsed_blocks, $attributes );
     420    }
     421
    291422    // Load inner blocks from the navigation post.
    292423    if ( array_key_exists( 'ref', $attributes ) ) {
  • trunk/src/wp-includes/blocks/page-list.php

    r52275 r52324  
    174174        }
    175175
     176        $title = wp_kses( $page['title'], wp_kses_allowed_html( 'post' ) );
     177
    176178        $markup .= '<li class="wp-block-pages-list__item' . $css_class . '"' . $style_attribute . '>';
    177179
    178180        if ( isset( $page['children'] ) && $is_navigation_child && $open_submenus_on_click ) {
    179             $markup .= '<button class="' . $navigation_child_content_class . ' wp-block-navigation-submenu__toggle" aria-expanded="false">' . wp_kses(
    180                 $page['title'],
    181                 wp_kses_allowed_html( 'post' )
    182             ) . '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>' .
     181            $markup .= '<button aria-label="' . $title . ' ' . __( 'submenu', 'gutenberg' ) . '" class="' . $navigation_child_content_class . ' wp-block-navigation-submenu__toggle" aria-expanded="false">' . $title . '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>' .
    183182            '</button>';
    184183        } else {
    185             $markup .= '<a class="wp-block-pages-list__item__link' . $navigation_child_content_class . '" href="' . esc_url( $page['link'] ) . '"' . $aria_current . '>' . wp_kses(
    186                 $page['title'],
    187                 wp_kses_allowed_html( 'post' )
    188             ) . '</a>';
     184            $markup .= '<a class="wp-block-pages-list__item__link' . $navigation_child_content_class . '" href="' . esc_url( $page['link'] ) . '"' . $aria_current . '>' . $title . '</a>';
    189185        }
    190186
    191187        if ( isset( $page['children'] ) ) {
    192188            if ( $is_navigation_child && $show_submenu_icons && ! $open_submenus_on_click ) {
    193                 $markup .= '<button class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
     189                $markup .= '<button aria-label="' . $title . ' ' . __( 'submenu', 'gutenberg' ) . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">';
    194190                $markup .= '<span class="wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" role="img" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg></span>';
    195191                $markup .= '</button>';
  • trunk/src/wp-includes/blocks/query-pagination-next/block.json

    r52277 r52324  
    22    "apiVersion": 2,
    33    "name": "core/query-pagination-next",
    4     "title": "Query Pagination Next",
     4    "title": "Next Page",
    55    "category": "design",
    66    "parent": [ "core/query-pagination" ],
  • trunk/src/wp-includes/blocks/query-pagination-numbers/block.json

    r50929 r52324  
    22    "apiVersion": 2,
    33    "name": "core/query-pagination-numbers",
    4     "title": "Query Pagination Numbers",
     4    "title": "Page Numbers",
    55    "category": "design",
    66    "parent": [ "core/query-pagination" ],
  • trunk/src/wp-includes/blocks/query-pagination-previous/block.json

    r52277 r52324  
    22    "apiVersion": 2,
    33    "name": "core/query-pagination-previous",
    4     "title": "Query Pagination Previous",
     4    "title": "Previous Page",
    55    "category": "design",
    66    "parent": [ "core/query-pagination" ],
  • trunk/src/wp-includes/blocks/query-pagination/block.json

    r52042 r52324  
    22    "apiVersion": 2,
    33    "name": "core/query-pagination",
    4     "title": "Query Pagination",
     4    "title": "Pagination",
    55    "category": "design",
    66    "parent": [ "core/query" ],
  • trunk/src/wp-includes/blocks/template-part.php

    r52275 r52324  
    5151                $area = $area_terms[0]->name;
    5252            }
     53            /**
     54             * Fires when a block template part is loaded from a template post stored in the database.
     55             *
     56             * @since 5.9.0
     57             *
     58             * @param string  $template_part_id   The requested template part namespaced to the theme.
     59             * @param array   $attributes         The block attributes.
     60             * @param WP_Post $template_part_post The template part post object.
     61             * @param string  $content            The template part content.
     62             */
     63            do_action( 'render_block_core_template_part_post', $template_part_id, $attributes, $template_part_post, $content );
    5364        } else {
    5465            // Else, if the template part was provided by the active theme,
     
    6172                        ? _inject_theme_attribute_in_block_template_content( $content )
    6273                        : '';
     74            }
     75
     76            if ( '' !== $content && null !== $content ) {
     77                /**
     78                 * Fires when a block template part is loaded from a template part in the theme.
     79                 *
     80                 * @since 5.9.0
     81                 *
     82                 * @param string $template_part_id        The requested template part namespaced to the theme.
     83                 * @param array  $attributes              The block attributes.
     84                 * @param string $template_part_file_path Absolute path to the template path.
     85                 * @param string $content                 The template part content.
     86                 */
     87                do_action( 'render_block_core_template_part_file', $template_part_id, $attributes, $template_part_file_path, $content );
     88            } else {
     89                /**
     90                 * Fires when a requested block template part does not exist in the database nor in the theme.
     91                 *
     92                 * @since 5.9.0
     93                 *
     94                 * @param string $template_part_id        The requested template part namespaced to the theme.
     95                 * @param array  $attributes              The block attributes.
     96                 * @param string $template_part_file_path Absolute path to the not found template path.
     97                 */
     98                do_action( 'render_block_core_template_part_none', $template_part_id, $attributes, $template_part_file_path );
    6399            }
    64100        }
Note: See TracChangeset for help on using the changeset viewer.