Add hosting provider detection, multisite flag, and user profile URLs#212
Open
claytoncollie wants to merge 3 commits intodevelopfrom
Open
Add hosting provider detection, multisite flag, and user profile URLs#212claytoncollie wants to merge 3 commits intodevelopfrom
claytoncollie wants to merge 3 commits intodevelopfrom
Conversation
- Add get_hosting_provider() method that detects platform via PHP constants (VIP, Kinsta, WP Engine, Pantheon, Pagely, Flywheel, Cloudways) - Refactor get_is_using_object_cache() VIP check to use centralized detection - Add hosting_provider and is_multisite to report customData - Add profileUrl (wp-admin search URL) to each user in get_users() - Fix db_version using method call instead of non-existent property Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
@darylldoyle This is reday for your review. It is part of work I am doing in the Monitor repo linked in the PR. Once this PR is merged, it unblocks the Monitor PR and finish testing that work. |
1 task
darylldoyle
previously approved these changes
Feb 26, 2026
These are static environment metadata that belong as first-class fields in the POST payload rather than embedded in the customData array. Monitor reads them directly with a backward-compatible fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
@darylldoyle I moved the data from the customData array to the main body. Can you have one more look and approve? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_hosting_provider()method that auto-detects hosting platform via PHP constants (VIP, Kinsta, WP Engine, Pantheon, Pagely, Flywheel, Cloudways)get_is_using_object_cache()VIP check to use centralized hosting detectionhosting_providerandis_multisitein reportprofileUrl(wp-admin user search URL) for each user inget_users()db_version— was checking a non-existent$wpdb->db_versionproperty instead of calling$wpdb->db_version()Closes #205
Test plan
wp cron event run send_daily_report_cronhosting_providerappears in report (value depends on host;unknownon generic hosting)is_multisiteappears in report (trueon multisite,falseon single site)profileUrlwith a wp-admin search URLdb_versionis now populated (e.g.8.0.39) instead of emptydefine('KINSTA_DEV_ENV', true)) and confirming the correct provider is returnedget_is_using_object_cache()still returnstruevia the refactored check