Skip to content

Commit 89d7b35

Browse files
authored
Merge pull request #453 from kevinfodness/hotfix/deprecated-timezone-sniff
Use new sniff WordPress.DateTime.RestrictedFunctions
2 parents 37c5059 + d8fbf90 commit 89d7b35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WordPressVIPMinimum/ruleset-test.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $args = array(
4141
_query_posts( 'posts_per_page=999' ); // Warning.
4242
$query_args['posts_per_page'] = 999; // Warning.
4343

44-
// WordPress.WP.TimezoneChange
44+
// WordPress.DateTime.RestrictedFunctions
4545
date_default_timezone_set( 'FooBar' ); // Error.
4646

4747
// WordPress.DB.PreparedSQL

WordPressVIPMinimum/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<rule ref="WordPress.PHP.IniSet"/>
2727
<rule ref="WordPress.WP.EnqueuedResources"/>
2828
<rule ref="WordPress.WP.PostsPerPage"/>
29-
<rule ref="WordPress.WP.TimezoneChange"/>
29+
<rule ref="WordPress.DateTime.RestrictedFunctions"/>
3030
<rule ref="WordPress.DB.PreparedSQL"/>
3131
<rule ref="WordPress.DB.DirectDatabaseQuery"/>
3232
<rule ref="WordPress.DB.SlowDBQuery"/>

0 commit comments

Comments
 (0)