Changeset 55246 for trunk/src/wp-includes/blocks/archives.php
- Timestamp:
- 02/07/2023 07:01:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/archives.php
r54257 r55246 18 18 $show_post_count = ! empty( $attributes['showPostCounts'] ); 19 19 $type = isset( $attributes['type'] ) ? $attributes['type'] : 'monthly'; 20 $class = ''; 20 21 $class = 'wp-block-archives-list'; 21 22 22 23 if ( ! empty( $attributes['displayAsDropdown'] ) ) { 23 24 24 $class .= 'wp-block-archives-dropdown';25 $class = 'wp-block-archives-dropdown'; 25 26 26 27 $dropdown_id = wp_unique_id( 'wp-block-archives-' ); … … 41 42 $archives = wp_get_archives( $dropdown_args ); 42 43 43 $classnames = esc_attr( $class ); 44 45 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) ); 44 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) ); 46 45 47 46 switch ( $dropdown_args['type'] ) { … … 75 74 ); 76 75 } 77 78 $class .= ' wp-block-archives-list';79 76 80 77 /** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
Note: See TracChangeset
for help on using the changeset viewer.