Make WordPress Core

Changeset 50724


Ignore:
Timestamp:
04/15/2021 12:57:57 AM (4 years ago)
Author:
peterwilsoncc
Message:

Editor: Update of @wordpress npm packages for 5.3.7.

Location:
branches/5.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3/package-lock.json

    r50605 r50724  
    21522152        },
    21532153        "@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==",
    21572157            "requires": {
    21582158                "@babel/runtime": "^7.4.4",
     
    24402440        },
    24412441        "@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==",
    24452445            "requires": {
    24462446                "@babel/runtime": "^7.4.4",
     
    24482448                "@wordpress/api-fetch": "^3.6.4",
    24492449                "@wordpress/block-editor": "^3.2.5",
    2450                 "@wordpress/block-library": "^2.9.7",
     2450                "@wordpress/block-library": "^2.9.9",
    24512451                "@wordpress/blocks": "^6.7.2",
    24522452                "@wordpress/components": "^8.3.2",
  • branches/5.3/package.json

    r50605 r50724  
    7878        "@wordpress/blob": "2.5.1",
    7979        "@wordpress/block-editor": "3.2.5",
    80         "@wordpress/block-library": "2.9.7",
     80        "@wordpress/block-library": "2.9.9",
    8181        "@wordpress/block-serialization-default-parser": "3.4.1",
    8282        "@wordpress/blocks": "6.7.2",
     
    9090        "@wordpress/dom": "2.5.2",
    9191        "@wordpress/dom-ready": "2.5.1",
    92         "@wordpress/edit-post": "3.8.7",
     92        "@wordpress/edit-post": "3.8.9",
    9393        "@wordpress/editor": "9.7.6",
    9494        "@wordpress/element": "2.8.2",
  • branches/5.3/src/wp-includes/blocks/latest-posts.php

    r46189 r50724  
    5454            && isset( $attributes['displayPostContentRadio'] ) && 'excerpt' === $attributes['displayPostContentRadio'] ) {
    5555            $post_excerpt = $post->post_excerpt;
     56
    5657            if ( ! ( $post_excerpt ) ) {
    5758                $post_excerpt = $post->post_content;
    5859            }
    5960            $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            }
    6065
    6166            $list_items_markup .= sprintf(
     
    7984        if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent']
    8085            && 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
    8193            $list_items_markup .= sprintf(
    8294                '<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
    8496            );
    8597        }
Note: See TracChangeset for help on using the changeset viewer.