Changeset 57109 for trunk/src/wp-includes/blocks/query.php
- Timestamp:
- 11/14/2023 12:09:17 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query.php
r57048 r57109 45 45 46 46 // 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 . '>' ); 48 52 $content = substr_replace( 49 53 $content, 50 54 '<div 51 class=" wp-block-query__enhanced-pagination-navigation-announcescreen-reader-text"55 class="screen-reader-text" 52 56 aria-live="polite" 53 57 data-wp-text="context.core.query.message" … … 58 62 data-wp-class--finish-animation="selectors.core.query.finishAnimation" 59 63 ></div>', 60 $last_ div_position,64 $last_tag_position, 61 65 0 62 66 );
Note: See TracChangeset
for help on using the changeset viewer.