function get_core_checksums( $version,
$locale ) { $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' .
http_build_query( compact( 'version', 'locale'
), '', '&'
);
$url =
$http_url;
$ssl =
wp_http_supports( array
( 'ssl'
) );
if ( $ssl ) { $url =
set_url_scheme( $url, 'https'
);
} $options = array
( 'timeout' =>
wp_doing_cron() ? 30 : 3,
);
$response =
wp_remote_get( $url,
$options );
if ( $ssl &&
is_wp_error( $response ) ) { trigger_error( sprintf( /* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.'
),
__( 'https://wordpress.org/support/forums/'
) ) . ' ' .
__( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)'
),