Changeset 52042 for trunk/src/wp-includes/blocks/archives.php
- Timestamp:
- 11/08/2021 02:26:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/archives.php
r49324 r52042 41 41 $archives = wp_get_archives( $dropdown_args ); 42 42 43 $classnames = esc_attr( $class ); 44 45 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); 46 43 47 switch ( $dropdown_args['type'] ) { 44 48 case 'yearly': … … 61 65 $label = esc_html( $label ); 62 66 63 $block_content = '<label class="screen-reader-text"for="' . $dropdown_id . '">' . $title . '</label>67 $block_content = '<label for="' . $dropdown_id . '">' . $title . '</label> 64 68 <select id="' . $dropdown_id . '" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;"> 65 69 <option value="">' . $label . '</option>' . $archives . '</select>'; 66 70 67 71 return sprintf( 68 '<div class="%1$s">%2$s</div>',69 esc_attr( $class ),72 '<div %1$s>%2$s</div>', 73 $wrapper_attributes, 70 74 $block_content 71 75 );
Note: See TracChangeset
for help on using the changeset viewer.