From e764f1cd7cc47a7f5fd19e40eb25a234c60c9058 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:45:47 +0100 Subject: [PATCH 1/2] Show unconfirmed attendees Allow unconfirmed attendees to show, if `tix_username` doesn't exist. --- .../plugins/camptix/addons/require-login.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/public_html/wp-content/plugins/camptix/addons/require-login.php b/public_html/wp-content/plugins/camptix/addons/require-login.php index 327a46e45f..6e460a1df1 100644 --- a/public_html/wp-content/plugins/camptix/addons/require-login.php +++ b/public_html/wp-content/plugins/camptix/addons/require-login.php @@ -771,9 +771,16 @@ public function replace_unknown_attendee_info_stubs( $ticket_info ) { */ public function hide_unconfirmed_attendees( $query_args ) { $meta_query = array( - 'key' => 'tix_username', - 'value' => self::UNCONFIRMED_USERNAME, - 'compare' => '!=' + array( + 'key' => 'tix_username', + 'value' => self::UNCONFIRMED_USERNAME, + 'compare' => '!=', + ), + 'relation' => 'OR', + array( + 'key' => 'tix_username', + 'compare' => 'NOT EXISTS', + ) ); if ( isset( $query_args['meta_query'] ) ) { From 11e24876fc35b7c828bcc862bb343971812e5ce7 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:49:10 +0100 Subject: [PATCH 2/2] Update require-login.php phpcs --- .../plugins/camptix/addons/require-login.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public_html/wp-content/plugins/camptix/addons/require-login.php b/public_html/wp-content/plugins/camptix/addons/require-login.php index 6e460a1df1..7bc512dec1 100644 --- a/public_html/wp-content/plugins/camptix/addons/require-login.php +++ b/public_html/wp-content/plugins/camptix/addons/require-login.php @@ -772,15 +772,15 @@ public function replace_unknown_attendee_info_stubs( $ticket_info ) { public function hide_unconfirmed_attendees( $query_args ) { $meta_query = array( array( - 'key' => 'tix_username', - 'value' => self::UNCONFIRMED_USERNAME, - 'compare' => '!=', - ), - 'relation' => 'OR', - array( - 'key' => 'tix_username', - 'compare' => 'NOT EXISTS', - ) + 'key' => 'tix_username', + 'value' => self::UNCONFIRMED_USERNAME, + 'compare' => '!=', + ), + 'relation' => 'OR', + array( + 'key' => 'tix_username', + 'compare' => 'NOT EXISTS', + ) ); if ( isset( $query_args['meta_query'] ) ) {