Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wordcamp-participation-notifier.php #1437

Open
wants to merge 1 commit into
base: production
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ) );
}
}
Expand Down
Loading