Make WordPress Core


Ignore:
Timestamp:
08/26/2008 10:30:56 PM (16 years ago)
Author:
ryan
Message:

include mysql version in version check query string. Props andy. fixes #7600 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r8644 r8739  
    2424        return;
    2525
    26     global $wp_version;
     26    global $wp_version, $wpdb;
    2727    $php_version = phpversion();
    2828
     
    4141    $new_option->version_checked = $wp_version;
    4242
    43     $url = "http://api.wordpress.org/core/version-check/1.2/?version=$wp_version&php=$php_version&locale=$locale";
     43    if ( method_exists( $wpdb, 'db_version' ) )
     44        $mysql_version = preg_replace('/[^0-9.].*/', '', $wpdb->db_version($wpdb->users));
     45    else
     46        $mysql_version = 'N/A';
     47
     48    $url = "http://api.wordpress.org/core/version-check/1.2/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version";
    4449
    4550    $options = array('timeout' => 3);
Note: See TracChangeset for help on using the changeset viewer.