Editor: Update of @wordpress npm packages for 5.6.3.
Built from https://develop.svn.wordpress.org/branches/5.6@50721 git-svn-id: http://core.svn.wordpress.org/branches/5.6@50330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
768f1d858c
commit
d433acb528
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -4658,6 +4658,8 @@ function (_super) {
|
|||
};
|
||||
|
||||
Cropper.prototype.componentWillUnmount = function () {
|
||||
var _a;
|
||||
|
||||
window.removeEventListener('resize', this.computeSizes);
|
||||
|
||||
if (this.containerRef) {
|
||||
|
@ -4666,7 +4668,7 @@ function (_super) {
|
|||
}
|
||||
|
||||
if (this.styleRef) {
|
||||
this.styleRef.remove();
|
||||
(_a = this.styleRef.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this.styleRef);
|
||||
}
|
||||
|
||||
this.cleanEvents();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6.3-alpha-50716';
|
||||
$wp_version = '5.6.3-alpha-50721';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue