Changeset 58187 for trunk/src/wp-includes/blocks/image.php
- Timestamp:
- 05/23/2024 07:37:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/image.php
r57619 r58187 9 9 * Renders the `core/image` block on the server, 10 10 * adding a data-id attribute to the element if core/gallery has added on pre-render. 11 * 12 * @since 5.9.0 11 13 * 12 14 * @param array $attributes The block attributes. … … 86 88 * This is used to determine whether the lightbox should be rendered or not. 87 89 * 90 * @since 6.4.0 91 * 88 92 * @param array $block Block data. 89 93 * … … 115 119 /** 116 120 * Adds the directives and layout needed for the lightbox behavior. 121 * 122 * @since 6.4.0 117 123 * 118 124 * @param string $block_content Rendered block content. … … 220 226 } 221 227 228 /** 229 * @since 6.5.0 230 */ 222 231 function block_core_image_print_lightbox_overlay() { 223 232 $close_button_label = esc_attr__( 'Close' ); … … 239 248 240 249 echo <<<HTML 241 <div 250 <div 242 251 class="wp-lightbox-overlay zoom" 243 252 data-wp-interactive="core/image" … … 279 288 /** 280 289 * Registers the `core/image` block on server. 290 * 291 * @since 5.9.0 281 292 */ 282 293 function register_block_core_image() {
Note: See TracChangeset
for help on using the changeset viewer.