-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine minimum PHP version for WordPress core #9
Conversation
Sweet, can test when I get home later. @roots/everyone so I can merge this and it will only affect future releases. However, this runs the risk of pulling the rug out from some people. Consider:
Do we just recommend people fake it with composer.platform.php? https://getcomposer.org/doc/06-config.md#platform Is there some way we can get composer to show this recommendation? |
Question: Does this make old relreases immutable? Line 187 in 049d863
However, this is not ideal. The new Or, make this change and hope nobody installs - version_compare($version, '5.2', '<')
+ version_compare($version, '5.2.2', '<') |
Yep the updater script is idempotent cause of this line. We def want to avoid undefined behavior with cache status/hash collisions. |
This is a prototype: https://github.com/ItinerisLtd/roots-wordpress-announcement After a second thought, composer generate checksum of the zip file. As the zip file doesn't include However, we need to test what happen if we change Alternatively, we could require the composer plugin in |
This implementation breaks for non-stable versions, i.e: `beta` and `rc`. https://github.com/ItinerisLtd/wordpress/blob/1d34138b86fb5500480c97fba159b30afbe2a87d/src/MinPhpVersion.php would be a more robust alternative. However, it requires introducing `composer` to the build system. See: - https://wordpress.org/news/2019/04/minimum-php-version-update/ - http://displaywp.com/wordpress-minimum-php-version/
fc3e47f
to
c5f9edf
Compare
https://github.com/roots/wordpress-packager is taking care of this now and will be reflected in the new packages. |
This implementation breaks for non-stable versions, i.e:
beta
andrc
.https://github.com/ItinerisLtd/wordpress/blob/1d34138b86fb5500480c97fba159b30afbe2a87d/src/MinPhpVersion.php would be a more robust alternative.
However, it requires introducing
composer
to the build system.See: