WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.63k stars 249 forks source link

Reflect minimum supported PHP version with minified WordPress builds #1857

Open brandonpayton opened 5 days ago

brandonpayton commented 5 days ago

The wordpress-builds packages queries the latest WordPress versions from api.wordpress.org, and that API appears to include the minimum supported PHP version with each release.

For example:

{
    "response": "development",
    "download": "https:\/\/downloads.wordpress.org\/release\/wordpress-6.7-beta1.zip",
    "locale": "en_US",
    "packages": {
        "full": "https:\/\/downloads.wordpress.org\/release\/wordpress-6.7-beta1.zip",
        "no_content": false,
        "new_bundled": false,
        "partial": false,
        "rollback": false
    },
    "current": "6.7-beta1",
    "version": "6.7-beta1",
    "php_version": "7.2.24",
    "mysql_version": "5.5.5",
    "new_bundled": "6.4",
    "partial_version": false
}

Once we have this information, we have an opportunity to warn users about the selection of an unsupported WP + PHP version combo.

adamziel commented 5 days ago

I was thinking of ditching PHP 7.0 and 7.1 the moment they start throwing build errors.