#44590 closed defect (bug) (fixed)
Remove "// WPCS:" comments
| Reported by: | pento | Owned by: | pento |
|---|---|---|---|
| Priority: | low | Milestone: | 4.9.8 |
| Component: | Privacy | Version: | 4.9.6 |
| Severity: | trivial | Keywords: | good-first-bug has-patch commit fixed-major |
| Cc: | Focuses: |
Description
[42967] introduced some comments saying // WPCS: input var ok., which I guess someone's IDE decided to write to the file, instead of displaying in some ephemeral way.
Attachments (1)
Change History (8)
#1
@
8 years ago
- Keywords has-patch commit added; needs-patch removed
- Milestone Future Release → 4.9.8
Awesome, thanks for the patch, @burhandodhy!
This is ready to commit and backport.
#3
@
8 years ago
- Keywords fixed-major added
- Resolution fixed
- Status closed → reopened
Reopen for backport.
This ticket was mentioned in Slack in #core-coding-standards by garyj. View the logs.
8 years ago
#7
@
8 years ago
I suspect these crept in when someone tested the patch against the WPCS WordPress ruleset before submitting it.
For core patches, the phpcs.xml.dist ruleset in the WP root directory should be used instead. This custom ruleset is based on the WPCS WordPress-Core ruleset, which, for on the fly patch CS testing, could in most cases be used interchangably.
The WordPress-Core ruleset does not contain the sniffs for which these whitelist comments are applicable.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
" WPCS: input var ok." Removed