Make WordPress Core


Ignore:
Timestamp:
02/29/2008 07:00:52 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r7023 r7108  
    6060<?php
    6161$current_offset = get_option('gmt_offset');
    62 foreach ( range(-12, 12, 0.5) as $offset ) {
     62$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,
     63    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);
     64foreach ( $offset_range as $offset ) {
    6365    if ( 0 < $offset )
    6466        $offset_name = '+' . $offset;
Note: See TracChangeset for help on using the changeset viewer.