[wp-trac] [WordPress Trac] #16970: Remove PHP4 functionality from timezone selector code

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 26 01:02:17 UTC 2011


#16970: Remove PHP4 functionality from timezone selector code
----------------------------+---------------------------
 Reporter:  Viper007Bond    |       Owner:  Viper007Bond
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  3.2
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+---------------------------

Comment (by aaroncampbell):

 We were talking about this on IRC, so I thought I'd throw in my two cents:

 [http://us3.php.net/manual/en/datetime.installation.php The manual] says
 ''There is no installation needed to use these functions; they are part of
 the PHP core.'' And the most recently added was in 5.2.0, so there's just
 no need for `wp_timezone_supported()` anymore. I think it should just be
 deprecated and changed to return true (for plugins using it).  Obviously
 we should clean up core accordingly.

 For those that care, these are the functions that
 `wp_timezone_supported()` checks for:
 * [http://php.net/date_create date_create]
 * [http://php.net/date_default_timezone_set date_default_timezone_set]
 * [http://php.net/timezone_identifiers_list timezone_identifiers_list]
 * [http://php.net/timezone_open timezone_open]
 * [http://php.net/timezone_offset_get timezone_offset_get]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16970#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list