Index: xmlrpc.php
===================================================================
--- xmlrpc.php	(revision 5871)
+++ xmlrpc.php	(working copy)
@@ -75,6 +75,7 @@
 	function wp_xmlrpc_server() {
 		$this->methods = array(
 			// WordPress API
+			'wp.getVersion'			=> 'this:wp_getVersion',
 			'wp.getPage'			=> 'this:wp_getPage',
 			'wp.getPages'			=> 'this:wp_getPages',
 			'wp.newPage'			=> 'this:wp_newPage',
@@ -171,6 +172,27 @@
 		}
 	}
 
+	function wp_getVersion($args){
+		$this->escape($args);
+		$branch = (string) $args;
+		if ($branch == "2.0"){
+			// Return the latest version in this branch
+			return "2.0.11";
+		} elseif ($branch == "2.1") {
+			// If the branch is unsupported return 0
+			return "0";
+		} elseif ($branch == "2.2") {
+			return "2.2.2";
+		} elseif ($branch == "0"){
+			// Client is actually asking for the very latest version
+			return "2.2.2";
+		} else {
+			// Client asked about a branch we know nothing about
+			// report as unsupported.
+			return "0";
+		}
+	}
+
 	/**
 	 * WordPress XML-RPC API
 	 * wp_getPage

