From b195a159e1a33f7d99346589d8c9101f7031ce47 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Apr 2020 09:04:55 +0000 Subject: [PATCH] Coding Standards: Whitelist `date_default_timezone_set()` usage in `wp-settings.php`. See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@47552 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-settings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-settings.php b/src/wp-settings.php index a7b9251e88..663c7d8eb9 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -64,6 +64,7 @@ wp_initial_constants(); wp_register_fatal_error_handler(); // WordPress calculates offsets from UTC. +// phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set date_default_timezone_set( 'UTC' ); // Turn register_globals off.