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/image.php

    r57619 r58187  
    99 * Renders the `core/image` block on the server,
    1010 * adding a data-id attribute to the element if core/gallery has added on pre-render.
     11 *
     12 * @since 5.9.0
    1113 *
    1214 * @param array    $attributes The block attributes.
     
    8688 * This is used to determine whether the lightbox should be rendered or not.
    8789 *
     90 * @since 6.4.0
     91 *
    8892 * @param array $block Block data.
    8993 *
     
    115119/**
    116120 * Adds the directives and layout needed for the lightbox behavior.
     121 *
     122 * @since 6.4.0
    117123 *
    118124 * @param string $block_content Rendered block content.
     
    220226}
    221227
     228/**
     229 * @since 6.5.0
     230 */
    222231function block_core_image_print_lightbox_overlay() {
    223232    $close_button_label = esc_attr__( 'Close' );
     
    239248
    240249    echo <<<HTML
    241         <div 
     250        <div
    242251            class="wp-lightbox-overlay zoom"
    243252            data-wp-interactive="core/image"
     
    279288/**
    280289 * Registers the `core/image` block on server.
     290 *
     291 * @since 5.9.0
    281292 */
    282293function register_block_core_image() {
Note: See TracChangeset for help on using the changeset viewer.