wpcs-docs
wpcs-docs copied to clipboard
Standardize the order of the rules in the handbook
Idea that Juliette sugessted in the PR was to standardize the order of certain parts of a rule in the handbook:
- CS rules
- Possible code samples
- Usage in Core (if needed)
- PHP feature info (if needed)
Also, the color of the boxes would be:
-
[info](blue) - for information about PHP features and how to use them. -
[alert](yellow) - for information on whether or not something can be used in WP Core. -
[warning](red) - for anything really problematic (like using the wp namespace prefix).