From 08fcaf41fd5919c37d5f22361d8f66408c0111c7 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Wed, 25 Sep 2024 16:37:15 -0500 Subject: [PATCH] Strip tags from categories in key --- src/my-calendar-navigation.php | 2 +- src/readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/my-calendar-navigation.php b/src/my-calendar-navigation.php index 0a1afb60..609be474 100644 --- a/src/my-calendar-navigation.php +++ b/src/my-calendar-navigation.php @@ -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 ) ? '' . __( 'Untitled Category', 'my-calendar' ) . '' : $cat_name; $cat_key = ''; if ( '' !== $cat->category_icon && $has_icons ) { diff --git a/src/readme.txt b/src/readme.txt index 2acd91c3..852935d0 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -112,6 +112,8 @@ Translating my plugins is always appreciated. Visit