Make WordPress Core

Changeset 63066


Ignore:
Timestamp:
08/06/2026 03:39:30 PM (3 months ago)
Author:
desrosj
Message:

General: Bump the pinned hash for Gutenberg to 7f0aa7.

This updates the pinned commit hash of the Gutenberg repository from f05e40e91c54f29c449b1f33d0db89f5166812d9 to ea285b45692aed6c4f95353671393402f97f0aa7.

A full list of changes included in this commit can be found on GitHub:
​https://github.com/WordPress/gutenberg/compare/f05e40e91c54f29c449b1f33d0db89f5166812d9...ea285b45692aed6c4f95353671393402f97f0aa7.

  • Properly escape attributes in Post Date block.
  • Ensure latest comments can be viewed only for public posts.
  • Ensure Content block tags always match available options.
  • Core Data: saveDirtyEntities: improve messaging of server errors (#81151) (#81216)
  • DataViews: Pass only eligible items to a bulk action callback (#81198) (#81217)
  • theme.json schema: fix block pseudo-classes and custom states (#81209)

Props aduth, desrosj, jorbin, dmsnell.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r63026 r63066  
    88        },
    99        "gutenberg": {
    10                 "sha": "f05e40e91c54f29c449b1f33d0db89f5166812d9",
     10                "sha": "ea285b45692aed6c4f95353671393402f97f0aa7",
    1111                "ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
    1212        },
  • trunk/src/wp-includes/assets/script-loader-packages.php

    r63026 r63066  
    453453                        )
    454454                ),
    455                 'version' => 'b818e670c0d0297645f2'
     455                'version' => '51385a88f6721b4a849f'
    456456        ),
    457457        'edit-widgets.js' => array(
    … …  
    544544                        )
    545545                ),
    546                 'version' => 'e3c5b4a412541c51a59d'
     546                'version' => '6ef3b2a5f3b9e37bb337'
    547547        ),
    548548        'element.js' => array(
  • trunk/src/wp-includes/assets/script-modules-packages.php

    r63026 r63066  
    212212                        )
    213213                ),
    214                 'version' => 'b9a1df775b12692a9ffb'
     214                'version' => '06bbdee380f4cf86dff0'
    215215        ),
    216216        'core-abilities/index.js' => array(
  • trunk/src/wp-includes/blocks/latest-comments.php

    r62143 r63066  
    121121                        $list_items_markup .= '</footer>';
    122122                        if ( 'full' === $display_content ) {
    123                                 $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_text( $comment ) ) . '</div>';
     123                                $comment_text       = post_password_required( $comment->comment_post_ID )
     124                                        ? __( 'Password protected' )
     125                                        : get_comment_text( $comment );
     126                                $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( $comment_text ) . '</div>';
    124127                        } elseif ( 'excerpt' === $display_content ) {
    125128                                $list_items_markup .= '<div class="wp-block-latest-comments__comment-excerpt">' . wpautop( get_comment_excerpt( $comment ) ) . '</div>';
  • trunk/src/wp-includes/blocks/post-content.php

    r62143 r63066  
    5757        $tag_name = 'div';
    5858
    59         if ( ! empty( $attributes['tagName'] ) && tag_escape( $attributes['tagName'] ) === $attributes['tagName'] ) {
    60                 $tag_name = $attributes['tagName'];
     59        if ( isset( $attributes['tagName'] ) && is_string( $attributes['tagName'] ) ) {
     60                /**
     61                 * The allowed tag names match the options offered in the editor.
     62                 *
     63                 * @see packages/block-library/src/post-content/edit.js
     64                 */
     65                $allowed_tag_names   = array( 'div', 'main', 'section', 'article' );
     66                $normalized_tag_name = strtolower( $attributes['tagName'] );
     67
     68                if ( in_array( $normalized_tag_name, $allowed_tag_names, true ) ) {
     69                        $tag_name = $normalized_tag_name;
     70                }
    6171        }
    6272
  • trunk/src/wp-includes/blocks/post-date.php

    r62584 r63066  
    8282        $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) );
    8383
    84         $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', $unformatted_date, $formatted_date );
     84        $time_tag = sprintf( '<time datetime="%1$s">%2$s</time>', esc_attr( $unformatted_date ), esc_html( $formatted_date ) );
    8585
    8686        if ( isset( $attributes['isLink'] ) && $attributes['isLink'] && isset( $block->context['postId'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.