WordPress-Coding-Standards/WordPress-Extra
jrfnl 3337752042 Move date function group from RestrictedPHPFunctions to TimezoneChange
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.
2019-09-12 06:27:42 +02:00
..
ruleset.xml Move date function group from RestrictedPHPFunctions to TimezoneChange 2019-09-12 06:27:42 +02:00