diff --git a/package-lock.json b/package-lock.json index 25c2a9e25e106..2ed04bc573d21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1452,9 +1452,9 @@ "integrity": "sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==" }, "@emotion/react": { - "version": "11.6.0", - "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.6.0.tgz", - "integrity": "sha512-23MnRZFBN9+D1lHXC5pD6z4X9yhPxxtHr6f+iTGz6Fv6Rda0GdefPrsHL7otsEf+//7uqCdT5QtHeRxHCERzuw==", + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.7.0.tgz", + "integrity": "sha512-WL93hf9+/2s3cA1JVJlz8+Uy6p6QWukqQFOm2OZO5ki51hfucHMOmbSjiyC3t2Y4RI8XUmBoepoc/24ny/VBbA==", "requires": { "@babel/runtime": "^7.13.10", "@emotion/cache": "^11.6.0", @@ -2258,23 +2258,23 @@ "dev": true }, "@popperjs/core": { - "version": "2.10.2", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.2.tgz", - "integrity": "sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==" + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.0.tgz", + "integrity": "sha512-zrsUxjLOKAzdewIDRWy9nsV1GQsKBCWaGwsZQlCgr6/q+vjyZhFgqedLfFBuI9anTPEUT4APq9Mu0SZBTzIcGQ==" }, "@react-spring/animated": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.0.tgz", - "integrity": "sha512-QvuyW77eDvLhdJyO6FFldlWlvnuKK2cpOx4+Zr962RyT/0IO1tbNDRO6G1vM8va6mbv6tmfYmRGKmKYePN3kVg==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.1.tgz", + "integrity": "sha512-23YaERZ++BwZ8F8PxPFqrpOwp/JZun1Pj6aHZtPAU42j5LycBRasT9XMw7Eyr7zNFhT+rl3R3wFfd4WX6Ax+UA==", "requires": { "@react-spring/shared": "~9.3.0", "@react-spring/types": "~9.3.0" } }, "@react-spring/core": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.0.tgz", - "integrity": "sha512-SZQOIX7wkIagmucAi7zxqGGIb9A60o9n5922UrWo8Kl3FdG7FgrNwqr0kOI43/pMFeL70/PXwFhBatB03N5ctw==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.1.tgz", + "integrity": "sha512-8rmfmEHLHGtF1CUiXRn64YJqsXNxv2cGX8oNnBnsuoE33c48Zc34t2VIMB4R9q5zwIUCvDBGfiEenA8ZAPxqOQ==", "requires": { "@react-spring/animated": "~9.3.0", "@react-spring/shared": "~9.3.0", @@ -2282,28 +2282,28 @@ } }, "@react-spring/rafz": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.0.tgz", - "integrity": "sha512-FD04d2TNb3xOZ6+04qwDmC3d0H4X6gvhsxU71/nSm4PPYRqFzZEolcVPmrHlbGzco3bvXKI+Kp2pIrpXLPUJFA==" + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.1.tgz", + "integrity": "sha512-fEBMCarGVl+/2kdO+g6Zig4F+3ymwmcGN8S71gb1c7Cbbxb87kviPz8EhshfIHoiLeJPGlqwcuGbxNmZbBamvA==" }, "@react-spring/shared": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.0.tgz", - "integrity": "sha512-7ZFY2Blu/wxbLGcYvQavyLUVi9bK/is1bsn11qZ9AaZb4iucRyIf2jgjBfKZFCq4qgi7S/7QmDQG7sucUyLELg==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.1.tgz", + "integrity": "sha512-jhPpxzURGo6Nty90ex1lkxmZae7w/VAbnGmb/nXcYoZwSoNR+W2aAd00iXsh2ZGz6MgoJOsc495JeG3uC7Am8A==", "requires": { "@react-spring/rafz": "~9.3.0", "@react-spring/types": "~9.3.0" } }, "@react-spring/types": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.0.tgz", - "integrity": "sha512-q4cDr2RSPblXMD3Rxvk6qcC7nmhhfV2izEBP06hb8ZCXznA6qJirG3RMpi29kBtEQiw1lWR59hAXKhauaPtbOA==" + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.1.tgz", + "integrity": "sha512-W/YMJMX35XgGGzX0gKORBTwnvQ+1loDOFN3XlZkW5fgpEY+7VkRUpPyqPWXQr3n6lHrsLmHIGdpznqZi54ACTQ==" }, "@react-spring/web": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.0.tgz", - "integrity": "sha512-OTAGKRdyz6fLRR1tABFyw9KMpytyATIndQrj0O6RG47GfjiInpf4+WZKxo763vpS7z1OlnkI81WLUm/sqOqAnA==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.1.tgz", + "integrity": "sha512-sisZIgFGva/Z+xKWPSfXpukF0AP3kR9ALTxlHL87fVotMUCJX5vtH/YlVcywToEFwTHKt3MpI5Wy2M+vgVEeaw==", "requires": { "@react-spring/animated": "~9.3.0", "@react-spring/core": "~9.3.0", @@ -3529,21 +3529,21 @@ } }, "@wordpress/block-directory": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.11.tgz", - "integrity": "sha512-zSFsm+yUcrgZSWQVXWPd8jp+K1Lf/S5JITUp1cKReae9hhHgvmEpQydmWNGgjIadeALpcka5j0JIe2AJAqGeBA==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.12.tgz", + "integrity": "sha512-nZqGheHJ1lapCacPgz+pnk2Rb7i6EmJHLSsAh06Om9lXo3ARph1bhnHlS7KME0zADtam7uHteKYE8oSn0jTLcg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", - "@wordpress/edit-post": "^5.0.11", - "@wordpress/editor": "^12.0.8", + "@wordpress/edit-post": "^5.0.12", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/html-entities": "^3.2.3", @@ -3556,9 +3556,9 @@ } }, "@wordpress/block-editor": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.5.tgz", - "integrity": "sha512-s5kmYFizQlf2K2JXaI5Iw3Zo8mYa6sCw0BMDt9Z+67NNyAvsbf9jPA6Uw80yRsCVcjz+cYcgHv3+Tcz9a6VrUw==", + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.6.tgz", + "integrity": "sha512-t5AL0nQuakopOoH2RgVflGvBwik+IvqRd2UOQsjVNeCIZLpbI4up9QYHtBidoqu4Zye6aGsL5LMDt7bWmWhn9A==", "requires": { "@babel/runtime": "^7.16.0", "@react-spring/web": "^9.2.4", @@ -3567,7 +3567,7 @@ "@wordpress/blob": "^3.2.2", "@wordpress/block-serialization-default-parser": "^4.2.3", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -3603,20 +3603,20 @@ } }, "@wordpress/block-library": { - "version": "6.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.9.tgz", - "integrity": "sha512-5etkM+WKn7jUlZsSiuA6jVBFlBvxn5szu5Shr6GbLnuUwh2pEhj/BY/aqXcyjNXcoUT2WmURcCPBjclgm2CvBA==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.10.tgz", + "integrity": "sha512-4FVKwUU+ed9oOpk8v8iHq2ZZvmW3AN/dzZ9AAv8ywqoU8IEvw0WjSI87WABT9414w63wE275X7M5Q2eja44ahg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", "@wordpress/autop": "^3.2.3", "@wordpress/blob": "^3.2.2", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/date": "^4.2.3", "@wordpress/deprecated": "^3.2.3", @@ -3627,14 +3627,14 @@ "@wordpress/html-entities": "^3.2.3", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/is-shallow-equal": "^4.2.1", "@wordpress/keycodes": "^3.2.4", "@wordpress/notices": "^3.2.7", "@wordpress/primitives": "^3.0.4", - "@wordpress/reusable-blocks": "^3.0.11", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/rich-text": "^5.0.6", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", "@wordpress/viewport": "^4.0.6", "classnames": "^2.3.1", @@ -3689,9 +3689,9 @@ "dev": true }, "@wordpress/components": { - "version": "19.0.5", - "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.0.5.tgz", - "integrity": "sha512-xtXTpPvmByVPjIWWo/v8ZzVsEtx9dq6bsdOOkDTnFFUXTcgxJb12RmgbsDR+E/L+z9IwuGxLwt08EGrWWvKF6w==", + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.1.0.tgz", + "integrity": "sha512-34hYwy3vtsWHdFFvE6cPlV6KxKMa4uaY2dvZlJ++QMVA24geGRfwtM1ZvGgs9fVjo0koC332sN2LGS7wx6aXew==", "requires": { "@babel/runtime": "^7.16.0", "@emotion/cache": "^11.4.0", @@ -3755,9 +3755,9 @@ } }, "@wordpress/core-data": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.0.7.tgz", - "integrity": "sha512-N9za/cxd3KiZsHZj5kcD4zYcPgv7PdCQQx0GB5rBzceYzgON/WG3Y/QhoFHFwEw5OOpBIcSKehV975VByRD+qA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.0.8.tgz", + "integrity": "sha512-nv7lXFU+7kdPhoD/Cz5oi6Xu1ODPRDwoMYYpIPB2nEfLi6foleDxhUuib9unwAtvUKNtQnrClDesys7l6pXMwQ==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", @@ -3785,30 +3785,30 @@ } }, "@wordpress/customize-widgets": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.11.tgz", - "integrity": "sha512-3HSHChnMtT7JCXaITzDgM0zwbDopL3CNofhCJf/lQR//msiLiFK2MzjZrgJdQXTzVcPN7fXgIsf5cFJeHsuADg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.12.tgz", + "integrity": "sha512-83/LFQo7UJ8X2B+yiByRJKWHJV4jpfHsT7RZDg5Vd06bR/UXbM7d8TCCYDvUgn0HuadGM+XcFxxhfYUTm68yHA==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/is-shallow-equal": "^4.2.1", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", - "@wordpress/widgets": "^2.0.11", + "@wordpress/widgets": "^2.0.12", "classnames": "^2.3.1", "lodash": "^4.17.21" } @@ -3937,27 +3937,27 @@ } }, "@wordpress/edit-post": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.11.tgz", - "integrity": "sha512-UVFve7ETYdJjDm2TgAJKOxiRmoTYNu75fkbvTluxnKbvWKDXzY0QCpw47JY4g+JmYBRda6ZGV51eY5P5G5BZ6Q==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.12.tgz", + "integrity": "sha512-A2nt6LXdVcVqUay08P1W0J2t9vUmoxOkZPH4qKhBhUlMfmHKtyqMBiNQFui9drPMWVUb5HB3zsUmlAWsv429Vw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", - "@wordpress/editor": "^12.0.8", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", @@ -3982,35 +3982,37 @@ } }, "@wordpress/edit-site": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.11.tgz", - "integrity": "sha512-jwCXMVDg6ucNOur1lpQBDlXNuUv6RzpOK/I2rfhw9Cqv0DyFfWSL6NIxMZFuqfyhCeqnUaz/GT/CVgghx5Ssvw==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.12.tgz", + "integrity": "sha512-Uxn7mLNCdvND/4ZuMKiNSBSD09hDAdjYsCZDAnZ3HE0lc1DrCQFI8lF911JSYWY2fmiTbAhqGBKHOci7XK4b3A==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", - "@wordpress/editor": "^12.0.8", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/html-entities": "^3.2.3", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", "@wordpress/plugins": "^4.0.6", "@wordpress/primitives": "^3.0.4", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/url": "^3.3.1", + "@wordpress/viewport": "^4.0.6", "classnames": "^2.3.1", "downloadjs": "^1.4.7", "file-saver": "^2.0.2", @@ -4020,35 +4022,35 @@ } }, "@wordpress/edit-widgets": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.6.tgz", - "integrity": "sha512-NuVehrAajzThQLh313FiyhjfIFpCwolyPjndj+urUp+iCKpLTMKTKSrZpC6tQsfycrmpPrnL/RiWsNeAV1zGMg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.7.tgz", + "integrity": "sha512-FwbaqGqGazNSfZth5HG6Kl6l5yCiyL/+h4dSGQrplMxvNlQDC8Sx2x/ti/iH9f82+FOmIbAGvJtZaeRNOI7WZw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", "@wordpress/plugins": "^4.0.6", - "@wordpress/reusable-blocks": "^3.0.11", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/reusable-blocks": "^3.0.12", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", - "@wordpress/widgets": "^2.0.11", + "@wordpress/widgets": "^2.0.12", "classnames": "^2.3.1", "lodash": "^4.17.21", "rememo": "^3.0.0", @@ -4056,20 +4058,20 @@ } }, "@wordpress/editor": { - "version": "12.0.8", - "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.8.tgz", - "integrity": "sha512-vEEHEH2Pkg/FzfgZqTZI6RhTcGrRwwgdnSrrJJMXQjKg3ieLpSuKZ2LaZEhfqY2ICTuZ/49A9pxOm6FzkQW8Xg==", + "version": "12.0.9", + "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.9.tgz", + "integrity": "sha512-yzwkrrCJlgW3VR5xNqsSoLQztYgqqe20goJfRXF+43ZQBTNr0kUbHb3+xF4J/cd3WxqWYYPb2WeHcR65qrnYqw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", "@wordpress/autop": "^3.2.3", "@wordpress/blob": "^3.2.2", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", "@wordpress/date": "^4.2.3", @@ -4084,9 +4086,9 @@ "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", - "@wordpress/reusable-blocks": "^3.0.11", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/rich-text": "^5.0.6", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", "@wordpress/wordcount": "^3.2.3", "classnames": "^2.3.1", @@ -4173,14 +4175,14 @@ } }, "@wordpress/format-library": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.11.tgz", - "integrity": "sha512-RhEQtTDUjXJMNkSCL8v+l2/N8T8kizfSoaD84bbJbSU1sahUF7Cdxtlp06z374iTZDzIqZxtEftWRljJs/AqVA==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.12.tgz", + "integrity": "sha512-gQzGsv63HwQrDNIQvxEC/xwR730Mv+VkSXvCfHip8dBL1cva4CHzrsnYbXGJuaQEEX7yOSv+IPLcrA8rTy2fzw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/components": "^19.0.5", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", @@ -4235,13 +4237,13 @@ } }, "@wordpress/interface": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.7.tgz", - "integrity": "sha512-mXsTvVKfDctZ1Kkhto2NLCs8xi3cHFD7QU8OIuofgO8rKlQ4ro7+QTuu1N/SfGRnmTQTX0d1gUMzi4JwWp3nsA==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.8.tgz", + "integrity": "sha512-bvvNJ0uuBozCSpRJx/MSQgC8ReH5dUL8pFJc4ky923xFwMjmOybkQbzf/A4uCiKeGkp0H9mL0VvenDkxBzmw4w==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -4339,13 +4341,13 @@ } }, "@wordpress/list-reusable-blocks": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.9.tgz", - "integrity": "sha512-elYJLYWWeMomiUlFmm/GHJrLvjOXGstUGNHVo6NkmnKi3crYc2QNKn+vHnFaXNLi7n1eG0QIUo4guInkyv224g==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.10.tgz", + "integrity": "sha512-B8+5GWPRhRDryB44aTidVhe6zCUwSoWMiCzEJ6E9J84bh2P5EfTzQBtzyVBNZYxyn58ZViCW2cnt/yQFh85OrA==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -4383,12 +4385,12 @@ "dev": true }, "@wordpress/nux": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.9.tgz", - "integrity": "sha512-HGQVQm/8YAyNCIDQRzwAQSikT4tkJ/Gf/4NU2LbQf45gk0vuPLlbXmlF/cA/AQdA8l8hKfE51SfETRRPIE63IA==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.10.tgz", + "integrity": "sha512-W9WyfondJ9IGo9W0QShbP2RQbiCctK0Vx916SIBW/xMTux+nB04MaKkfQsuKFWMsMQGsUZHcv6j/uRVCrRpAyQ==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -4513,15 +4515,15 @@ } }, "@wordpress/reusable-blocks": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.11.tgz", - "integrity": "sha512-5EQ+qrRDscEmILir+atYyZMgPOoHwZEYlxesRj1pEBO/dQX2tpZKt1W8SfkWSukRQYyqUby8z9sZ04ga+/Khlg==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.12.tgz", + "integrity": "sha512-Q38sB3Lo3qHM6JHQoHuEeP9UIsTLBL36dbiaBGyXkMexLG5djr4RIjbzn024nUSk8no+TSqylwxiH/tpW5H8sw==", "requires": { - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -5485,14 +5487,14 @@ } }, "@wordpress/server-side-render": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.9.tgz", - "integrity": "sha512-9Pv6909FWDuW8OGZUR/pY3D7+YBIT+O/PI9JcNuNtbUK7YuEc+PF7KNTQ0dTuxRvOYy3kQNw/a4pWefq1HDNzA==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.10.tgz", + "integrity": "sha512-6Ifor/lSJEPpqsdHdNt4NhO/ufR0FyjKN4uIhyZW69BdK6OZrXlovLB//vOgR4a+aTqNprbWNbx+lU7nDXASRg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -5558,17 +5560,17 @@ "integrity": "sha512-iG1Hq56RK3N6AJqAD1sRLWRIJatfYn+NrPyrfqRNZNYXHM8Vj/s7ABNMbIU0Y99vXkBE83rvCdbMkugNoI2jXA==" }, "@wordpress/widgets": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.11.tgz", - "integrity": "sha512-XIY/W7WnEXbWSeycFtxaShHYxtJOlTgX9L4DCo/hh2IHkG3HHsZ8qIx0lMtsMq2BKZ2mbL3GCp/cjgBNQygUhg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.12.tgz", + "integrity": "sha512-XhECJrxmRHT4sFAQCoYWDMADKzN8M5RNfvpZeDJlAa+clk1JN15ljsUsvQR8MkIN4o+W261wVkbCZX2Jej+i0w==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -18301,9 +18303,9 @@ } }, "micromodal": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.6.tgz", - "integrity": "sha512-2VDso2a22jWPpqwuWT/4RomVpoU3Bl9qF9D01xzwlNp5UVsImeA0gY4nSpF44vqcQtQOtkiMUV9EZkAJSRxBsg==" + "version": "0.4.10", + "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.10.tgz", + "integrity": "sha512-BUrEnzMPFBwK8nOE4xUDYHLrlGlLULQVjpja99tpJQPSUEWgw3kTLp1n1qv0HmKU29AiHE7Y7sMLiRziDK4ghQ==" }, "miller-rabin": { "version": "4.0.1", diff --git a/package.json b/package.json index 25363b1af3fdb..cd8e86ae79c8a 100644 --- a/package.json +++ b/package.json @@ -82,53 +82,53 @@ "@wordpress/api-fetch": "5.2.6", "@wordpress/autop": "3.2.3", "@wordpress/blob": "3.2.2", - "@wordpress/block-directory": "3.0.11", - "@wordpress/block-editor": "8.0.5", - "@wordpress/block-library": "6.0.9", + "@wordpress/block-directory": "3.0.12", + "@wordpress/block-editor": "8.0.6", + "@wordpress/block-library": "6.0.10", "@wordpress/block-serialization-default-parser": "4.2.3", "@wordpress/blocks": "11.1.4", - "@wordpress/components": "19.0.5", + "@wordpress/components": "19.1.0", "@wordpress/compose": "5.0.6", - "@wordpress/core-data": "4.0.7", - "@wordpress/customize-widgets": "2.0.11", + "@wordpress/core-data": "4.0.8", + "@wordpress/customize-widgets": "2.0.12", "@wordpress/data": "6.1.4", "@wordpress/data-controls": "2.2.7", "@wordpress/date": "4.2.3", "@wordpress/deprecated": "3.2.3", "@wordpress/dom": "3.2.7", "@wordpress/dom-ready": "3.2.3", - "@wordpress/edit-post": "5.0.11", - "@wordpress/edit-site": "3.0.11", - "@wordpress/edit-widgets": "3.1.6", - "@wordpress/editor": "12.0.8", + "@wordpress/edit-post": "5.0.12", + "@wordpress/edit-site": "3.0.12", + "@wordpress/edit-widgets": "3.1.7", + "@wordpress/editor": "12.0.9", "@wordpress/element": "4.0.4", "@wordpress/escape-html": "2.2.3", - "@wordpress/format-library": "3.0.11", + "@wordpress/format-library": "3.0.12", "@wordpress/hooks": "3.2.2", "@wordpress/html-entities": "3.2.3", "@wordpress/i18n": "4.2.4", "@wordpress/icons": "6.1.1", - "@wordpress/interface": "4.1.7", + "@wordpress/interface": "4.1.8", "@wordpress/is-shallow-equal": "4.2.1", "@wordpress/keyboard-shortcuts": "3.0.6", "@wordpress/keycodes": "3.2.4", - "@wordpress/list-reusable-blocks": "3.0.9", + "@wordpress/list-reusable-blocks": "3.0.10", "@wordpress/media-utils": "3.0.5", "@wordpress/notices": "3.2.7", - "@wordpress/nux": "5.0.9", + "@wordpress/nux": "5.0.10", "@wordpress/plugins": "4.0.6", "@wordpress/primitives": "3.0.4", "@wordpress/priority-queue": "2.2.3", "@wordpress/redux-routine": "4.2.2", - "@wordpress/reusable-blocks": "3.0.11", + "@wordpress/reusable-blocks": "3.0.12", "@wordpress/rich-text": "5.0.6", - "@wordpress/server-side-render": "3.0.9", + "@wordpress/server-side-render": "3.0.10", "@wordpress/shortcode": "3.2.3", "@wordpress/token-list": "2.2.2", "@wordpress/url": "3.3.1", "@wordpress/viewport": "4.0.6", "@wordpress/warning": "2.2.2", - "@wordpress/widgets": "2.0.11", + "@wordpress/widgets": "2.0.12", "@wordpress/wordcount": "3.2.3", "backbone": "1.4.0", "clipboard": "2.0.8", diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index b858d7ee53a0f..ea2b048994b79 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -23,8 +23,6 @@ wp_die( __( 'The theme you are currently using is not compatible with Full Site Editing.' ) ); } -// Used in the HTML title tag. -$title = __( 'Editor (beta)' ); $parent_file = 'themes.php'; // Flag that we're loading the block editor. @@ -59,6 +57,9 @@ static function( $classes ) { wp_die( __( 'Invalid post type.' ) ); } + // Used in the HTML title tag. + $title = $post_type->labels->name; + $preload_paths = array( '/', '/wp/v2/types/' . $post_type->name . '?context=edit', @@ -81,6 +82,9 @@ static function( $classes ) { } else { + // Used in the HTML title tag. + $title = __( 'Editor (beta)' ); + $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_custom_post_type_id(); $active_theme = wp_get_theme()->get_stylesheet(); $preload_paths = array( diff --git a/src/wp-includes/assets/script-loader-packages.php b/src/wp-includes/assets/script-loader-packages.php index 6b69e9db20005..02808b547ccc4 100644 --- a/src/wp-includes/assets/script-loader-packages.php +++ b/src/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - 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' => '3ffa376560961ee3a73393f18e786d55'), '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' => '6b537dd5ff318e1d3ac6e32944977862'), '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' => '3de5cbb0aefe275d8abf23f738c797fa'), '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' => '3ee92c4459cc98f8e6ebcdb8ce35e578'), '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-url', 'wp-viewport'), 'version' => '9564025f796935e5ed95304230462642'), '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')); \ No newline at end of file + 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' => 'f32e4a6767256ef0a5e91fe3788fe9de'), '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' => '868f97e65c74e6f8bf8e7ae2fb8b4261'), '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' => '740d7b9c8beb2b47d15ce1f3c590dee5'), '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' => '2f5a0019e6e13496c0c6466f930380c3'), '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')); \ No newline at end of file diff --git a/src/wp-includes/block-editor.php b/src/wp-includes/block-editor.php index 641a1970cc74c..aaa249cb7ba8c 100644 --- a/src/wp-includes/block-editor.php +++ b/src/wp-includes/block-editor.php @@ -338,8 +338,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex // These settings may need to be updated based on data coming from theme.json sources. if ( isset( $editor_settings['__experimentalFeatures']['color']['palette'] ) ) { $colors_by_origin = $editor_settings['__experimentalFeatures']['color']['palette']; - $editor_settings['colors'] = isset( $colors_by_origin['user'] ) ? - $colors_by_origin['user'] : ( + $editor_settings['colors'] = isset( $colors_by_origin['custom'] ) ? + $colors_by_origin['custom'] : ( isset( $colors_by_origin['theme'] ) ? $colors_by_origin['theme'] : $colors_by_origin['default'] @@ -347,8 +347,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex } if ( isset( $editor_settings['__experimentalFeatures']['color']['gradients'] ) ) { $gradients_by_origin = $editor_settings['__experimentalFeatures']['color']['gradients']; - $editor_settings['gradients'] = isset( $gradients_by_origin['user'] ) ? - $gradients_by_origin['user'] : ( + $editor_settings['gradients'] = isset( $gradients_by_origin['custom'] ) ? + $gradients_by_origin['custom'] : ( isset( $gradients_by_origin['theme'] ) ? $gradients_by_origin['theme'] : $gradients_by_origin['default'] @@ -356,8 +356,8 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex } if ( isset( $editor_settings['__experimentalFeatures']['typography']['fontSizes'] ) ) { $font_sizes_by_origin = $editor_settings['__experimentalFeatures']['typography']['fontSizes']; - $editor_settings['fontSizes'] = isset( $font_sizes_by_origin['user'] ) ? - $font_sizes_by_origin['user'] : ( + $editor_settings['fontSizes'] = isset( $font_sizes_by_origin['custom'] ) ? + $font_sizes_by_origin['custom'] : ( isset( $font_sizes_by_origin['theme'] ) ? $font_sizes_by_origin['theme'] : $font_sizes_by_origin['default'] diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 6475ac36f2847..2c2fd66d7c332 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -525,6 +525,8 @@ function _build_block_template_result_from_post( $post ) { $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== _get_block_template_file( $post->post_type, $post->post_name ); + $origin = get_post_meta( $post->ID, 'origin', true ); + $template = new WP_Block_Template(); $template->wp_id = $post->ID; $template->id = $theme . '//' . $post->post_name; @@ -532,12 +534,14 @@ function _build_block_template_result_from_post( $post ) { $template->content = $post->post_content; $template->slug = $post->post_name; $template->source = 'custom'; + $template->origin = ! empty( $origin ) ? $origin : null; $template->type = $post->post_type; $template->description = $post->post_excerpt; $template->title = $post->post_title; $template->status = $post->post_status; $template->has_theme_file = $has_theme_file; $template->is_custom = true; + $template->author = $post->post_author; if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) { $template->is_custom = false; diff --git a/src/wp-includes/blocks/calendar.php b/src/wp-includes/blocks/calendar.php index c6ba095a926df..3e0e48c65b28a 100644 --- a/src/wp-includes/blocks/calendar.php +++ b/src/wp-includes/blocks/calendar.php @@ -85,7 +85,7 @@ function block_core_calendar_has_published_posts() { } // On single sites we try our own cached option first. - $has_published_posts = get_option( 'gutenberg_calendar_block_has_published_posts', null ); + $has_published_posts = get_option( 'wp_calendar_block_has_published_posts', null ); if ( null !== $has_published_posts ) { return (bool) $has_published_posts; } @@ -103,7 +103,7 @@ function block_core_calendar_has_published_posts() { function block_core_calendar_update_has_published_posts() { global $wpdb; $has_published_posts = (bool) $wpdb->get_var( "SELECT 1 as test FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1" ); - update_option( 'gutenberg_calendar_block_has_published_posts', $has_published_posts ); + update_option( 'wp_calendar_block_has_published_posts', $has_published_posts ); return $has_published_posts; } diff --git a/src/wp-includes/blocks/navigation.php b/src/wp-includes/blocks/navigation.php index e3848190c6e78..bfd63c3f2c0bc 100644 --- a/src/wp-includes/blocks/navigation.php +++ b/src/wp-includes/blocks/navigation.php @@ -9,7 +9,8 @@ * Build an array with CSS classes and inline styles defining the colors * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Colors CSS classes and inline styles. */ function block_core_navigation_build_css_colors( $attributes ) { @@ -99,7 +100,8 @@ function block_core_navigation_build_css_colors( $attributes ) { * Build an array with CSS classes and inline styles defining the font sizes * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Font size CSS classes and inline styles. */ function block_core_navigation_build_css_font_sizes( $attributes ) { @@ -132,6 +134,100 @@ function block_core_navigation_render_submenu_icon() { return ''; } + +/** + * Finds the first non-empty `wp_navigation` Post. + * + * @return WP_Post|null the first non-empty Navigation or null. + */ +function block_core_navigation_get_first_non_empty_navigation() { + // Order and orderby args set to mirror those in `wp_get_nav_menus` + // see: + // - https://github.com/WordPress/wordpress-develop/blob/ba943e113d3b31b121f77a2d30aebe14b047c69d/src/wp-includes/nav-menu.php#L613-L619. + // - https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters. + $navigation_posts = get_posts( + array( + 'post_type' => 'wp_navigation', + 'order' => 'ASC', + 'orderby' => 'name', + 'posts_per_page' => 1, // only the first post. + 's' => '