Automattic / Automattic/jetpack

Automatically detect a staging SiteGround site

Open
#7,835 6 comments 0 reactions 0 assignees View on GitHub
[Pri] Low Customer Report [LEGACY] Enhancement General
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

We have this function already `Jetpack::is_staging_site` in [this code](https://github.com/Automattic/jetpack/blob/1dd3187b6d522efbf13cb994471fb223d1d91315/class.jetpack.php#L5835)

Now, we just need to put a constant or URL in the `$known_staging` array.

* SiteGround info: https://www.siteground.co.uk/tutorials/staging/
* Our doc: https://jetpack.com/support/staging-sites/

Ticket: 695508-zen

Contributor guide

Open the contributing guide

Research direction

Open class.jetpack.php at Jetpack::is_staging_site and inspect the $known_staging array. Review the linked SiteGround staging information and add the appropriate constant or URL so SiteGround staging sites are detected; confirm the change matches the staging-sites documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.