Hardcode offset range since the step argument to range is PHP 5 only. fixes #6047

git-svn-id: http://svn.automattic.com/wordpress/trunk@7108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-29 19:00:52 +00:00
parent 03170d477f
commit 37c69acd2d
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ include('./admin-header.php');
<select name="gmt_offset">
<?php
$current_offset = get_option('gmt_offset');
foreach ( range(-12, 12, 0.5) as $offset ) {
$offset_range = array (-12, -11.5, -11, -10.5, -10, -9.5, -9, -8.5, -8, -7.5, -7, -6.5, -6, -5.5, -5, -4.5, -4, -3.5, -3, -2.5, -2, -1.5, -1, -0.5,
0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10, 10.5, 11, 11.5, 12);
foreach ( $offset_range as $offset ) {
if ( 0 < $offset )
$offset_name = '+' . $offset;
elseif ( 0 == $offset )