Populate the PHP version for sites without this property specified when loading site details from user data. The PHP version used for those sites is 8.0, as it was the default version used before https://github.com/Automattic/studio/pull/240 got merged.
Testing Instructions
New sites
Create a new site.
Go to the Settings tab.
Observe that the PHP version is 8.1.
Open WP admin and navigate to wp-admin/site-health.php?tab=debug.
Related to https://github.com/Automattic/studio/pull/240#issuecomment-2173667408 and https://github.com/Automattic/studio/pull/225.
Proposed Changes
8.0
, as it was the default version used before https://github.com/Automattic/studio/pull/240 got merged.Testing Instructions
New sites
8.1
.wp-admin/site-health.php?tab=debug
.8.1
.Old sites
~/Library/Application\ Support/Studio/appdata-v1.json
and removephpVersion
property from sites.8.0
.8.0
is selected.Pre-merge Checklist