mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 10:38:22 +01:00
Update packages to include these bug fixes from Gutenberg:
- [Block Library - Query Pagination Next]: Hide block if custom query has no results - [WP 5.9] Fix: HTML tags like inline images in nav links break submenu layout - Check for nextpage to display page links for paginated posts - Navigation: Set the default for --navigation-layout-align to "flex-start" when using vertical orientation - [Block Library - Query Loop]: Use gap for the grid view - Update page list flex variables to match navigation. - Site logo: Fix range control on landscape logo - Restore canvas padding for classic themes - RichText: Fix dead key input on Windows - Fix: Impossible to clear colors if color palettes are removed. - Gallery block: pass any custom attributes through the gallery v2 migration script - Reduce specificity of legacy font sizes defined by core - Update: Improve escaping on the search block See #54487. Props isabel_brison. git-svn-id: https://develop.svn.wordpress.org/trunk@52551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2aff2a60fc
commit
5820220945
256
package-lock.json
generated
256
package-lock.json
generated
@ -2271,23 +2271,23 @@
|
||||
"dev": true
|
||||
},
|
||||
"@popperjs/core": {
|
||||
"version": "2.11.0",
|
||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.0.tgz",
|
||||
"integrity": "sha512-zrsUxjLOKAzdewIDRWy9nsV1GQsKBCWaGwsZQlCgr6/q+vjyZhFgqedLfFBuI9anTPEUT4APq9Mu0SZBTzIcGQ=="
|
||||
"version": "2.11.2",
|
||||
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.2.tgz",
|
||||
"integrity": "sha512-92FRmppjjqz29VMJ2dn+xdyXZBrMlE42AV6Kq6BwjWV7CNUW1hs2FtxSNLQE+gJhaZ6AAmYuO9y8dshhcBl7vA=="
|
||||
},
|
||||
"@react-spring/animated": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.4.0.tgz",
|
||||
"integrity": "sha512-hOj90pXC1ovukgA63l6zQRr7jq6Lay/kUgwlMZWOwgaZoPb1J02BjLtS0rbFvx+BUMd3mrL0QVdno+B6eYsLQQ==",
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.4.1.tgz",
|
||||
"integrity": "sha512-uAJkcrSlpg8uSe8zy7eJcDdNpI5QvRXrZUKhn5dlGAPk3psgY5qj6pahzB0k5NZZQ27ls8Z5Nt4VKhGaXPJNDQ==",
|
||||
"requires": {
|
||||
"@react-spring/shared": "~9.4.0",
|
||||
"@react-spring/types": "~9.4.0"
|
||||
}
|
||||
},
|
||||
"@react-spring/core": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.4.0.tgz",
|
||||
"integrity": "sha512-zJC6JgLTv42tdNLZiN8eRgKnVaQxRvGHt329GxZFB9/bhH9FqjOMQ2GsEu8uImw3eicaXlWy10Ssp4SQftZSPg==",
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.4.1.tgz",
|
||||
"integrity": "sha512-sXQmGg4wNeyoVZ/LdEF01xtzQKZtLIyFDX03hoa0oa9VTgLNTVSbVXD9q2xsH8HtWpY4OFPTi/9Noi93gjnYyg==",
|
||||
"requires": {
|
||||
"@react-spring/animated": "~9.4.0",
|
||||
"@react-spring/rafz": "~9.4.0",
|
||||
@ -2296,28 +2296,28 @@
|
||||
}
|
||||
},
|
||||
"@react-spring/rafz": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.4.0.tgz",
|
||||
"integrity": "sha512-CqBLODaAZ9HrTNZyOtrr4XQ7CdUNd4OU3Hh7T6JSdB88MyJScsJBKCT9QaJop6wuhvQPiQEviMnD8TfKEkVfuw=="
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.4.1.tgz",
|
||||
"integrity": "sha512-R/mNOQ4axraWsL/jwzoaqfeX6RwUODg3WOGweL8zYbHHheRqQV+QwnhGmDATepBZ1H3UUulhXvOqkzWzjnpuQQ=="
|
||||
},
|
||||
"@react-spring/shared": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.4.0.tgz",
|
||||
"integrity": "sha512-VgQd8NxfbLTeWqzKpGMXXVf1IrmBKO8/fsHFiW+OxZdmFpz77G1aJZ+AnMgCcwrV9KtLdeG0G8YXOQrhsLA7dA==",
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.4.1.tgz",
|
||||
"integrity": "sha512-7atTQOhEQmw5UEYbb5yk7YEaf11AcRF7UISfAmr9FJ2FJD4VUVCn1R4V78omiFiRvnU6qI3GRhkRnIvYM8aAZw==",
|
||||
"requires": {
|
||||
"@react-spring/rafz": "~9.4.0",
|
||||
"@react-spring/types": "~9.4.0"
|
||||
}
|
||||
},
|
||||
"@react-spring/types": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.4.0.tgz",
|
||||
"integrity": "sha512-K49Fb/rPX6cSb15ZcW6d45NBYqAJbGh4MKpsBmvZWahJTXKtFDfQq10Bq0+wlLYQr8r1bgsE8v4blfCIdm6UoA=="
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.4.1.tgz",
|
||||
"integrity": "sha512-eZmlFRc+XkY/HJi4RswLkIHH0nKQkqKRHPUqnseffcBuZ5FNXKDUmNnLUpqkrCpl746QCFVQtI5QptLklDATfQ=="
|
||||
},
|
||||
"@react-spring/web": {
|
||||
"version": "9.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.4.0.tgz",
|
||||
"integrity": "sha512-czg38A12w5glP33cfbjiwRnpCw3TNBuJ8eVxP6H2frMnADESsxmSpe0vNlvxrCEOhZxbhUu3ILJ2v02H9LV7bw==",
|
||||
"version": "9.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.4.1.tgz",
|
||||
"integrity": "sha512-ajlGJl0Zqa3idhZw0KL5chP8AIn4wPHpDY7WjtWaWjVZSZRSBAeHmfqNLtAGCjazeO/Q6zmt6wdGs8bX8q42rQ==",
|
||||
"requires": {
|
||||
"@react-spring/animated": "~9.4.0",
|
||||
"@react-spring/core": "~9.4.0",
|
||||
@ -3434,15 +3434,15 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/annotations": {
|
||||
"version": "2.2.8",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-2.2.8.tgz",
|
||||
"integrity": "sha512-cT+Mk6oEsSYHvaXtxO+JExCsP34Un21GahOIQK74lq1hJUy34TxqzuftbdDLvu9gbrKRnzVlPH9Uv6RHVHkXbg==",
|
||||
"version": "2.2.9",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/annotations/-/annotations-2.2.9.tgz",
|
||||
"integrity": "sha512-xudNtq+QotOwyYbOAEt1XWLp40CcKJvBzE2acstf/DZqxIi/PXB++4QVxgpQuYWkr6bWIFm4EfNvsUFBQr9DWQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/hooks": "^3.2.2",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"lodash": "^4.17.21",
|
||||
"rememo": "^3.0.0",
|
||||
"uuid": "^8.3.0"
|
||||
@ -3540,21 +3540,21 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-directory": {
|
||||
"version": "3.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.20.tgz",
|
||||
"integrity": "sha512-sm6dFYtHflHAeD1keC/oc7RN4GjdbOz18wxKGkyiOM8jzOIWqcrMcgfhzh98F6sSN/oJkYpTafpTQwT3Kz9nlQ==",
|
||||
"version": "3.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.21.tgz",
|
||||
"integrity": "sha512-2tV7Xg+HqSYK6jM4l/3FHWIhE4U/fu3VAM+C7MwNC8cysZi2JKFL1gqo3Duamd3zFRQNQmQZxhk8YBMqPQ8pXA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/edit-post": "^5.0.20",
|
||||
"@wordpress/editor": "^12.0.16",
|
||||
"@wordpress/edit-post": "^5.0.21",
|
||||
"@wordpress/editor": "^12.0.17",
|
||||
"@wordpress/element": "^4.0.4",
|
||||
"@wordpress/hooks": "^3.2.2",
|
||||
"@wordpress/html-entities": "^3.2.3",
|
||||
@ -3567,9 +3567,9 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-editor": {
|
||||
"version": "8.0.13",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.13.tgz",
|
||||
"integrity": "sha512-U/0Hj6wwayOFqBZg8ObR6XaDMpEnq1PXsNemxKp4BhLixiBDKMC0eXC0kBQJYm6BouMVwiw2r0StIyvl+XFovA==",
|
||||
"version": "8.0.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.14.tgz",
|
||||
"integrity": "sha512-hQ9MSh78RKVn4dg7XRVGZkGDjeIXrcUun1ipp8hqr537T4W7ZuIqkV2ZIk0Bp79qrYVoAP1oRe7M0+axsISYUA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@react-spring/web": "^9.2.4",
|
||||
@ -3578,7 +3578,7 @@
|
||||
"@wordpress/blob": "^3.2.2",
|
||||
"@wordpress/block-serialization-default-parser": "^4.2.3",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/deprecated": "^3.2.3",
|
||||
@ -3592,7 +3592,7 @@
|
||||
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/notices": "^3.2.8",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"@wordpress/shortcode": "^3.2.3",
|
||||
"@wordpress/token-list": "^2.2.2",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
@ -3614,18 +3614,18 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-library": {
|
||||
"version": "6.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.18.tgz",
|
||||
"integrity": "sha512-U7JiHp5d+JkUtsSByplkvfbWonUbRLFS1Gm6afbICT1w4hj3xFFxgBo9aCc8VzQOFS/2fpoQUANEK6h5QUBdAg==",
|
||||
"version": "6.0.19",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.19.tgz",
|
||||
"integrity": "sha512-SjTBMHzD1grDfEqPTukSM75nYqnngRKF2c+OBW3Qv8BXDlDSdKRK7rYVkWH7YCkEqpr+sst8PxZO1sqoSQR27w==",
|
||||
"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.13",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
@ -3638,14 +3638,14 @@
|
||||
"@wordpress/html-entities": "^3.2.3",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/icons": "^6.1.1",
|
||||
"@wordpress/interface": "^4.1.15",
|
||||
"@wordpress/interface": "^4.1.16",
|
||||
"@wordpress/is-shallow-equal": "^4.2.1",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/notices": "^3.2.8",
|
||||
"@wordpress/primitives": "^3.0.4",
|
||||
"@wordpress/reusable-blocks": "^3.0.19",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/server-side-render": "^3.0.17",
|
||||
"@wordpress/reusable-blocks": "^3.0.20",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"@wordpress/server-side-render": "^3.0.18",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
"@wordpress/viewport": "^4.0.7",
|
||||
"classnames": "^2.3.1",
|
||||
@ -3700,9 +3700,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@wordpress/components": {
|
||||
"version": "19.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.2.0.tgz",
|
||||
"integrity": "sha512-IFvbH7Jo9jqbH+ZXCMm+tLaJDn95Q783aNtm9GVA+z3nJSyh4Dl2MXsRfOSE/mLd2iToPDCrpuHi51hr/lrGcw==",
|
||||
"version": "19.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.2.1.tgz",
|
||||
"integrity": "sha512-u4lwHIu1qmKfeRZqJ4SSJRmkyQxJFOLNbLPC3SCz3tVpe/hYNyrTwc6TOWKD7JaN45btJZLPMQ9CDP8Kou+kJw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@emotion/cache": "^11.4.0",
|
||||
@ -3722,7 +3722,7 @@
|
||||
"@wordpress/is-shallow-equal": "^4.2.1",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/primitives": "^3.0.4",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"@wordpress/warning": "^2.2.2",
|
||||
"classnames": "^2.3.1",
|
||||
"colord": "^2.7.0",
|
||||
@ -3796,16 +3796,16 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/customize-widgets": {
|
||||
"version": "2.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.20.tgz",
|
||||
"integrity": "sha512-80tz/X4QtJwsGXzhNcEOuDE298dDWzpr+uVI/8a/g9/f5Y8O2Qf+0EfUmscQ8HHo4eKjY284im1HviAZYonOKg==",
|
||||
"version": "2.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.21.tgz",
|
||||
"integrity": "sha512-4hS/d1paNF8SMbj3rVWop/e5nX3izbtEX2tXUsoh9X0vU1xPhiZEGsHRZHLHTPGRrXsRh+6LQXQ6yrNRq8lX7A==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-library": "^6.0.18",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/block-library": "^6.0.19",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
@ -3814,12 +3814,12 @@
|
||||
"@wordpress/hooks": "^3.2.2",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/icons": "^6.1.1",
|
||||
"@wordpress/interface": "^4.1.15",
|
||||
"@wordpress/interface": "^4.1.16",
|
||||
"@wordpress/is-shallow-equal": "^4.2.1",
|
||||
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/media-utils": "^3.0.5",
|
||||
"@wordpress/widgets": "^2.0.19",
|
||||
"@wordpress/widgets": "^2.0.20",
|
||||
"classnames": "^2.3.1",
|
||||
"lodash": "^4.17.21"
|
||||
}
|
||||
@ -3948,27 +3948,27 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-post": {
|
||||
"version": "5.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.20.tgz",
|
||||
"integrity": "sha512-7/8BT2vPin/vg6Opml3uFYhtFMjsdX4DGniiEUeZhoRLC7AiU1VNlxEKklTNRkMHQI4tCcr6+qc7YoMbB5nmyQ==",
|
||||
"version": "5.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.21.tgz",
|
||||
"integrity": "sha512-TFUPgsVQmwyu5ZxeIOfeR62Xe591gPahlWSsaKhNSSzNe1H82TYwI2j2tGWMNbZyXEYa8KhgzfjVbMgINWhi2g==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-library": "^6.0.18",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/block-library": "^6.0.19",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/data-controls": "^2.2.8",
|
||||
"@wordpress/editor": "^12.0.16",
|
||||
"@wordpress/editor": "^12.0.17",
|
||||
"@wordpress/element": "^4.0.4",
|
||||
"@wordpress/hooks": "^3.2.2",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/icons": "^6.1.1",
|
||||
"@wordpress/interface": "^4.1.15",
|
||||
"@wordpress/interface": "^4.1.16",
|
||||
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/media-utils": "^3.0.5",
|
||||
@ -3993,35 +3993,35 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-site": {
|
||||
"version": "3.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.20.tgz",
|
||||
"integrity": "sha512-rfT8ex8uYn2DpcRFO3ola2NhywBrxV2Yzy2BA9MvI7tIo+/2UFJVrFROafycb1pXjufwrq35ST69XvUMRvL6Fg==",
|
||||
"version": "3.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.21.tgz",
|
||||
"integrity": "sha512-X+UrSZM+sN4opj0ojiBFnarFveR8Pjx9dmEOvyLvsyKhv5E1wzeWILBZfTEeNNlDl02BrmoJ1BAZ9Q2uXMtapg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-library": "^6.0.18",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/block-library": "^6.0.19",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/data-controls": "^2.2.8",
|
||||
"@wordpress/editor": "^12.0.16",
|
||||
"@wordpress/editor": "^12.0.17",
|
||||
"@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.15",
|
||||
"@wordpress/interface": "^4.1.16",
|
||||
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/media-utils": "^3.0.5",
|
||||
"@wordpress/notices": "^3.2.8",
|
||||
"@wordpress/plugins": "^4.0.7",
|
||||
"@wordpress/primitives": "^3.0.4",
|
||||
"@wordpress/reusable-blocks": "^3.0.19",
|
||||
"@wordpress/reusable-blocks": "^3.0.20",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
"@wordpress/viewport": "^4.0.7",
|
||||
"classnames": "^2.3.1",
|
||||
@ -4034,17 +4034,17 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-widgets": {
|
||||
"version": "3.1.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.15.tgz",
|
||||
"integrity": "sha512-mgetLhi5yaJ5b6VDD6GuTsMWZJhyt9yb/RBhtiubyVnCO9yPg9W1VoKFDT/r5+arDshqrHweSr5nxQG+qcRWww==",
|
||||
"version": "3.1.16",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.16.tgz",
|
||||
"integrity": "sha512-uzsTTjc7e+RXTSaSjAMMjG/i4ANAAy5Lem4YGo9nbnaKv/0DQBLt/GesawjYd71tpahSPR/2Qoj9RGwOYybABQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-library": "^6.0.18",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/block-library": "^6.0.19",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
@ -4053,16 +4053,16 @@
|
||||
"@wordpress/hooks": "^3.2.2",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/icons": "^6.1.1",
|
||||
"@wordpress/interface": "^4.1.15",
|
||||
"@wordpress/interface": "^4.1.16",
|
||||
"@wordpress/keyboard-shortcuts": "^3.0.7",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/media-utils": "^3.0.5",
|
||||
"@wordpress/notices": "^3.2.8",
|
||||
"@wordpress/plugins": "^4.0.7",
|
||||
"@wordpress/reusable-blocks": "^3.0.19",
|
||||
"@wordpress/server-side-render": "^3.0.17",
|
||||
"@wordpress/reusable-blocks": "^3.0.20",
|
||||
"@wordpress/server-side-render": "^3.0.18",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
"@wordpress/widgets": "^2.0.19",
|
||||
"@wordpress/widgets": "^2.0.20",
|
||||
"classnames": "^2.3.1",
|
||||
"lodash": "^4.17.21",
|
||||
"rememo": "^3.0.0",
|
||||
@ -4070,18 +4070,18 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/editor": {
|
||||
"version": "12.0.16",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.16.tgz",
|
||||
"integrity": "sha512-RtDf0h0lh613qudt5eG9EbG5Pp5PMuB8yfwnHCrA8d0yGaF24k3pxE7QMBaWeAcKGnDwev30Nt980nBtcm5+1w==",
|
||||
"version": "12.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.17.tgz",
|
||||
"integrity": "sha512-Ys8jxXCTt4bzukzTBCx8TMsmVIqFnDwbTqCzB7axyB+IXRep3QpVjlYxnmc58nNmRu8GJSF5YdtUUgygcDCB5w==",
|
||||
"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.13",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
@ -4098,9 +4098,9 @@
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/media-utils": "^3.0.5",
|
||||
"@wordpress/notices": "^3.2.8",
|
||||
"@wordpress/reusable-blocks": "^3.0.19",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/server-side-render": "^3.0.17",
|
||||
"@wordpress/reusable-blocks": "^3.0.20",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"@wordpress/server-side-render": "^3.0.18",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
"@wordpress/wordcount": "^3.2.3",
|
||||
"classnames": "^2.3.1",
|
||||
@ -4187,14 +4187,14 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/format-library": {
|
||||
"version": "3.0.19",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.19.tgz",
|
||||
"integrity": "sha512-MsXaS1QgMtkZUioStCnAQViIOcLPS5OqsJAwnl5/aVvmciV+IABtT4ffPCaiShiTyqBiZMj8UEaaJD8SOeZidw==",
|
||||
"version": "3.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.20.tgz",
|
||||
"integrity": "sha512-AYPfLjG0Nk5SUbWCKt4LECv2mDAuDsio9aqcMXhqYcybXmZiA9pEga7zEgBT9SC++nSN7NMNwlkEwb2z7hUOtg==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/dom": "^3.2.7",
|
||||
@ -4203,7 +4203,7 @@
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
"@wordpress/icons": "^6.1.1",
|
||||
"@wordpress/keycodes": "^3.2.4",
|
||||
"@wordpress/rich-text": "^5.0.7",
|
||||
"@wordpress/rich-text": "^5.0.8",
|
||||
"@wordpress/url": "^3.3.1",
|
||||
"lodash": "^4.17.21"
|
||||
}
|
||||
@ -4249,13 +4249,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/interface": {
|
||||
"version": "4.1.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.15.tgz",
|
||||
"integrity": "sha512-11vTvDG08A0QMicNc4hJBNMFDATRxWPEEEiB0g2pZRyZ09kMXcJ4Je9SdZz5jl2Bz/x8oEeTYeLqyvioq928cw==",
|
||||
"version": "4.1.16",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.16.tgz",
|
||||
"integrity": "sha512-qjSvN1bnqEO5lziCI4vsRuYcfTSTPpNq2yE+VLdc4Xy9QkOYlb9UsmILm72FRn3yZQ/RChczbJ1SbVCwHzlScA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/deprecated": "^3.2.3",
|
||||
@ -4353,13 +4353,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/list-reusable-blocks": {
|
||||
"version": "3.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.17.tgz",
|
||||
"integrity": "sha512-tYmCzIVhOUHlmINMtCvWwUfgfaorwv1+mAHdPJ2XqCW5e27ws3EdWJxqdTWZNu1Z8Rz9ucv+mOHyOxL91JByhg==",
|
||||
"version": "3.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.18.tgz",
|
||||
"integrity": "sha512-6E5DuaFL/bDjFheUQTgCqO4VW53Xf/3H1SLKEpgKZmZJZNIfuDIPOa1JUFoAdROxUxHqHliy1Meo4Nk6GALhzw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/element": "^4.0.4",
|
||||
"@wordpress/i18n": "^4.2.4",
|
||||
@ -4397,12 +4397,12 @@
|
||||
"dev": true
|
||||
},
|
||||
"@wordpress/nux": {
|
||||
"version": "5.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.17.tgz",
|
||||
"integrity": "sha512-W122kgEW5ZfAsYPN7sc9372GPE4Iulx9h8zB2z5E+Vz/CqrVvw/TDQqJgqk7DPScQWGcqWTIfHJh0zyDdY8yRw==",
|
||||
"version": "5.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.18.tgz",
|
||||
"integrity": "sha512-IMeFUBa9PSIxwx12KpztEwnT4OoVrwDUGLywj6RPYThEgOOIbGa+Ul3KaKFLlPursW+upM84S2oV4aQIUg6fng==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/deprecated": "^3.2.3",
|
||||
@ -4527,13 +4527,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/reusable-blocks": {
|
||||
"version": "3.0.19",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.19.tgz",
|
||||
"integrity": "sha512-EU4Vo3ETTTN5DAQCrgh3AOuVRsZCrIJ1LcRgGJfFBSEJe6Sto3pxxj3ZtI+Goc4U553q3M/qpghHZNo1JZcfew==",
|
||||
"version": "3.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.20.tgz",
|
||||
"integrity": "sha512-/IqS8qd/+MTlb5cclenyIeG44KLts208/jPuUcwff+/pwPvupCPqCzjLM2LF29BBkghIpdTtuClxVv4oYAsGDQ==",
|
||||
"requires": {
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
@ -4546,9 +4546,9 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/rich-text": {
|
||||
"version": "5.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-5.0.7.tgz",
|
||||
"integrity": "sha512-oroNrJFJw9DNVielMdel/EeJNwD/bGzKPEAL0cp1AbilcS4jNxBW7oR+hOOv/ZQGH+1iDmOhwhOdERP4n78s3A==",
|
||||
"version": "5.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/rich-text/-/rich-text-5.0.8.tgz",
|
||||
"integrity": "sha512-RjIbgP/C0OL2H+66TD2xt5KSi6N9lrj4bnYSdfhAoRZTjWvrtsyryaIRPbz4QZQvd/uMxsR651R1dFoL3+vZuA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.2.4",
|
||||
@ -5499,14 +5499,14 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/server-side-render": {
|
||||
"version": "3.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.17.tgz",
|
||||
"integrity": "sha512-UIyywGUSlbOVFi1SNwI/uUmHmUJFX+N9XeBCAnS15PmfYflBkiuz9FPmZWoqLoOE4uWTI7K9lAP1tkY80lotIA==",
|
||||
"version": "3.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.18.tgz",
|
||||
"integrity": "sha512-j8w0tlJIVBki8fcGWma5MCF34Nn2xc3pSKGCHv06VLE3mdtq+WSp8VFSiM6d5WuyhFPcvMj1KxgmbpxrgOFbyw==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
"@wordpress/deprecated": "^3.2.3",
|
||||
@ -5572,15 +5572,15 @@
|
||||
"integrity": "sha512-iG1Hq56RK3N6AJqAD1sRLWRIJatfYn+NrPyrfqRNZNYXHM8Vj/s7ABNMbIU0Y99vXkBE83rvCdbMkugNoI2jXA=="
|
||||
},
|
||||
"@wordpress/widgets": {
|
||||
"version": "2.0.19",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.19.tgz",
|
||||
"integrity": "sha512-TSPV0pYikUXvSH3L3TToLFDXwB0gjRVcL7/TpQyFiaN5QfONOGpxZBoCbW0l3w+z/ZhzTtwe/BwX25TFmEHILg==",
|
||||
"version": "2.0.20",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.20.tgz",
|
||||
"integrity": "sha512-u/aFnp4YvdRc3ONiFjT1SQ4WF1Q3l06WQfSy2cJ374bVnCxsPZTA5rwMrh0kS2az+ZHQhLLfRercFzcL+WrNzA==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^5.2.6",
|
||||
"@wordpress/block-editor": "^8.0.13",
|
||||
"@wordpress/block-editor": "^8.0.14",
|
||||
"@wordpress/blocks": "^11.1.5",
|
||||
"@wordpress/components": "^19.2.0",
|
||||
"@wordpress/components": "^19.2.1",
|
||||
"@wordpress/compose": "^5.0.7",
|
||||
"@wordpress/core-data": "^4.0.9",
|
||||
"@wordpress/data": "^6.1.5",
|
||||
|
36
package.json
36
package.json
@ -78,57 +78,57 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@wordpress/a11y": "3.2.4",
|
||||
"@wordpress/annotations": "2.2.8",
|
||||
"@wordpress/annotations": "2.2.9",
|
||||
"@wordpress/api-fetch": "5.2.6",
|
||||
"@wordpress/autop": "3.2.3",
|
||||
"@wordpress/blob": "3.2.2",
|
||||
"@wordpress/block-directory": "3.0.20",
|
||||
"@wordpress/block-editor": "8.0.13",
|
||||
"@wordpress/block-library": "6.0.18",
|
||||
"@wordpress/block-directory": "3.0.21",
|
||||
"@wordpress/block-editor": "8.0.14",
|
||||
"@wordpress/block-library": "6.0.19",
|
||||
"@wordpress/block-serialization-default-parser": "4.2.3",
|
||||
"@wordpress/blocks": "11.1.5",
|
||||
"@wordpress/components": "19.2.0",
|
||||
"@wordpress/components": "19.2.1",
|
||||
"@wordpress/compose": "5.0.7",
|
||||
"@wordpress/core-data": "4.0.9",
|
||||
"@wordpress/customize-widgets": "2.0.20",
|
||||
"@wordpress/customize-widgets": "2.0.21",
|
||||
"@wordpress/data": "6.1.5",
|
||||
"@wordpress/data-controls": "2.2.8",
|
||||
"@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.20",
|
||||
"@wordpress/edit-site": "3.0.20",
|
||||
"@wordpress/edit-widgets": "3.1.15",
|
||||
"@wordpress/editor": "12.0.16",
|
||||
"@wordpress/edit-post": "5.0.21",
|
||||
"@wordpress/edit-site": "3.0.21",
|
||||
"@wordpress/edit-widgets": "3.1.16",
|
||||
"@wordpress/editor": "12.0.17",
|
||||
"@wordpress/element": "4.0.4",
|
||||
"@wordpress/escape-html": "2.2.3",
|
||||
"@wordpress/format-library": "3.0.19",
|
||||
"@wordpress/format-library": "3.0.20",
|
||||
"@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.15",
|
||||
"@wordpress/interface": "4.1.16",
|
||||
"@wordpress/is-shallow-equal": "4.2.1",
|
||||
"@wordpress/keyboard-shortcuts": "3.0.7",
|
||||
"@wordpress/keycodes": "3.2.4",
|
||||
"@wordpress/list-reusable-blocks": "3.0.17",
|
||||
"@wordpress/list-reusable-blocks": "3.0.18",
|
||||
"@wordpress/media-utils": "3.0.5",
|
||||
"@wordpress/notices": "3.2.8",
|
||||
"@wordpress/nux": "5.0.17",
|
||||
"@wordpress/nux": "5.0.18",
|
||||
"@wordpress/plugins": "4.0.7",
|
||||
"@wordpress/primitives": "3.0.4",
|
||||
"@wordpress/priority-queue": "2.2.3",
|
||||
"@wordpress/redux-routine": "4.2.2",
|
||||
"@wordpress/reusable-blocks": "3.0.19",
|
||||
"@wordpress/rich-text": "5.0.7",
|
||||
"@wordpress/server-side-render": "3.0.17",
|
||||
"@wordpress/reusable-blocks": "3.0.20",
|
||||
"@wordpress/rich-text": "5.0.8",
|
||||
"@wordpress/server-side-render": "3.0.18",
|
||||
"@wordpress/shortcode": "3.2.3",
|
||||
"@wordpress/token-list": "2.2.2",
|
||||
"@wordpress/url": "3.3.1",
|
||||
"@wordpress/viewport": "4.0.7",
|
||||
"@wordpress/warning": "2.2.2",
|
||||
"@wordpress/widgets": "2.0.19",
|
||||
"@wordpress/widgets": "2.0.20",
|
||||
"@wordpress/wordcount": "3.2.3",
|
||||
"backbone": "1.4.0",
|
||||
"clipboard": "2.0.8",
|
||||
|
File diff suppressed because one or more lines are too long
@ -191,7 +191,7 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
||||
$aria_label = sprintf(
|
||||
/* translators: Accessibility text. %s: Parent page title. */
|
||||
__( '%s submenu' ),
|
||||
$label
|
||||
wp_strip_all_tags( $label )
|
||||
);
|
||||
|
||||
$html = '<li ' . $wrapper_attributes . '>';
|
||||
@ -231,7 +231,7 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) {
|
||||
|
||||
if ( $show_submenu_indicators ) {
|
||||
// The submenu icon is rendered in a button here
|
||||
// so that there's a clickable elment to open the submenu.
|
||||
// so that there's a clickable element to open the submenu.
|
||||
$html .= '<button aria-label="' . $aria_label . '" class="wp-block-navigation__submenu-icon wp-block-navigation-submenu__toggle" aria-expanded="false">' . block_core_navigation_submenu_render_submenu_icon() . '</button>';
|
||||
}
|
||||
} else {
|
||||
|
@ -177,7 +177,7 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
|
||||
$aria_label = sprintf(
|
||||
/* translators: Accessibility text. %s: Parent page title. */
|
||||
__( '%s submenu' ),
|
||||
$title
|
||||
wp_strip_all_tags( $title )
|
||||
);
|
||||
|
||||
$markup .= '<li class="wp-block-pages-list__item' . $css_class . '"' . $style_attribute . '>';
|
||||
|
@ -46,6 +46,11 @@ function render_block_core_post_content( $attributes, $content, $block ) {
|
||||
// so that `the_preview` for the current post can apply.
|
||||
// We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
|
||||
$content = get_the_content( null, false );
|
||||
// Check for nextpage to display page links for paginated posts.
|
||||
if ( has_block( 'core/nextpage' ) ) {
|
||||
$content .= wp_link_pages( array( 'echo' => 0 ) );
|
||||
}
|
||||
|
||||
/** This filter is documented in wp-includes/post-template.php */
|
||||
$content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
|
||||
unset( $seen_ids[ $post_id ] );
|
||||
|
@ -43,8 +43,9 @@ function render_block_core_query_pagination_next( $attributes, $content, $block
|
||||
$content = get_next_posts_link( $label, $max_page );
|
||||
remove_filter( 'next_posts_link_attributes', $filter_link_attributes );
|
||||
} elseif ( ! $max_page || $max_page > $page ) {
|
||||
$custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) );
|
||||
if ( (int) $custom_query->max_num_pages !== $page ) {
|
||||
$custom_query = new WP_Query( build_query_vars_from_query_block( $block, $page ) );
|
||||
$custom_query_max_pages = (int) $custom_query->max_num_pages;
|
||||
if ( $custom_query_max_pages && $custom_query_max_pages !== $page ) {
|
||||
$content = sprintf(
|
||||
'<a href="%1$s" %2$s>%3$s</a>',
|
||||
esc_url( add_query_arg( $page_key, $page + 1 ) ),
|
||||
|
@ -46,13 +46,13 @@ function render_block_core_search( $attributes ) {
|
||||
$label_markup = sprintf(
|
||||
'<label for="%1$s" class="wp-block-search__label screen-reader-text">%2$s</label>',
|
||||
$input_id,
|
||||
empty( $attributes['label'] ) ? __( 'Search' ) : $attributes['label']
|
||||
empty( $attributes['label'] ) ? __( 'Search' ) : esc_html( $attributes['label'] )
|
||||
);
|
||||
if ( $show_label && ! empty( $attributes['label'] ) ) {
|
||||
$label_markup = sprintf(
|
||||
'<label for="%1$s" class="wp-block-search__label">%2$s</label>',
|
||||
$input_id,
|
||||
$attributes['label']
|
||||
esc_html( $attributes['label'] )
|
||||
);
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ function render_block_core_search( $attributes ) {
|
||||
$input_markup = sprintf(
|
||||
'<input type="search" id="%s" class="wp-block-search__input %s" name="s" value="%s" placeholder="%s" %s required />',
|
||||
$input_id,
|
||||
$input_classes,
|
||||
esc_attr( $input_classes ),
|
||||
esc_attr( get_search_query() ),
|
||||
esc_attr( $attributes['placeholder'] ),
|
||||
$inline_styles['input']
|
||||
@ -77,7 +77,7 @@ function render_block_core_search( $attributes ) {
|
||||
}
|
||||
if ( ! $use_icon_button ) {
|
||||
if ( ! empty( $attributes['buttonText'] ) ) {
|
||||
$button_internal_markup = $attributes['buttonText'];
|
||||
$button_internal_markup = esc_html( $attributes['buttonText'] );
|
||||
}
|
||||
} else {
|
||||
$button_classes .= ' has-icon';
|
||||
@ -89,7 +89,7 @@ function render_block_core_search( $attributes ) {
|
||||
|
||||
$button_markup = sprintf(
|
||||
'<button type="submit" class="wp-block-search__button %s" %s>%s</button>',
|
||||
$button_classes,
|
||||
esc_attr( $button_classes ),
|
||||
$inline_styles['button'],
|
||||
$button_internal_markup
|
||||
);
|
||||
@ -98,7 +98,7 @@ function render_block_core_search( $attributes ) {
|
||||
$field_markup_classes = $is_button_inside ? $border_color_classes : '';
|
||||
$field_markup = sprintf(
|
||||
'<div class="wp-block-search__inside-wrapper %s" %s>%s</div>',
|
||||
$field_markup_classes,
|
||||
esc_attr( $field_markup_classes ),
|
||||
$inline_styles['wrapper'],
|
||||
$input_markup . $button_markup
|
||||
);
|
||||
@ -285,9 +285,9 @@ function styles_for_block_core_search( $attributes ) {
|
||||
}
|
||||
|
||||
return array(
|
||||
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', implode( ' ', $input_styles ) ) : '',
|
||||
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', implode( ' ', $button_styles ) ) : '',
|
||||
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', implode( ' ', $wrapper_styles ) ) : '',
|
||||
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $input_styles ) ) ) : '',
|
||||
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $button_styles ) ) ) : '',
|
||||
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) : '',
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user