WordPress.org

Make WordPress Core

Ticket #3962: tz_filter.diff

File tz_filter.diff, 453 bytes (added by Otto42, 5 years ago)

Adds a filter to wp_timezone_supported output

  • wp-includes/functions.php

     
    30873087                && function_exists('timezone_open') 
    30883088                && function_exists('timezone_offset_get') 
    30893089                ) 
    3090                 return true; 
     3090                return apply_filters('timezone_support',true); 
    30913091 
    3092         return false; 
     3092        return apply_filters('timezone_support',false); 
    30933093} 
    30943094 
    30953095/**