From 78e62aa3e4eef1b898670f994b62aefbf728736d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 6 Apr 2020 09:06:12 +0000 Subject: [PATCH] Coding Standards: Whitelist `date_default_timezone_set()` usage in `wp-settings.php`. See #49542. Built from https://develop.svn.wordpress.org/trunk@47552 git-svn-id: http://core.svn.wordpress.org/trunk@47327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-settings.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 7fda8b0899..6f0ce4c766 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47551'; +$wp_version = '5.5-alpha-47552'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-settings.php b/wp-settings.php index a7b9251e88..663c7d8eb9 100644 --- a/wp-settings.php +++ b/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.