-
Notifications
You must be signed in to change notification settings - Fork 360
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
Update "Supports PHP:" value for all themes #7785
Comments
I've restored |
@iamtakashi, do you have a sense of who/which team this issue would be assigned to now? @Automattic/fusion: Same question to you + how would you rate the priority of this now our minimum requirement on Dotcom is PHP 8.x? |
That's good to know. We'll make sure about the themes going forward. cc @beafialho @iamarinoh
Thanks for the ping. The decision that I know about is that; (pNEWy-i6e-p2#comment-57267)
|
Support References This comment is automatically generated. Please do not edit it.
|
@iamtakashi 👋 We currently support PHP 8.1, 8.2, 8.3 on WPcom. It's highly possible 8.1 will be deprecated next year. Question: What's the best way for us to loop in your team with the most up-to-date guidance? |
@Automattic/t-rex, based on Takashi's comment above, are you able to pick up all pre-2023 theme updates? |
Clarification: so far as I know a strict types declaration will trigger a warning, not an error. The impact is a lot of noisy messages, not a fatal error stopping the site from being displayed. This affects pre-2023 themes that were updated within roughly the last 12 months that are being used on non-dotcom site using a PHP version that was EOL by PHP six years ago, and widely EOL'd in linux distros more than four years ago. Unless there's something I'm missing, it seems like a very low priority for us.
I'd say pre-2023 theme updates in general is a marvel responsibility, certainly not just a t-rex one. I can add this specific issue to our backlog but I don't anticipate getting to it anytime soon. |
@inaikem Oh, should we add 8.2 as the minimum PHP version going forward?
I think a quick post on the themedevp2 should work 👍 |
@mikachan Since the author might not be able to reply here, I'm asking for your advice. I'm a little confused about the minimum version of PHP we need to state in our themes. Please advise. Thanks in advance, as always 🙇♂ |
👋 As it's the minimum version that needs to be updated, I believe it should be fine to update it to anything above For now, I think I'd recommend updating it to However, I'd also echo @dsas's comment here that I don't think this needs to be prioritised. Although, for new themes, I'd recommend using |
Understood. Thank you, @mikachan! |
|
We've been adding
declare( strict_types=1 );
to theme PHP files because of WP.com deploy requirements.This mode was added in PHP 7. Currently most (all?) themes in this repo declare "Support PHP: 5.x" in the style.css header.
We need to update this to correctly require PHP 7.0+, to indicate that themes may trigger errors if used with older PHP versions.
The text was updated successfully, but these errors were encountered: