Make WordPress Core


Ignore:
Timestamp:
10/02/2023 06:55:27 PM (16 months ago)
Author:
karmatosed
Message:

Update npm packages to latest.

The npm packages needed a further update for beta 2 in preparation for 6.4.

Props @mmaattiiaass , @wildworks , @aaronrobertshaw, @bartkalisz, @mamaduka, @artemiosans, @youknowriad, @czapla, @richtabor, @glendaviesnz, @pbking, @cbravobernal, @madhudollu, @kevin940726, @adamsilverstein, @get_dave, @ntsekouras, @ramonopoly, @jffng, @swissspidy, @carlosgprim, @siobhyb, @mikachan.

See #59411.

File:
1 edited

Legend:

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

    r56710 r56755  
    6565
    6666    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 );
    6873    }
    6974
     
    268273            data-wp-effect="effects.core.image.initLightbox"
    269274            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"
    271278            data-wp-on--click="actions.core.image.hideLightbox"
    272279            >
Note: See TracChangeset for help on using the changeset viewer.