Automattic / studio

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.
https://developer.wordpress.com/studio/
GNU General Public License v2.0
138 stars 12 forks source link

Bump default PHP version to `8.1` #240

Closed fluiddot closed 1 week ago

fluiddot commented 2 weeks ago

Related to https://github.com/Automattic/studio/pull/225.

Proposed Changes

[!NOTE] Sites created before this change will have PHP version 8.0. This PR doesn't aim to migrate them to the new default value.

Testing Instructions

  1. Create a new site.
  2. Go to the Settings tab.
  3. Observe that the PHP version is 8.1.
  4. Open WP admin and navigate to wp-admin/site-health.php?tab=debug.
  5. Open the Server section.
  6. Observe that the PHP version is 8.1.

Pre-merge Checklist

fluiddot commented 1 week ago

@wojtekn spotted that this PR introduced a regression that affected https://github.com/Automattic/studio/pull/225. The issue is related to retrieving the PHP version for sites that don't have the PHP version persisted in user data.