Changeset 50760 for trunk/src/wp-includes/blocks/latest-posts.php
- Timestamp:
- 04/15/2021 11:01:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/latest-posts.php
r49226 r50760 135 135 $trimmed_excerpt = get_the_excerpt( $post ); 136 136 137 if ( post_password_required( $post ) ) { 138 $trimmed_excerpt = __( 'This content is password protected.' ); 139 } 140 137 141 $list_items_markup .= sprintf( 138 142 '<div class="wp-block-latest-posts__post-excerpt">%1$s</div>', … … 143 147 if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] 144 148 && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) { 149 150 $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ); 151 152 if ( post_password_required( $post ) ) { 153 $post_content = __( 'This content is password protected.' ); 154 } 155 145 156 $list_items_markup .= sprintf( 146 157 '<div class="wp-block-latest-posts__post-full-content">%1$s</div>', 147 wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) )158 $post_content 148 159 ); 149 160 }
Note: See TracChangeset
for help on using the changeset viewer.