Changeset 50724
- Timestamp:
- 04/15/2021 12:57:57 AM (4 years ago)
- Location:
- branches/5.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3/package-lock.json
r50605 r50724 2152 2152 }, 2153 2153 "@wordpress/block-library": { 2154 "version": "2.9. 7",2155 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.9. 7.tgz",2156 "integrity": "sha512- +kqmPOX7nJA4K27G7I6DpUlnLqyE/M4Nc6OyDeHO6eAg0pa8BkWTCNgwthTO5uJdlE0hU1CJ6CHe+gagbrLmOg==",2154 "version": "2.9.9", 2155 "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-2.9.9.tgz", 2156 "integrity": "sha512-Sm3zjIiu8xF128s8XjchgBiIUCma9H87f8jg5Ae4H9kQtxZr9hM5ikChA4D5+G4WNweKVt5DY2evaL1IPIhKZQ==", 2157 2157 "requires": { 2158 2158 "@babel/runtime": "^7.4.4", … … 2440 2440 }, 2441 2441 "@wordpress/edit-post": { 2442 "version": "3.8. 7",2443 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.8. 7.tgz",2444 "integrity": "sha512- DPeoQjZo4NqGr0zkaOjnY52HmpGZ7/DbVaGwtf7QgIdn6oHk/wva+oHsG8NbrxdTh3Rkx17m8omjL7gdg57+Ww==",2442 "version": "3.8.9", 2443 "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-3.8.9.tgz", 2444 "integrity": "sha512-2jrzv4ckSa6BZAFAV2190FLorvDlTnIVTm5yuLbp7ALtTJAuToe1oVcBrHXAOx9kstM2dO3yH8uCYDFcyhywoQ==", 2445 2445 "requires": { 2446 2446 "@babel/runtime": "^7.4.4", … … 2448 2448 "@wordpress/api-fetch": "^3.6.4", 2449 2449 "@wordpress/block-editor": "^3.2.5", 2450 "@wordpress/block-library": "^2.9. 7",2450 "@wordpress/block-library": "^2.9.9", 2451 2451 "@wordpress/blocks": "^6.7.2", 2452 2452 "@wordpress/components": "^8.3.2", -
branches/5.3/package.json
r50605 r50724 78 78 "@wordpress/blob": "2.5.1", 79 79 "@wordpress/block-editor": "3.2.5", 80 "@wordpress/block-library": "2.9. 7",80 "@wordpress/block-library": "2.9.9", 81 81 "@wordpress/block-serialization-default-parser": "3.4.1", 82 82 "@wordpress/blocks": "6.7.2", … … 90 90 "@wordpress/dom": "2.5.2", 91 91 "@wordpress/dom-ready": "2.5.1", 92 "@wordpress/edit-post": "3.8. 7",92 "@wordpress/edit-post": "3.8.9", 93 93 "@wordpress/editor": "9.7.6", 94 94 "@wordpress/element": "2.8.2", -
branches/5.3/src/wp-includes/blocks/latest-posts.php
r46189 r50724 54 54 && isset( $attributes['displayPostContentRadio'] ) && 'excerpt' === $attributes['displayPostContentRadio'] ) { 55 55 $post_excerpt = $post->post_excerpt; 56 56 57 if ( ! ( $post_excerpt ) ) { 57 58 $post_excerpt = $post->post_content; 58 59 } 59 60 $trimmed_excerpt = esc_html( wp_trim_words( $post_excerpt, $excerpt_length, ' … ' ) ); 61 62 if ( post_password_required( $post ) ) { 63 $trimmed_excerpt = __( 'This content is password protected.' ); 64 } 60 65 61 66 $list_items_markup .= sprintf( … … 79 84 if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] 80 85 && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) { 86 87 $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ); 88 89 if ( post_password_required( $post ) ) { 90 $post_content = __( 'This content is password protected.' ); 91 } 92 81 93 $list_items_markup .= sprintf( 82 94 '<div class="wp-block-latest-posts__post-full-content">%1$s</div>', 83 wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) )95 $post_content 84 96 ); 85 97 }
Note: See TracChangeset
for help on using the changeset viewer.