-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[CMSP-669] Update pantheon wp coding standards #25
Conversation
and add a PANTHEON_MU_PLUGIN_VERSION constant
Insecure Processing of Data (1)
More info on how to fix Insecure Processing of Data in PHP. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
🤦 this was meant to be a draft... |
Note to future selves: These lines in https://github.com/pantheon-systems/update-tool need to be updated to essentially mirror the |
Alternately, we could specify a tag/release in the git path https://github.com/pantheon-systems/update-tool/blob/master/update-tool.yml#L53 but that would require updating Update Tool manually whenever we push a new version of the mu plugin. |
and exclude it from release packages
|
||
Update Tool clones whatever the latest code on `main` is, and manually removes files that are not required for WordPress sites (e.g. `composer.json`, `composer.lock`, `README.md`, etc.). This is then bundled as part of WordPress releases and upstream updates. | ||
|
||
Because the WordPress upstream is only updated when a new WordPress release is cut, it's less risky that we don't have an explicit `develop` branch, but `main` should still always be in a stable state in the chance that a WordPress bugfix or security release is pushed unexpectedly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels better for readme than the workflow since it isn't actually a thing that happens, but that's a minor nitpick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but only contributors should really care about it. ¯_(ツ)_/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* Author: Pantheon | ||
* Author URI: https://pantheon.io/ | ||
* | ||
* @package pantheon | ||
*/ | ||
|
||
define( 'PANTHEON_MU_PLUGIN_VERSION', '1.2.0' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I would put this in README as well
- Why 1.2 and not 1.1 (I know this should have been incremented many times along the way)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I consider, since WPCS -> 3.0 is a big deal and we weren't linting at all previously, this to be a larger than patch update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this in README as well
@pwtyler you mean list the version number in the readme? that would be one more thing we need to update when we cut new releases.
Todo