Make WordPress Core


Ignore:
Timestamp:
10/21/2025 07:11:53 AM (13 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/post-content.php

    r59906 r61009  
    5555        }
    5656
     57        $tag_name = 'div';
     58
     59        if ( ! empty( $attributes['tagName'] ) && tag_escape( $attributes['tagName'] ) === $attributes['tagName'] ) {
     60                $tag_name = $attributes['tagName'];
     61        }
     62
    5763        $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'entry-content' ) );
    5864
    59         return (
    60                 '<div ' . $wrapper_attributes . '>' .
    61                         $content .
    62                 '</div>'
     65        return sprintf(
     66                '<%1$s %2$s>%3$s</%1$s>',
     67                $tag_name,
     68                $wrapper_attributes,
     69                $content
    6370        );
    6471}
Note: See TracChangeset for help on using the changeset viewer.