Changeset 19785
- Timestamp:
- 01/29/2012 08:04:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r19784 r19785 352 352 } 353 353 } 354 355 $timezone_string = ''; 356 $gmt_offset = 0; 357 /* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) 358 or a valid timezone string (America/New_York). See http://us3.php.net/manual/en/timezones.php 359 for all timezone strings supported by PHP. 360 */ 361 $offset_or_tz = __( '0', 'default GMT offset or timezone string' ); 362 if ( is_numeric( $offset_or_tz ) ) 363 $gmt_offset = $offset_or_tz; 364 elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list() ) ) 365 $timezone_string = $offset_or_tz; 354 366 355 367 $options = array( … … 400 412 'advanced_edit' => 0, 401 413 'comment_max_links' => 2, 402 'gmt_offset' => date('Z') / 3600,414 'gmt_offset' => $gmt_offset, 403 415 404 416 // 1.5 … … 466 478 467 479 // 2.8 468 'timezone_string' => '',480 'timezone_string' => $timezone_string, 469 481 470 482 // 2.9
Note: See TracChangeset
for help on using the changeset viewer.