Changeset 56755 for trunk/src/wp-includes/blocks/image.php
- Timestamp:
- 10/02/2023 06:55:27 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/image.php
r56710 r56755 65 65 66 66 if ( $lightbox_enabled ) { 67 return block_core_image_render_lightbox( $processor->get_updated_html(), $block->parsed_block ); 67 // This render needs to happen in a filter with priority 15 to ensure that it 68 // runs after the duotone filter and that duotone styles are applied to the image 69 // in the lightbox. We also need to ensure that the lightbox works with any plugins 70 // that might use filters as well. We can consider removing this in the future if the 71 // way the blocks are rendered changes, or if a new kind of filter is introduced. 72 add_filter( 'render_block_core/image', 'block_core_image_render_lightbox', 15, 2 ); 68 73 } 69 74 … … 268 273 data-wp-effect="effects.core.image.initLightbox" 269 274 data-wp-on--keydown="actions.core.image.handleKeydown" 270 data-wp-on--mousewheel="actions.core.image.hideLightbox" 275 data-wp-on--touchstart="actions.core.image.handleTouchStart" 276 data-wp-on--touchmove="actions.core.image.handleTouchMove" 277 data-wp-on--touchend="actions.core.image.handleTouchEnd" 271 278 data-wp-on--click="actions.core.image.hideLightbox" 272 279 >
Note: See TracChangeset
for help on using the changeset viewer.