Make WordPress Core


Ignore:
Timestamp:
01/24/2024 07:00:51 PM (14 months ago)
Author:
jorbin
Message:

Editor: update npm packages in trunk for 6.4.3.

Package Update includes fixes for:

  • Fix block rename control shown in "Advanced" for unsupported blocks
  • Query block: remove unnecessary class
  • Fix duotone not showing in site editor style block level styles
  • Query Loop - Add accessibility markup at the end of the loop in all cases.
  • Background Image Support: Hide the background image reset button when there's no image
  • Background image support: Fix focus loss when resetting background image
  • Autocomplete: Fix Voiceover not announcing suggestions
  • Fix pattern category renaming causing potential duplicate categories
  • Patterns: use existing download function for JSON downloads to fix non-ASCII encoding
  • Add context for translators to any unclear usage of "synced"
  • Image block: Add check for lightbox values during image block migration
  • Image Block: Enable image block to be selected correctly when clicked
  • Reduce specificity of default Cover text color styles.
  • Image Block: Fix deprecation when width/height attribute is number
  • Text selection: show CSS hack to Safari only.
  • SlotFill: Allow contextual SlotFillProviders

Reviewed by peterwilsoncc.
Merges [57258] and [57109] to 6.4 branch.

Props mikachan, isabel_brison, kebbet, artemiosans, talldanwp, ramonopoly, alexstine, andrewserong, mamaduka, cbravobernal, ajlende, luisherranz, wildworks, poena, czapla, andraganescu, joen, ellatrix, youknowriad, ntsekouras.
Fixes #59828.

File:
1 edited

Legend:

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

    r57049 r57346  
    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.