Skip to content

Commit

Permalink
Strip tags from categories in key
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Sep 25, 2024
1 parent 21bc1c1 commit 08fcaf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/my-calendar-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function mc_category_key( $category, $id = '' ) {
if ( 1 === (int) $cat->category_private ) {
$class .= ' private';
}
$cat_name = mc_kses_post( stripcslashes( $cat->category_name ) );
$cat_name = wp_strip_all_tags( stripcslashes( $cat->category_name ) );
$cat_name = ( '' === $cat_name ) ? '<span class="screen-reader-text">' . __( 'Untitled Category', 'my-calendar' ) . '</span>' : $cat_name;
$cat_key = '';
if ( '' !== $cat->category_icon && $has_icons ) {
Expand Down
2 changes: 2 additions & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ Translating my plugins is always appreciated. Visit <a href="https://translate.w

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

0 comments on commit 08fcaf4

Please sign in to comment.