mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-04-24 23:58:18 +08:00
Follow up on PR 1714 which fixed 1713. As per the discussion in 1731#discussion_r301840793. moving the check for use of the `date()` to the `TimezoneChange` sniff. As the `date` function group has not been in a released version (yet), we can still safely make this change without concerns about introducing breaking changes (error code change). As that sniff is not part of the `Core` ruleset, I'm explicitly adding this particular error code to the `Core` ruleset. Note: we may want to consider renaming this sniff as the name does not seem to be 100% correct anymore. Suggestions for a better name welcome. If we go down that road, I'd deprecate the `TimezoneChange` sniff to be removed in the next major release. |
||
|---|---|---|
| .. | ||
| ruleset.xml | ||