Changeset 59148 for trunk/src/wp-includes/blocks/categories.php
- Timestamp:
- 10/01/2024 01:16:30 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/categories.php
r59072 r59148 50 50 $show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : ''; 51 51 $default_label = $taxonomy->label; 52 $label_text = ! empty( $attributes['label'] ) ? $attributes['label']: $default_label;52 $label_text = ! empty( $attributes['label'] ) ? wp_kses_post( $attributes['label'] ) : $default_label; 53 53 $wrapper_markup = '<div %1$s><label class="wp-block-categories__label' . $show_label . '" for="' . esc_attr( $id ) . '">' . $label_text . '</label>%2$s</div>'; 54 54 $items_markup = wp_dropdown_categories( $args );
Note: See TracChangeset
for help on using the changeset viewer.