From 3c20387c54f42589ecdc3bd480afe102dc7bc4df Mon Sep 17 00:00:00 2001 From: Enrico Battocchi Date: Thu, 26 Sep 2024 23:29:29 +0200 Subject: [PATCH] Add custom class to attendees URLs This mimics what happens for other questions where a class `tix-question-name` is added, allowing for further styling. Currently URLs only get the same, generic classes making it very difficult to style them according to their nature. --- public_html/wp-content/plugins/camptix/addons/field-url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/wp-content/plugins/camptix/addons/field-url.php b/public_html/wp-content/plugins/camptix/addons/field-url.php index 20138c7b57..50871834c8 100644 --- a/public_html/wp-content/plugins/camptix/addons/field-url.php +++ b/public_html/wp-content/plugins/camptix/addons/field-url.php @@ -75,7 +75,7 @@ function attendees_shortcode_item( $attendee_id ) { $label = substr( $label, 4 ); } - printf( '%s', esc_url( $url ), esc_html( $label ) ); + printf( '%s', esc_attr( $question->post_name ), esc_url( $url ), esc_html( $label ) ); } } }