Use http_build_query in the Core Update check to encode version numbers. Props kurtpayne. Fixes #18051
git-svn-id: http://svn.automattic.com/wordpress/trunk@18697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
053fb714ba
commit
b7080959f6
|
@ -57,8 +57,18 @@ function wp_version_check() {
|
|||
$wp_install = home_url( '/' );
|
||||
}
|
||||
|
||||
$local_package = isset( $wp_local_package )? $wp_local_package : '';
|
||||
$url = "http://api.wordpress.org/core/version-check/1.6/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package&blogs=$num_blogs&users={$user_count['total_users']}&multisite_enabled=$multisite_enabled";
|
||||
$query = array(
|
||||
'version' => $wp_version,
|
||||
'php' => $php_version,
|
||||
'locale' => $locale,
|
||||
'mysql' => $mysql_version,
|
||||
'local_package' => isset( $wp_local_package ) ? $wp_local_package : '',
|
||||
'blogs' => $num_blogs,
|
||||
'users' => $user_count['total_users'],
|
||||
'multisite_enabled' => $multisite_enabled
|
||||
);
|
||||
|
||||
$url = 'http://api.wordpress.org/core/version-check/1.6/?' . http_build_query( $query, null, '&' );
|
||||
|
||||
$options = array(
|
||||
'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3 ),
|
||||
|
|
Loading…
Reference in New Issue