mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
General: Fix some precision alignment formatting warnings.
The WPCS `WordPress.WhiteSpace.PrecisionAlignment` rule throws warnings for a bunch of code that will likely cause issues for `wpcbf`. Fixing these manually beforehand gives us better auto-fixed results later. See #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -380,10 +380,11 @@ function populate_options() {
|
||||
|
||||
$timezone_string = '';
|
||||
$gmt_offset = 0;
|
||||
/* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14)
|
||||
or a valid timezone string (America/New_York). See https://secure.php.net/manual/en/timezones.php
|
||||
for all timezone strings supported by PHP.
|
||||
*/
|
||||
/*
|
||||
* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14)
|
||||
* or a valid timezone string (America/New_York). See https://secure.php.net/manual/en/timezones.php
|
||||
* for all timezone strings supported by PHP.
|
||||
*/
|
||||
$offset_or_tz = _x( '0', 'default GMT offset or timezone string' );
|
||||
if ( is_numeric( $offset_or_tz ) )
|
||||
$gmt_offset = $offset_or_tz;
|
||||
|
||||
Reference in New Issue
Block a user