Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The key change here is upgrading the version of the WordPress coding standards that we apply to the application. A lot changed when these standards hit the 3.x release, including support for PHP 8.x - so gettting everything in place caused follow-on changes to a handful of files.
As a side effect of this work, I've added PHP 8.3 to our list of tested language versions. It isn't clear to me yet whether we'll upgrade straight to 8.3 or not, but since it's ready we might as well check with it. When PHP 8.4 is out, we'll add that too.
To confirm these changes:
composer install
to get the new tooling in place locallycomposer security
, which should produce no errorscomposer lint
, which should take a few minutes and flag a fair number of known issues (sadly). The key outcome is that you see flagged code, not a failure of the tool to run.While the changes here won't affect how WordPress runs, I've set up a multidev on this branch to confirm that none of these changes will impact Pantheon's build workflow. You can confirm this multidev exists in the Pantheon dashboard (I don't like to link to multidevs since these pages get crawled)
Credit to @JPrevost for writing the original documentation page I'm including here. I tweaked the wording a bit and added some links, but he wrote this a year or so ago in a branch that never ended up merging.
Developer
Stylesheets
string incremented.
Secrets
Documentation
Accessibility
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Stakeholder approval
Dependencies
YES dependencies are updated (see composer.json and composer.lock)
Code Reviewer
(not just this pull request message)