Make WordPress Core


Ignore:
Timestamp:
05/23/2024 07:37:08 PM (9 months ago)
Author:
ellatrix
Message:

Editor: Update npm packages.

Updates the editor npm packages to latest versions.

See https://github.com/WordPress/wordpress-develop/pull/6612.

Props ellatrix, mukesh27, youknowriad, mamaduka.

File:
1 edited

Legend:

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

    r57377 r58187  
    3434    $tag_name = 'h2';
    3535    if ( isset( $attributes['level'] ) ) {
    36         $tag_name = 'h' . $attributes['level'];
     36        $tag_name = 0 === $attributes['level'] ? 'p' : 'h' . (int) $attributes['level'];
    3737    }
    3838
     
    6161/**
    6262 * Registers the `core/post-title` block on the server.
     63 *
     64 * @since 5.8.0
    6365 */
    6466function register_block_core_post_title() {
Note: See TracChangeset for help on using the changeset viewer.