Skip to content

Send ping as POST with admin fields#14

Merged
shazzad merged 1 commit into
mainfrom
feature/ping-post-and-admin-fields
Mar 26, 2026
Merged

Send ping as POST with admin fields#14
shazzad merged 1 commit into
mainfrom
feature/ping-post-and-admin-fields

Conversation

@shazzad
Copy link
Copy Markdown
Owner

@shazzad shazzad commented Mar 26, 2026

Summary

  • Switch ping from GET to POST with data in request body
  • Add admin_email and admin_name fields to ping data (site admin email + first admin's display name)
  • Skip update transient injection when plugin status is inactive (fixes ghost update notice on deactivation)
  • Send ping on hourly cron for licensed plugins too (ensures install data stays fresh)
  • Remove unnecessary install data from non-ping API requests

Test plan

  • Verify ping sends POST request with correct body data
  • Verify admin_email and admin_name are populated after init hook
  • Deactivate plugin — confirm no ghost update notice appears
  • Verify hourly cron pings for both licensed and unlicensed plugins
  • Verify check_license, updates, details endpoints still work without install data in query params
  • Run composer test — all 52 tests pass

🤖 Generated with Claude Code

- Switch ping from GET to POST with data in request body
- Add admin_email and admin_name to Integration, populated during init
- Skip update transient injection when plugin is inactive (fixes ghost updates on deactivation)
- Send ping on hourly cron for licensed plugins too
- Remove unnecessary install data from other API requests (only ping needs it)
- Update tests for POST ping

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shazzad shazzad merged commit 4ceae50 into main Mar 26, 2026
1 check passed
@shazzad shazzad deleted the feature/ping-post-and-admin-fields branch March 26, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant