Skip to content

Commit 08fcaf4

Browse files
committed
Strip tags from categories in key
1 parent 21bc1c1 commit 08fcaf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/my-calendar-navigation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function mc_category_key( $category, $id = '' ) {
417417
if ( 1 === (int) $cat->category_private ) {
418418
$class .= ' private';
419419
}
420-
$cat_name = mc_kses_post( stripcslashes( $cat->category_name ) );
420+
$cat_name = wp_strip_all_tags( stripcslashes( $cat->category_name ) );
421421
$cat_name = ( '' === $cat_name ) ? '<span class="screen-reader-text">' . __( 'Untitled Category', 'my-calendar' ) . '</span>' : $cat_name;
422422
$cat_key = '';
423423
if ( '' !== $cat->category_icon && $has_icons ) {

src/readme.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ Translating my plugins is always appreciated. Visit <a href="https://translate.w
112112

113113
* Bug fix: Restore event and location pagination broken in 3.5.13.
114114
* Bug fix: Pass valid `$type` parameters to admin notice function.
115+
* Bug fix: Able to delete the custom all day time label for an event.
116+
* Bug fix: Checkboxes not uncheckable for event date handling parameters.
115117
* Accessibility: Wrap pagination and filters in `nav` elements.
116118
* Accessibility: Consistent ordering of pagination and filters.
117119
* Feature: Add event count column to locations screen.

0 commit comments

Comments
 (0)