WordPress.org

Make WordPress Core

Ticket #8729: filter-core-update-locale.diff

File filter-core-update-locale.diff, 456 bytes (added by nbachiyski, 9 years ago)
  • wp-includes/update.php

     
    3030        if ( ! is_object($current) )
    3131                $current = new stdClass;
    3232
    33         $locale = get_locale();
     33        $locale = apply_filters( 'core_version_check_locale', get_locale() );
    3434        if (
    3535                isset( $current->last_checked ) &&
    3636                43200 > ( time() - $current->last_checked ) &&