[wp-trac] [WordPress Trac] #10720: pre_option_gmt_offset is never applied

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 2 06:45:18 UTC 2009


#10720: pre_option_gmt_offset is never applied
------------------------------+---------------------------------------------
 Reporter:  johnjosephbachir  |       Owner:       
     Type:  defect (bug)      |      Status:  new  
 Priority:  normal            |   Milestone:  2.8.5
Component:  General           |     Version:  2.8.4
 Severity:  normal            |    Keywords:       
------------------------------+---------------------------------------------
 There is function added to the call stack for pre_option_gmt_offset, but
 the filter is never applied.

 in default-filters.php, line 210 (the very end of the file:

 {{{
 #!php
 <?
 add_filter('pre_option_gmt_offset','wp_timezone_override_offset');
 ?>
 }}}

 But pre_option_gmt_offset is never applied (a full-project search for that
 string only finds the above occurrence).

 It's also the same situation with update_option_start_of_week and
 update_option_gmt_offset in general-template.php, line 1166

 {{{
 #!php
 <?
 add_action( 'update_option_start_of_week', 'delete_get_calendar_cache' );
 add_action( 'update_option_gmt_offset', 'delete_get_calendar_cache' );
 ?>
 }}}

 (line 1168 is actually identical to 1166 -- see #10718)

 It seems like there must have been a code refactoring regarding the time
 settings, and these hooks either got renamed or removed?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10720>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list