Editor: Update of @wordpress npm packages for 5.6.3.

git-svn-id: https://develop.svn.wordpress.org/branches/5.6@50721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson 2021-04-15 00:03:15 +00:00
parent fbb2f41d2a
commit 63d1e69a61
4 changed files with 30 additions and 19 deletions

28
package-lock.json generated
View File

@ -3146,9 +3146,9 @@
}
},
"@wordpress/block-directory": {
"version": "1.17.8",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-1.17.8.tgz",
"integrity": "sha512-xLYPO3qH63uaOjZGvU5nK7tLv10wKmW5mkpHyL8NAYnTEF+Cq4Xuh6aJMpskz+My7slGd2nWjKVIJLEv5KB9YQ==",
"version": "1.17.9",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-1.17.9.tgz",
"integrity": "sha512-Qik7/ClgI4VSPXyir6yYeb4kUaHv1ocwg0Anavb4sfCxxLP/CAv5IP6O+DY2O/AAteHxDbvCNW5O7rCS34wThQ==",
"requires": {
"@wordpress/a11y": "^2.13.0",
"@wordpress/api-fetch": "^3.20.0",
@ -3158,7 +3158,7 @@
"@wordpress/compose": "^3.22.0",
"@wordpress/data": "^4.25.0",
"@wordpress/data-controls": "^1.19.0",
"@wordpress/edit-post": "^3.25.8",
"@wordpress/edit-post": "^3.25.9",
"@wordpress/element": "^2.18.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/html-entities": "^2.9.0",
@ -3226,9 +3226,9 @@
}
},
"@wordpress/block-library": {
"version": "2.26.8",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.26.8.tgz",
"integrity": "sha512-r82INbSglZA5DfHmpBUVcP+b3CCkRhCEcqSesegTX4BBoXO2yMLaLwzFfcV5BW307vLX9Cv8Fx0Z5K/qBb/Q2Q==",
"version": "2.26.9",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.26.9.tgz",
"integrity": "sha512-XefyeHIRaX8iF93iNEGMDTb3/5el1Jjye8mWnyQ0OtM9lNtkrFnNzoyzxLlTqWyYu6z3U9fI6HOij/CHtwxVkw==",
"requires": {
"@babel/runtime": "^7.11.2",
"@wordpress/a11y": "^2.13.0",
@ -3513,15 +3513,15 @@
}
},
"@wordpress/edit-post": {
"version": "3.25.8",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.25.8.tgz",
"integrity": "sha512-ndYO4o+TEuSxg9FKBlhFVzUfjxDurHKVutstGkiNz+zD8NgZlogeYIH9xCcy8gy7YWO5U1g04dk23iMKfypB1w==",
"version": "3.25.9",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.25.9.tgz",
"integrity": "sha512-EszqyszDQqt4f0AWaw8DohWSiW6xVVJ0+TJKaGso94FZw8zKyoEF2a9Ciuqc01CpQ33/kzYSJLiRwjo5Up9WWg==",
"requires": {
"@babel/runtime": "^7.11.2",
"@wordpress/a11y": "^2.13.0",
"@wordpress/api-fetch": "^3.20.0",
"@wordpress/block-editor": "^5.1.7",
"@wordpress/block-library": "^2.26.8",
"@wordpress/block-library": "^2.26.9",
"@wordpress/blocks": "^6.24.2",
"@wordpress/components": "^11.1.5",
"@wordpress/compose": "^3.22.0",
@ -20969,9 +20969,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

@ -84,9 +84,9 @@
"@wordpress/api-fetch": "3.20.0",
"@wordpress/autop": "2.10.0",
"@wordpress/blob": "2.11.0",
"@wordpress/block-directory": "1.17.8",
"@wordpress/block-directory": "1.17.9",
"@wordpress/block-editor": "5.1.7",
"@wordpress/block-library": "2.26.8",
"@wordpress/block-library": "2.26.9",
"@wordpress/block-serialization-default-parser": "3.8.0",
"@wordpress/blocks": "6.24.2",
"@wordpress/components": "11.1.5",
@ -98,7 +98,7 @@
"@wordpress/deprecated": "2.10.0",
"@wordpress/dom": "2.15.0",
"@wordpress/dom-ready": "2.11.0",
"@wordpress/edit-post": "3.25.8",
"@wordpress/edit-post": "3.25.9",
"@wordpress/editor": "9.24.7",
"@wordpress/element": "2.18.0",
"@wordpress/escape-html": "1.10.0",

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
);
}