From 5b3d0ca6ff5e3ecad4166bb26e470c7bf6ac2751 Mon Sep 17 00:00:00 2001 From: Paul Kevan <2290623+pkevan@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:22:37 +0000 Subject: [PATCH] Update wordcamp-participation-notifier.php Sync with production, temporary logging. --- .../wordcamp-participation-notifier.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php b/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php index 289e30b3c7..2299c4bd63 100644 --- a/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php +++ b/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php @@ -9,6 +9,7 @@ */ use WordPressdotorg\Profiles; +use WordCamp\Logger; /* * Requests will always fail when in local environments, unless the dev is proxied. Proxied devs could test @@ -246,6 +247,7 @@ protected function maybe_remove_badge( $post, $user_id ) { ); if ( '0' === $count ) { + Logger\log( 'badge-removal', 'Badge removed for ' . $post->post_type . ': ' . $user_id ); Profiles\api( $this->get_post_association_payload( $post, 'remove', $user_id ) ); } }