Add Replay button to show a donation alert again
Test and Release / test (push) Successful in 6m43s
Test and Release / release (push) Successful in 24s

Donations > Replay queues the alert for the open alerts overlay. Requests
expire after 60 seconds, play once, and never re-apply totals, timers,
counters, rewards or tiers. Held, rejected and pending donations are excluded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-11-27 21:21:19 -08:00
1 parent 96bae1cbf9
commit 971a4ac482
12 files changed
+258 -10

No files matched your search

+6
View File
@@ -152,6 +152,12 @@ final class Store {
return (int) $wpdb->get_var( 'SELECT COUNT(*) FROM ' . self::t( 'donations' ) . " WHERE status = 'completed' AND moderation = 'pending'" );
}
public static function donationById( int $id ): ?array {
global $wpdb;
$row = $wpdb->get_row( $wpdb->prepare( 'SELECT * FROM ' . self::t( 'donations' ) . ' WHERE id = %d', $id ), ARRAY_A );
return $row ?: null;
}
public static function setModeration( int $id, string $to ): bool {
global $wpdb;
if ( ! in_array( $to, array( 'approved', 'rejected' ), true ) ) {