diff -x .svn -aruN 2.6.3.src/wp-admin/users.php 2.6.5.src/wp-admin/users.php
--- 2.6.3.src/wp-admin/users.php	2008-05-27 12:45:38.000000000 -0500
+++ 2.6.5.src/wp-admin/users.php	2008-11-20 11:26:45.000000000 -0600
@@ -128,6 +128,7 @@
 <?php
 	$go_delete = false;
 	foreach ( (array) $userids as $id ) {
+		$id = (int) $id;
 		$user = new WP_User($id);
 		if ( $id == $current_user->ID ) {
 			echo "<li>" . sprintf(__('ID #%1s: %2s <strong>The current user will not be deleted.</strong>'), $id, $user->user_login) . "</li>\n";
diff -x .svn -aruN 2.6.3.src/wp-content/plugins/akismet/akismet.php 2.6.5.src/wp-content/plugins/akismet/akismet.php
--- 2.6.3.src/wp-content/plugins/akismet/akismet.php	2008-10-17 02:58:49.000000000 -0500
+++ 2.6.5.src/wp-content/plugins/akismet/akismet.php	2008-11-05 13:41:07.000000000 -0600
@@ -702,11 +702,14 @@
 
 // WP 2.5+
 function akismet_rightnow() {
-	global $submenu;
-	if ( isset( $submenu['edit-comments.php'] ) )
-		$link = 'edit-comments.php';
+	global $submenu, $wp_db_version;
+
+	if ( 8645 < $wp_db_version  ) // 2.7
+		$link = 'edit-comments.php?comment_status=spam';
+	elseif ( isset( $submenu['edit-comments.php'] ) )
+		$link = 'edit-comments.php?page=akismet-admin';
 	else
-		$link = 'edit.php';
+		$link = 'edit.php?page=akismet-admin';
 
 	if ( $count = get_option('akismet_spam_count') ) {
 		$intro = sprintf( __ngettext(
@@ -723,9 +726,9 @@
 			'and there\'s <a href="%2$s">%1$s comment</a> in your spam queue right now.',
 			'and there are <a href="%2$s">%1$s comments</a> in your spam queue right now.',
 			$queue_count
-		), number_format_i18n( $queue_count ), clean_url("$link?page=akismet-admin") );
+		), number_format_i18n( $queue_count ), clean_url($link) );
 	} else {
-		$queue_text = sprintf( __( "but there's nothing in your <a href='%1\$s'>spam queue</a> at the moment." ), clean_url("$link?page=akismet-admin") );
+		$queue_text = sprintf( __( "but there's nothing in your <a href='%1\$s'>spam queue</a> at the moment." ), clean_url($link) );
 	}
 
 	$text = sprintf( _c( '%1$s %2$s|akismet_rightnow' ), $intro, $queue_text );
diff -x .svn -aruN 2.6.3.src/wp-includes/feed.php 2.6.5.src/wp-includes/feed.php
--- 2.6.3.src/wp-includes/feed.php	2008-07-03 10:22:59.000000000 -0500
+++ 2.6.5.src/wp-includes/feed.php	2008-11-18 17:06:42.000000000 -0600
@@ -495,10 +495,14 @@
  * @since 2.5
  */
 function self_link() {
-	echo 'http'
-		. ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://'
-		. $_SERVER['HTTP_HOST']
-		. wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1);
+	$host = @parse_url(get_option('home'));
+	$host = $host['host'];
+	echo clean_url( 
+		'http'
+		. ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://'
+		. $host
+		. stripslashes($_SERVER['REQUEST_URI'])
+		);
 }
 
 ?>
\ No newline at end of file
diff -x .svn -aruN 2.6.3.src/wp-includes/post.php 2.6.5.src/wp-includes/post.php
--- 2.6.3.src/wp-includes/post.php	2008-09-05 17:06:23.000000000 -0500
+++ 2.6.5.src/wp-includes/post.php	2008-11-17 15:43:24.000000000 -0600
@@ -549,7 +549,9 @@
 function delete_post_meta($post_id, $key, $value = '') {
 	global $wpdb;
 
-	$post_id = absint( $post_id );
+	// make sure meta is added to the post, not a revision
+	if ( $the_post = wp_is_post_revision($post_id) )
+		$post_id = $the_post;
 
 	// expected_slashed ($key, $value)
 	$key = stripslashes( $key );
@@ -630,6 +632,10 @@
 function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') {
 	global $wpdb;
 
+	// make sure meta is added to the post, not a revision
+	if ( $the_post = wp_is_post_revision($post_id) )
+		$post_id = $the_post;
+
 	// expected_slashed ($meta_key)
 	$meta_key = stripslashes($meta_key);
 
diff -x .svn -aruN 2.6.3.src/wp-includes/version.php 2.6.5.src/wp-includes/version.php
--- 2.6.3.src/wp-includes/version.php	2008-10-23 16:19:30.000000000 -0500
+++ 2.6.5.src/wp-includes/version.php	2008-11-25 10:54:54.000000000 -0600
@@ -8,7 +8,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '2.6.3';
+$wp_version = '2.6.5';
 
 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff -x .svn -aruN 2.6.3.src/xmlrpc.php 2.6.5.src/xmlrpc.php
--- 2.6.3.src/xmlrpc.php	2008-07-24 17:07:55.000000000 -0500
+++ 2.6.5.src/xmlrpc.php	2008-11-17 19:00:06.000000000 -0600
@@ -1343,7 +1343,7 @@
 
 		$actual_post = wp_get_single_post($post_ID,ARRAY_A);
 
-		if (!$actual_post) {
+		if (!$actual_post || $actual_post['post_type'] != 'post') {
 			return new IXR_Error(404, __('Sorry, no such post.'));
 		}
 
@@ -2366,7 +2366,7 @@
 
 		$actual_post = wp_get_single_post($post_ID, ARRAY_A);
 
-		if (!$actual_post) {
+		if (!$actual_post || $actual_post['post_type'] != 'post') {
 			return new IXR_Error(404, __('Sorry, no such post.'));
 		}
 
