Make WordPress Core

Ticket #16970: 16970.patch

File 16970.patch, 1.6 KB (added by hakre, 14 years ago)

Deprecate wp_timezone_supported()

  • wp-includes/functions.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    40084008}
    40094009
    40104010/**
    4011  * Check for PHP timezone support
    4012  *
    4013  * @since 2.9.0
    4014  *
    4015  * @return bool
    4016  */
    4017 function wp_timezone_supported() {
    4018         $support = false;
    4019         if (
    4020                 function_exists( 'date_create' ) &&
    4021                 function_exists( 'date_default_timezone_set' ) &&
    4022                 function_exists( 'timezone_identifiers_list' ) &&
    4023                 function_exists( 'timezone_open' ) &&
    4024                 function_exists( 'timezone_offset_get' )
    4025         ) {
    4026                 $support = true;
    4027         }
    4028         return apply_filters( 'timezone_support', $support );
    4029 }
    4030 
    4031 /**
    40324011 * {@internal Missing Short Description}}
    40334012 *
    40344013 * @since 2.9.0
  • wp-includes/deprecated.php

     
    26022602        return true;
    26032603}
    26042604
     2605/**
     2606 * Check for PHP timezone support
     2607 *
     2608 * @since 2.9.0
     2609 * @deprecated 3.2
     2610 *
     2611 * @return bool
     2612 */
     2613function wp_timezone_supported() {
     2614        _deprecated_function( __FUNCTION__, '3.2' );
     2615        $support = false;
     2616        if (
     2617                function_exists( 'date_create' ) &&
     2618                function_exists( 'date_default_timezone_set' ) &&
     2619                function_exists( 'timezone_identifiers_list' ) &&
     2620                function_exists( 'timezone_open' ) &&
     2621                function_exists( 'timezone_offset_get' )
     2622        ) {
     2623                $support = true;
     2624        }
     2625        return apply_filters( 'timezone_support', $support );
     2626}
     2627