Editor: Backport changes for WordPress packages added in 5.7.1

Props peterwilsoncc.
See #52912.



git-svn-id: https://develop.svn.wordpress.org/trunk@50760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski
2021-04-15 11:01:12 +00:00
parent fd6ccf4540
commit a45c871541
4 changed files with 56 additions and 45 deletions

72
package-lock.json generated
View File

@@ -3350,20 +3350,20 @@
}
},
"@wordpress/block-directory": {
"version": "1.18.10",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-1.18.10.tgz",
"integrity": "sha512-a+ExHPsdbbZNG+M2UNwW5sSbWK6gYfkD+jJuSS4twc+VfC7Dm57R2WMsb6UvmlOQ5xuLcyRzVqtiGJ/AHhMnKA==",
"version": "1.18.13",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-1.18.13.tgz",
"integrity": "sha512-u/CY4wIia4zh64uOXc+8AIJxq7iRnWGX6woAuwagvME/V4mHFcHb4zgpvxJbJqheBjoa2DNzG57KLMPkQuDElQ==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/a11y": "^2.14.3",
"@wordpress/api-fetch": "^3.21.5",
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/blocks": "^7.0.6",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
"@wordpress/data": "^4.26.8",
"@wordpress/data-controls": "^1.20.8",
"@wordpress/edit-post": "^3.26.10",
"@wordpress/edit-post": "^3.26.13",
"@wordpress/element": "^2.19.1",
"@wordpress/hooks": "^2.11.1",
"@wordpress/html-entities": "^2.10.1",
@@ -3376,9 +3376,9 @@
}
},
"@wordpress/block-editor": {
"version": "5.2.10",
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-5.2.10.tgz",
"integrity": "sha512-Rlhmdx/uhBtak5qlP3MOrn0TYCtvjTxc/QrYIIDAOB6Zt2/Kpoxhv9o3+ZtBnqIJ28ncNXmaysLfdok0G70MnA==",
"version": "5.2.11",
"resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-5.2.11.tgz",
"integrity": "sha512-SeRPIlrYaHMuhypk9a2w2xmuG50wY9Cz8Z9bYkQY1GtvkoVB6UlPnNBEtlwqBRK5wlBsY48s7R+O7ItyqmxTJQ==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/a11y": "^2.14.3",
@@ -3421,16 +3421,16 @@
}
},
"@wordpress/block-library": {
"version": "2.28.7",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.28.7.tgz",
"integrity": "sha512-zbk0pkLGzeB8DraZP8PmMGeMDvrzZOtNhZuTHsRoJAW47nPF2+BQjo6nIPH3e1VKsbYpM2vVuiifc1PCd6vyug==",
"version": "2.28.10",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.28.10.tgz",
"integrity": "sha512-vnz5ifsh5I7kFdqVQI3ZL+8CnjcG+jLi05khqeVkCglvj0ugP9j2zsZ2j13GwARgxBvQ9GWLS4JkHuPlU/E3Mw==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/a11y": "^2.14.3",
"@wordpress/api-fetch": "^3.21.5",
"@wordpress/autop": "^2.11.1",
"@wordpress/blob": "^2.12.1",
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/blocks": "^7.0.6",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
@@ -3439,7 +3439,7 @@
"@wordpress/date": "^3.13.1",
"@wordpress/deprecated": "^2.11.1",
"@wordpress/dom": "^2.16.2",
"@wordpress/editor": "^9.25.10",
"@wordpress/editor": "^9.25.12",
"@wordpress/element": "^2.19.1",
"@wordpress/escape-html": "^1.11.1",
"@wordpress/hooks": "^2.11.1",
@@ -3449,7 +3449,7 @@
"@wordpress/keycodes": "^2.18.3",
"@wordpress/notices": "^2.12.8",
"@wordpress/primitives": "^1.11.1",
"@wordpress/reusable-blocks": "^1.1.10",
"@wordpress/reusable-blocks": "^1.1.11",
"@wordpress/rich-text": "^3.24.8",
"@wordpress/server-side-render": "^1.20.8",
"@wordpress/url": "^2.21.2",
@@ -3772,22 +3772,22 @@
}
},
"@wordpress/edit-post": {
"version": "3.26.10",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.26.10.tgz",
"integrity": "sha512-MVyBr3r3hiMd5Blv5O3aBw8wnFCkOi3o02mvZl1/9weAc2RhDXbBuRlcS9xDFh/dHyQwI4nVPF9wz1VNOeKo+w==",
"version": "3.26.13",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.26.13.tgz",
"integrity": "sha512-rbMqwd/2y1ChBGW45v4aQ6ZifglBl/gpllcDiAVQ/ykstuEeZvIvZd8K+11OXmjtyYarfC32wS/An2Dxwx/Gqw==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/a11y": "^2.14.3",
"@wordpress/api-fetch": "^3.21.5",
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-library": "^2.28.7",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/block-library": "^2.28.10",
"@wordpress/blocks": "^7.0.6",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
"@wordpress/core-data": "^2.25.9",
"@wordpress/data": "^4.26.8",
"@wordpress/data-controls": "^1.20.8",
"@wordpress/editor": "^9.25.10",
"@wordpress/editor": "^9.25.12",
"@wordpress/element": "^2.19.1",
"@wordpress/hooks": "^2.11.1",
"@wordpress/i18n": "^3.18.0",
@@ -3810,15 +3810,15 @@
}
},
"@wordpress/editor": {
"version": "9.25.10",
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.25.10.tgz",
"integrity": "sha512-4ReoEhUnv0J6/N2AkWZIJRHyF+Znxwh7YPGB0AwfQ8kAzIPmEboO01dmOF4n0gr0yfWkeXuy6rwDE2sjVSSWFQ==",
"version": "9.25.12",
"resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-9.25.12.tgz",
"integrity": "sha512-Wi6I3j0OkH+MuX8EBShMRQWNQSYjrFC49bM4xmNlTwRZSar4wepLw75XWN5OLb6vHP3eErd0EpEDaTn77nZtoA==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/api-fetch": "^3.21.5",
"@wordpress/autop": "^2.11.1",
"@wordpress/blob": "^2.12.1",
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/blocks": "^7.0.6",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
@@ -3837,7 +3837,7 @@
"@wordpress/keycodes": "^2.18.3",
"@wordpress/media-utils": "^1.19.5",
"@wordpress/notices": "^2.12.8",
"@wordpress/reusable-blocks": "^1.1.10",
"@wordpress/reusable-blocks": "^1.1.11",
"@wordpress/rich-text": "^3.24.8",
"@wordpress/server-side-render": "^1.20.8",
"@wordpress/url": "^2.21.2",
@@ -3926,13 +3926,13 @@
}
},
"@wordpress/format-library": {
"version": "1.26.10",
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.26.10.tgz",
"integrity": "sha512-libHw0NVTzRrPKEsWASOlpKgs34s6e+AVEHhJYP/vX9FD3RLi+26+HeumMDZCzO6+2XrKJCa1XyPe9HplX1B9g==",
"version": "1.26.11",
"resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-1.26.11.tgz",
"integrity": "sha512-cR3yYtXLIz5IIJZA7g8DJujexPBhZ0d+6N4SD1nDrcxOqCNtsGsqq0h9pNTOh809kw6uTlBYWIBeEuoEykp+MQ==",
"requires": {
"@babel/runtime": "^7.12.5",
"@wordpress/a11y": "^2.14.3",
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
"@wordpress/data": "^4.26.8",
@@ -4232,11 +4232,11 @@
}
},
"@wordpress/reusable-blocks": {
"version": "1.1.10",
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-1.1.10.tgz",
"integrity": "sha512-TfuJs9Q+oOX7rg81/tTPbkbGkB20H8NlF94iUMvnO7RwLU5KWtOfnsb5c4VjlIj+Eu62l4W0P6PzPlFRDZ6e5Q==",
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-1.1.11.tgz",
"integrity": "sha512-XIA6XeNSthmLvKx++aNNHqcqQU3TwAzWaP1sUc5MwMOK7B94Qj4+70cN6iRqLVq9VuERp9+ri3+JXV6FgRsahQ==",
"requires": {
"@wordpress/block-editor": "^5.2.10",
"@wordpress/block-editor": "^5.2.11",
"@wordpress/blocks": "^7.0.6",
"@wordpress/components": "^12.0.8",
"@wordpress/compose": "^3.24.5",
@@ -19864,9 +19864,9 @@
}
},
"react-easy-crop": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-3.3.1.tgz",
"integrity": "sha512-fM249ldk9OBONAgkskWVU3sLLP/hkjqmjY0Ah8V9CNlK2aiasNuHJw6vYCtaESR7CrEP3+XvfG1oO3y5hP6CuQ==",
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-3.3.2.tgz",
"integrity": "sha512-u5QsCq0uxf1Cct3IOWtJek1FklteFlOPyO5fjdlu5pG44C8/3Dhizh23UDtCGTe/9T12udbyrss+jyG46WcZIQ==",
"requires": {
"normalize-wheel": "^1.0.1",
"tslib": "2.0.1"

View File

@@ -83,9 +83,9 @@
"@wordpress/api-fetch": "3.21.5",
"@wordpress/autop": "2.11.1",
"@wordpress/blob": "2.12.1",
"@wordpress/block-directory": "1.18.10",
"@wordpress/block-editor": "5.2.10",
"@wordpress/block-library": "2.28.7",
"@wordpress/block-directory": "1.18.13",
"@wordpress/block-editor": "5.2.11",
"@wordpress/block-library": "2.28.10",
"@wordpress/block-serialization-default-parser": "3.9.1",
"@wordpress/blocks": "7.0.6",
"@wordpress/components": "12.0.8",
@@ -97,11 +97,11 @@
"@wordpress/deprecated": "2.11.1",
"@wordpress/dom": "2.16.2",
"@wordpress/dom-ready": "2.12.1",
"@wordpress/edit-post": "3.26.10",
"@wordpress/editor": "9.25.10",
"@wordpress/edit-post": "3.26.13",
"@wordpress/editor": "9.25.12",
"@wordpress/element": "2.19.1",
"@wordpress/escape-html": "1.11.1",
"@wordpress/format-library": "1.26.10",
"@wordpress/format-library": "1.26.11",
"@wordpress/hooks": "2.11.1",
"@wordpress/html-entities": "2.10.1",
"@wordpress/i18n": "3.18.0",
@@ -118,7 +118,7 @@
"@wordpress/primitives": "1.11.1",
"@wordpress/priority-queue": "1.10.1",
"@wordpress/redux-routine": "3.13.1",
"@wordpress/reusable-blocks": "1.1.10",
"@wordpress/reusable-blocks": "1.1.11",
"@wordpress/rich-text": "3.24.8",
"@wordpress/server-side-render": "1.20.8",
"@wordpress/shortcode": "2.12.1",

File diff suppressed because one or more lines are too long

View File

@@ -134,6 +134,10 @@ function render_block_core_latest_posts( $attributes ) {
$trimmed_excerpt = get_the_excerpt( $post );
if ( post_password_required( $post ) ) {
$trimmed_excerpt = __( 'This content is password protected.' );
}
$list_items_markup .= sprintf(
'<div class="wp-block-latest-posts__post-excerpt">%1$s</div>',
$trimmed_excerpt
@@ -142,9 +146,16 @@ function render_block_core_latest_posts( $attributes ) {
if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent']
&& isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) {
$post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) );
if ( post_password_required( $post ) ) {
$post_content = __( 'This content is password protected.' );
}
$list_items_markup .= sprintf(
'<div class="wp-block-latest-posts__post-full-content">%1$s</div>',
wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) )
$post_content
);
}