Changeset 50723 for branches/5.4/src/wp-includes/blocks/latest-posts.php
- Timestamp:
- 04/15/2021 12:12:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4/src/wp-includes/blocks/latest-posts.php
r47408 r50723 107 107 108 108 $trimmed_excerpt = get_the_excerpt( $post ); 109 110 if ( post_password_required( $post ) ) { 111 $trimmed_excerpt = __( 'This content is password protected.' ); 112 } 109 113 110 114 $list_items_markup .= sprintf( … … 128 132 if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] 129 133 && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) { 134 135 $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ); 136 137 if ( post_password_required( $post ) ) { 138 $post_content = __( 'This content is password protected.' ); 139 } 140 130 141 $list_items_markup .= sprintf( 131 142 '<div class="wp-block-latest-posts__post-full-content">%1$s</div>', 132 wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) )143 $post_content 133 144 ); 134 145 }
Note: See TracChangeset
for help on using the changeset viewer.