Make WordPress Core


Ignore:
Timestamp:
02/07/2025 03:44:07 PM (13 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 pre-Betas.

Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, youknowriad, swissspidy, sergiomdgomes, gziolo.
See #62887.

File:
1 edited

Legend:

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

    r59230 r59775  
    150150    }
    151151
    152     $alt              = $p->get_attribute( 'alt' );
    153     $img_uploaded_src = $p->get_attribute( 'src' );
    154     $img_class_names  = $p->get_attribute( 'class' );
    155     $img_styles       = $p->get_attribute( 'style' );
    156     $img_width        = 'none';
    157     $img_height       = 'none';
    158     $aria_label       = __( 'Enlarge image' );
    159 
    160     if ( $alt ) {
    161         /* translators: %s: Image alt text. */
    162         $aria_label = sprintf( __( 'Enlarge image: %s' ), $alt );
    163     }
     152    $alt               = $p->get_attribute( 'alt' );
     153    $img_uploaded_src  = $p->get_attribute( 'src' );
     154    $img_class_names   = $p->get_attribute( 'class' );
     155    $img_styles        = $p->get_attribute( 'style' );
     156    $img_width         = 'none';
     157    $img_height        = 'none';
     158    $aria_label        = __( 'Enlarge' );
     159    $dialog_aria_label = __( 'Enlarged image' );
    164160
    165161    if ( isset( $block['attrs']['id'] ) ) {
     
    191187                    'targetHeight'     => $img_height,
    192188                    'scaleAttr'        => $block['attrs']['scale'] ?? false,
    193                     'ariaLabel'        => $aria_label,
     189                    'ariaLabel'        => $dialog_aria_label,
    194190                    'alt'              => $alt,
    195191                ),
     
    291287            data-wp-on-async-window--resize="callbacks.setOverlayStyles"
    292288            data-wp-on-async-window--scroll="actions.handleScroll"
     289            data-wp-bind--style="state.overlayStyles"
    293290            tabindex="-1"
    294291            >
     
    307304                </div>
    308305                <div class="scrim" style="background-color: $background_color" aria-hidden="true"></div>
    309                 <style data-wp-text="state.overlayStyles"></style>
    310306        </div>
    311307HTML;
Note: See TracChangeset for help on using the changeset viewer.