Make WordPress Core


Ignore:
Timestamp:
10/21/2025 07:11:53 AM (3 months ago)
Author:
ellatrix
Message:

Editor: update packages.

Updates the packages to match Gutenberg version 21.9.0 RC2.

Also updates the sync script to work with the new package-lock.json format.
Some reusable block tests were adjusted to work with more render arguments.
Added core-data to the ignore list for verify:source-maps because Yjs has been bundled by accident. To be removed in a follow-up. See https://core.trac.wordpress.org/ticket/64120. See https://github.com/WordPress/gutenberg/pull/72503.

See: https://github.com/WordPress/wordpress-develop/pull/10355.
See: https://core.trac.wordpress.org/ticket/64117.

Props ellatrix, dmsnell.
Fixes #64117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/comments.php

    r58275 r61009  
    2929    global $post;
    3030
     31    if ( ! isset( $block->context['postId'] ) ) {
     32        return '';
     33    }
     34
    3135    $post_id = $block->context['postId'];
    32     if ( ! isset( $post_id ) ) {
    33         return '';
    34     }
    35 
    3636    // Return early if there are no comments and comments are closed.
    3737    if ( ! comments_open( $post_id ) && (int) get_comments_number( $post_id ) === 0 ) {
Note: See TracChangeset for help on using the changeset viewer.