From 7b2253bd8a181b48fdd445e6b637d6604bbc3bee Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:47:01 +0100 Subject: [PATCH] Update shortcodes.php Add description for shortcode attribute. See conversation: https://wordpress.slack.com/archives/C08M59V3P/p1697743274597019 --- public_html/wp-content/plugins/camptix/addons/shortcodes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/wp-content/plugins/camptix/addons/shortcodes.php b/public_html/wp-content/plugins/camptix/addons/shortcodes.php index de6a04505f..ff82b92406 100644 --- a/public_html/wp-content/plugins/camptix/addons/shortcodes.php +++ b/public_html/wp-content/plugins/camptix/addons/shortcodes.php @@ -225,6 +225,7 @@ public function sanitize_attendees_atts( $attr ) { $attr['orderby'] = 'title'; } + // ID of ticket types, not invididual tickets. i.e. from wp-admin/edit.php?post_type=tix_ticket. if ( $attr['tickets'] ) { $attr['tickets'] = array_map( 'intval', explode( ',', $attr['tickets'] ) ); }