Make WordPress Core


Ignore:
Timestamp:
11/14/2023 12:09:17 AM (10 months ago)
Author:
isabel_brison
Message:

Editor: update npm packages for 6.4.2.

Package updates with bug fixes related to patterns, Query look interactivity, design tools UI and accessibility.

Props mikachan, jorbin, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz.
See #59828.

File:
1 edited

Legend:

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

    r57048 r57109  
    4545
    4646            // Add a div to announce messages using `aria-live`.
    47             $last_div_position = strripos( $content, '</div>' );
     47            $html_tag = 'div';
     48            if ( ! empty( $attributes['tagName'] ) ) {
     49                $html_tag = esc_attr( $attributes['tagName'] );
     50            }
     51            $last_tag_position = strripos( $content, '</' . $html_tag . '>' );
    4852            $content           = substr_replace(
    4953                $content,
    5054                '<div
    51                     class="wp-block-query__enhanced-pagination-navigation-announce screen-reader-text"
     55                    class="screen-reader-text"
    5256                    aria-live="polite"
    5357                    data-wp-text="context.core.query.message"
     
    5862                    data-wp-class--finish-animation="selectors.core.query.finishAnimation"
    5963                ></div>',
    60                 $last_div_position,
     64                $last_tag_position,
    6165                0
    6266            );
Note: See TracChangeset for help on using the changeset viewer.