Index: wp-admin/custom-header.php
===================================================================
--- wp-admin/custom-header.php	(revision 6360)
+++ wp-admin/custom-header.php	(working copy)
@@ -228,7 +228,7 @@
 
 		if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
 			set_theme_mod('header_image', clean_url($url));
-			$header = apply_filters('wp_create_file_in_uploads', $file, $id); // For replication
+			apply_filters('wp_create_file_in_uploads', $file, $id); // For replication
 			return $this->finished();
 		} elseif ( $width > HEADER_IMAGE_WIDTH ) {
 			$oitar = $width / HEADER_IMAGE_WIDTH;
Index: wp-admin/edit-link-form.php
===================================================================
--- wp-admin/edit-link-form.php	(revision 6360)
+++ wp-admin/edit-link-form.php	(working copy)
@@ -11,7 +11,7 @@
 	$nonce_action = 'add-bookmark';
 }
 
-function xfn_check($class, $value = '', $depreciated = null) {
+function xfn_check($class, $value = '', $deprecated = '') {
 	global $link;
 
 	$link_rel = $link->link_rel;
Index: wp-admin/includes/bookmark.php
===================================================================
--- wp-admin/includes/bookmark.php	(revision 6360)
+++ wp-admin/includes/bookmark.php	(working copy)
@@ -151,8 +151,6 @@
 }	// wp_set_link_cats()
 
 function wp_update_link($linkdata) {
-	global $wpdb;
-
 	$link_id = (int) $linkdata['link_id'];
 
 	$link = get_link($link_id, ARRAY_A);
Index: wp-admin/includes/image.php
===================================================================
--- wp-admin/includes/image.php	(revision 6360)
+++ wp-admin/includes/image.php	(working copy)
@@ -16,7 +16,7 @@
  * This function can handle most image file formats which PHP supports.
  * If PHP does not have the functionality to save in a file of the same format, the thumbnail will be created as a jpeg.
  */
-function wp_create_thumbnail( $file, $max_side, $depreciated = '' ) {
+function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
 	if ( ctype_digit( $file ) ) // Handle int as attachment ID
 		$file = get_attached_file( $file );
 
Index: wp-admin/includes/schema.php
===================================================================
--- wp-admin/includes/schema.php	(revision 6360)
+++ wp-admin/includes/schema.php	(working copy)
@@ -254,8 +254,6 @@
 }
 
 function populate_roles_160() {
-	global $wp_roles;
-
 	// Add roles
 	add_role('administrator', _c('Administrator|User role'));
 	add_role('editor', _c('Editor|User role'));
Index: wp-admin/includes/taxonomy.php
===================================================================
--- wp-admin/includes/taxonomy.php	(revision 6360)
+++ wp-admin/includes/taxonomy.php	(working copy)
@@ -40,8 +40,6 @@
 }
 
 function wp_delete_category($cat_ID) {
-	global $wpdb;
-
 	$cat_ID = (int) $cat_ID;
 	$default = get_option('default_category');
 
@@ -53,8 +51,6 @@
 }
 
 function wp_insert_category($catarr, $wp_error = false) {
-	global $wpdb;
-
 	extract($catarr, EXTR_SKIP);
 
 	if ( trim( $cat_name ) == '' )
@@ -95,8 +91,6 @@
 }
 
 function wp_update_category($catarr) {
-	global $wpdb;
-
 	$cat_ID = (int) $catarr['cat_ID'];
 
 	if ( $cat_ID == $catarr['category_parent'] )
@@ -119,8 +113,6 @@
 //
 
 function get_tags_to_edit( $post_id ) {
-	global $wpdb;
-
 	$post_id = (int) $post_id;
 	if ( !$post_id )
 		return false;
Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 6360)
+++ wp-admin/includes/template.php	(working copy)
@@ -124,7 +124,7 @@
 }
 
 function get_nested_categories( $default = 0, $parent = 0 ) {
-	global $post_ID, $wpdb, $checked_categories;
+	global $post_ID, $checked_categories;
 
 	if ( empty($checked_categories) ) {
 		if ( $post_ID ) {
@@ -226,7 +226,7 @@
 }
 
 function page_rows( $parent = 0, $level = 0, $pages = 0, $hierarchy = true ) {
-	global $wpdb, $class, $post;
+	global $class, $post;
 
 	if (!$pages )
 		$pages = get_pages( 'sort_column=menu_order' );
@@ -257,7 +257,8 @@
   </tr>
 
 <?php
-		if ( $hierarchy ) page_rows( $id, $level + 1, $pages );
+		if ( $hierarchy )
+			page_rows( $id, $level + 1, $pages );
 	}
 }
 
@@ -322,7 +323,7 @@
 }
 
 function _wp_comment_list_item( $id, $alt = 0 ) {
-	global $authordata, $comment, $wpdb;
+	global $authordata, $comment;
 	$comment =& get_comment( $id );
 	$id = (int) $comment->comment_ID;
 	$class = '';
@@ -367,7 +368,6 @@
 }
 
 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
-	global $wpdb;
 	if (!$categories )
 		$categories = get_categories( 'hide_empty=0' );
 
@@ -440,7 +440,6 @@
 	$r .= "\n\t\t<td align='center'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />";
 	$r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' ";
 	$r .= "class='delete:the-list:meta-{$entry['meta_id']} deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />";
-	$r .= "<input type='hidden' name='_ajax_nonce' value='$nonce' />";
 	$r .= "</td>\n\t</tr>";
 	return $r;
 }
Index: wp-admin/includes/upgrade.php
===================================================================
--- wp-admin/includes/upgrade.php	(revision 6360)
+++ wp-admin/includes/upgrade.php	(working copy)
@@ -6,7 +6,7 @@
 require_once(ABSPATH . 'wp-admin/includes/schema.php');
 
 if ( !function_exists('wp_install') ) :
-function wp_install($blog_title, $user_name, $user_email, $public, $meta='') {
+function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
 	global $wp_rewrite;
 
 	wp_check_mysql_version();
Index: wp-admin/includes/upload.php
===================================================================
--- wp-admin/includes/upload.php	(revision 6360)
+++ wp-admin/includes/upload.php	(working copy)
@@ -78,7 +78,7 @@
 }
 
 function wp_upload_view() {
-	global $style, $style;
+	global $style;
 	$id = get_the_ID();
 	$attachment_data = wp_get_attachment_metadata( $id );
 ?>
Index: wp-admin/install-helper.php
===================================================================
--- wp-admin/install-helper.php	(revision 6360)
+++ wp-admin/install-helper.php	(working copy)
@@ -16,7 +16,7 @@
 		}
 	}
 	//didn't find it try to create it.
-	$q = $wpdb->query($create_ddl);
+	$wpdb->query($create_ddl);
 	// we cannot directly tell that whether this succeeded!
 	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
 		if ($table == $table_name) {
@@ -41,7 +41,7 @@
 			}
 	}
 	//didn't find it try to create it.
-	$q = $wpdb->query($create_ddl);
+	$wpdb->query($create_ddl);
 	// we cannot directly tell that whether this succeeded!
 	foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
 		if ($column == $column_name) {
@@ -63,7 +63,7 @@
 	foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
 		if ($column == $column_name) {
 			//found it try to drop it.
-			$q = $wpdb->query($drop_ddl);
+			$wpdb->query($drop_ddl);
 			// we cannot directly tell that whether this succeeded!
 			foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
 				if ($column == $column_name) {

