Skip to content

Commit

Permalink
deploy: e994cf9
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 6, 2025
1 parent 783ea60 commit 3985cf0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions my-calendar-templates.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
$e['cat_id'] = $event->event_category;
$e['category_id'] = $event->event_category;
$e['category'] = stripslashes( $event->category_name );
$e['ical_category'] = strip_tags( stripslashes( $event->category_name ) );
$e['ical_category'] = wp_strip_all_tags(( stripslashes( $event->category_name ) );
$e['categories'] = ( property_exists( $event, 'categories' ) ) ? mc_categories_html( $event->categories, $event->event_category ) : mc_get_categories( $event, 'html' );
$e['ical_categories'] = ( property_exists( $event, 'categories' ) ) ? mc_categories_html( $event->categories, $event->event_category, 'text' ) : mc_get_categories( $event, 'text' );
$e['term'] = intval( $event->category_term );
Expand All @@ -623,10 +623,10 @@
$e['title'] = stripslashes( $title );
$e['description'] = wpautop( stripslashes( $event->event_desc ) );
$e['description_raw'] = stripslashes( $event->event_desc );
$e['description_stripped'] = strip_tags( stripslashes( $event->event_desc ) );
$e['description_stripped'] = wp_strip_all_tags( stripslashes( $event->event_desc ) );
$e['shortdesc'] = wpautop( stripslashes( $event->event_short ) );
$e['shortdesc_raw'] = stripslashes( $event->event_short );
$e['shortdesc_stripped'] = strip_tags( stripslashes( $event->event_short ) );
$e['shortdesc_stripped'] = wp_strip_all_tags( stripslashes( $event->event_short ) );

// Registration fields.
$e['event_tickets'] = $event->event_tickets;
Expand Down Expand Up @@ -773,7 +773,7 @@
$e['ical_location'] = '';
}

$strip_desc = mc_newline_replace( strip_tags( $event->event_desc ) ) . ' ' . $e['link'];
$strip_desc = mc_newline_replace( wp_strip_all_tags( $event->event_desc ) ) . ' ' . $e['link'];
if ( mc_is_all_day( $event ) ) {
$google_start = mc_date( 'Ymd', strtotime( $dtstart ), false );
$google_end = mc_date( 'Ymd', strtotime( $dtend ), false );
Expand Down Expand Up @@ -1557,7 +1557,7 @@
$e['search_excerpt'] = mc_search_highlight( $description, $shortdesc );
$e['auto_excerpt'] = $autoexcerpt;
$e['excerpt'] = $excerpt;
$e['ical_excerpt'] = mc_newline_replace( strip_tags( $excerpt ) );
$e['ical_excerpt'] = mc_newline_replace( wp_strip_all_tags( $excerpt ) );

return $e;
}
Expand Down Expand Up @@ -1706,7 +1706,7 @@
$e[ $size . '_url' ] = $src[0];
}
if ( isset( $e['large'] ) && '' !== $e['large'] ) {
$e['image_url'] = strip_tags( $e['large'] );
$e['image_url'] = wp_strip_all_tags( $e['large'] );
$e['image'] = $e['large'];
} else {
/**
Expand All @@ -1719,7 +1719,7 @@
* @return {string} Image size description key.
*/
$image_size = apply_filters( 'mc_default_image_size', 'thumbnail' );
$e['image_url'] = strip_tags( $e[ $image_size ] );
$e['image_url'] = wp_strip_all_tags( $e[ $image_size ] );
$e['image'] = $e[ $image_size ];
}
} else {
Expand Down Expand Up @@ -2105,8 +2105,8 @@
$event_title = mc_draw_event_title( $event, $data->tags, $type, '' );
$aria = '';
// If the event title is already in the details label, omit ARIA.
if ( false === stripos( strip_tags( $details_label ), strip_tags( $event_title ) ) ) {
$aria = " aria-label='" . esc_attr( "$details_label: " . strip_tags( $event_title ) ) . "'";
if ( false === stripos( wp_strip_all_tags( $details_label ), wp_strip_all_tags( $event_title ) ) ) {
$aria = " aria-label='" . esc_attr( "$details_label: " . wp_strip_all_tags( $event_title ) ) . "'";
}
if ( _mc_is_url( $permalink ) ) {
$more = " <p class='mc-details'><span class='mc-icon' aria-hidden='true'></span><a$aria href='" . esc_url( $permalink ) . "'>$details_label</a></p>\n";
Expand Down

0 comments on commit 3985cf0

Please sign in to comment.