Index: wp-admin/users.php
===================================================================
--- wp-admin/users.php	(revision 6979)
+++ wp-admin/users.php	(working copy)
@@ -320,8 +320,6 @@
 		<p><a href="users.php"><?php _e('&laquo; Back to All Users'); ?></a></p>
 	<?php endif; ?>
 
-<form action="" method="post" name="updateusers" id="updateusers">
-<?php wp_nonce_field('bulk-users') ?>
 <table class="widefat">
 <tbody>
 <tr class="thead">
Index: wp-admin/edit-comments.php
===================================================================
--- wp-admin/edit-comments.php	(revision 6979)
+++ wp-admin/edit-comments.php	(working copy)
@@ -96,6 +96,7 @@
 <input type="hidden" name="page" value="<?php echo $page; ?>" />
 <input type="hidden" name="s" value="<?php echo attribute_escape(@$_GET['s']); ?>" />
 <?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>
+</form>
 </div>
 <?php endif; // $extra_comments ?>
 
Index: wp-admin/includes/widgets.php
===================================================================
--- wp-admin/includes/widgets.php	(revision 6979)
+++ wp-admin/includes/widgets.php	(working copy)
@@ -124,7 +124,7 @@
 ?>
 
 		<ul class="widget-control-list">
-
+			<li />
 <?php
 	foreach ( $widgets as $key => $widget )
 		wp_widget_control( $key, $widget, $key == $edit_widget ? 'edit' : 'display' );
@@ -170,7 +170,7 @@
 
 				<?php else : ?>
 
-				<a class="widget-action widget-control-edit" href="<?php echo add_query_arg( array( 'edit' => $id_format, 'key' => $key ) ); ?>"><?php _e('Edit'); ?></a>
+				<a class="widget-action widget-control-edit" href="<?php echo clean_url( add_query_arg( array( 'edit' => $id_format, 'key' => $key ) ) ); ?>"><?php _e('Edit'); ?></a>
 
 				<?php endif; ?>
 
@@ -196,7 +196,7 @@
 
 					<?php endif; ?>
 
-					<a class="widget-action widget-control-remove delete alignright" href="<?php echo add_query_arg( array( 'remove' => $id_format, 'key' => $key ), wp_nonce_url( null, "remove-widget_$widget[id]" ) ); ?>"><?php _e('Remove'); ?></a>
+					<a class="widget-action widget-control-remove delete alignright" href="<?php echo clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key ), wp_nonce_url( null, "remove-widget_$widget[id]" ) ) ); ?>"><?php _e('Remove'); ?></a>
 					<br class="clear" />
 				</div>
 			</div>
Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 6979)
+++ wp-admin/includes/template.php	(working copy)
@@ -84,7 +84,7 @@
 		'<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' .
 		"<td>$edit</td>
 		<td>$category->description</td>
-		<td align='center'>$count</td>";
+		<td align='center'>$count</td></tr>";
 
 	return apply_filters( 'link_cat_row', $output );
 }
@@ -236,7 +236,7 @@
 		$out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>';
 		$out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
 		$out .= '<td><a href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '">' .
-			apply_filters( 'term_name', $tag->name ) . '</td>';
+			apply_filters( 'term_name', $tag->name ) . '</a></td>';
 
 		$out .= "<td>$count</td>";
 		$out .= '</tr>';
@@ -403,7 +403,7 @@
 		if ( empty($title) )
 			$title = __('(no title)');
 		?>
-		<td><strong><a href="page.php?action=edit&post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong>
+		<td><strong><a href="page.php?action=edit&amp;post=<?php the_ID(); ?>"><?php echo $pad; echo $title ?></a></strong>
 		<?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
 		<?php
 		break;
@@ -543,7 +543,7 @@
 		$short_url =  substr( $short_url, 0, 32 ).'...';
 	$numposts = get_usernumposts( $user_object->ID );
 	if ( current_user_can( 'edit_user', $user_object->ID ) ) {
-		$edit = add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" );
+		$edit = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=$user_object->ID" ) );
 		$edit = "<a href=\"$edit\">$user_object->user_login</a>";
 	} else {
 		$edit = $user_object->user_login;
@@ -616,15 +616,15 @@
 <?php
 if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
 	echo " <a href='comment.php?action=editcomment&amp;c=$id'>" .  __('Edit') . '</a>';
-	$url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) );
+	$url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "delete-comment_$id" ) );
 	echo " | <a href='$url' class='delete:the-comment-list:comment-$id'>" . __('Delete') . '</a> ';
 	if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
-		$url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$id", "unapprove-comment_$id" ) );
+		$url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "unapprove-comment_$id" ) );
 		echo "<span class='unapprove'> | <a href='$url' class='dim:the-comment-list:comment-$id:unapproved:FFFF33'>" . __('Unapprove') . '</a> </span>';
-		$url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$id", "approve-comment_$id" ) );
+		$url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&amp;p=$comment->comment_post_ID&amp;c=$id", "approve-comment_$id" ) );
 		echo "<span class='approve'> | <a href='$url' class='dim:the-comment-list:comment-$id:unapproved:33FF33:33FF33'>" . __('Approve') . '</a> </span>';
 	}
-	$url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$id", "delete-comment_$id" ) );
+	$url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&amp;dt=spam&amp;p=$comment->comment_post_ID&amp;c=$id", "delete-comment_$id" ) );
 	echo " | <a href='$url' class='delete:the-comment-list:comment-$id::spam=1'>" . __('Spam') . '</a> ';
 }
 if ( !is_single() ) {
Index: wp-admin/includes/media.php
===================================================================
--- wp-admin/includes/media.php	(revision 6979)
+++ wp-admin/includes/media.php	(working copy)
@@ -145,7 +145,7 @@
 	$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
 	$multimedia_upload_iframe_src = "media-upload.php?type=multimedia&amp;post_id=$uploading_iframe_ID";
 	$multimedia_upload_iframe_src = apply_filters('multimedia_upload_iframe_src', $multimedia_upload_iframe_src);
-	echo "<a href='$multimedia_upload_iframe_src&TB_iframe=true&height=500&width=640' class='button thickbox'>" . __('Add media'). '</a>';
+	echo "<a href='$multimedia_upload_iframe_src&amp;TB_iframe=true&amp;height=500&amp;width=640' class='button thickbox'>" . __('Add media'). '</a>';
 }
 add_action( 'media_buttons', 'media_buttons' );
 
Index: wp-admin/edit-post-rows.php
===================================================================
--- wp-admin/edit-post-rows.php	(revision 6979)
+++ wp-admin/edit-post-rows.php	(working copy)
@@ -68,7 +68,7 @@
 		if ( empty($title) )
 			$title = __('(no title)');
 		?>
-		<td><strong><a href="post.php?action=edit&post=<?php the_ID(); ?>"><?php echo $title ?></a></strong>
+		<td><strong><a href="post.php?action=edit&amp;post=<?php the_ID(); ?>"><?php echo $title ?></a></strong>
 		<?php if ('private' == $post->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
 		<?php
 		break;
Index: wp-admin/moderation.php
===================================================================
--- wp-admin/moderation.php	(revision 6979)
+++ wp-admin/moderation.php	(working copy)
@@ -171,9 +171,7 @@
 					| <?php _e( 'IP:' ); ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP(); ?>"><?php comment_author_IP(); ?></a>
 				</p>
 
-				<p>
-					<?php comment_text(); ?>
-				</p>
+				<?php comment_text(); ?>
 
 				<p>
 					<?php comment_date( __( 'M j, g:i A' ) ); ?>
@@ -237,4 +235,4 @@
 		</script>
 	</form>
 </div>
-<?php include_once './admin-footer.php'; ?>
\ No newline at end of file
+<?php include_once './admin-footer.php'; ?>
Index: wp-admin/edit-attachment-rows.php
===================================================================
--- wp-admin/edit-attachment-rows.php	(revision 6979)
+++ wp-admin/edit-attachment-rows.php	(working copy)
@@ -46,7 +46,7 @@
 
 	case 'media':
 		?>
-		<td><strong><a href="# TODO: upload.php?action=edit&post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br />
+		<td><strong><a href="# TODO: upload.php?action=edit&amp;post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br />
 		<?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?>
 		<?php do_action('manage_media_media_column', $post->ID); ?>
 		</td>
@@ -85,7 +85,7 @@
 		if ( empty($title) )
 			$title = __('(no title)');
 		?>
-		<td><strong><a href="post.php?action=edit&post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>
+		<td><strong><a href="post.php?action=edit&amp;post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>
 		<?php
 		break;
 
Index: wp-admin/options-discussion.php
===================================================================
--- wp-admin/options-discussion.php	(revision 6979)
+++ wp-admin/options-discussion.php	(working copy)
@@ -51,8 +51,7 @@
 <br />
 <label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label>
 <br />
-<label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label></li>
-</ul>
+<label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment') ?></label>
 </td>
 </tr>
 <tr valign="top">
Index: wp-admin/plugins.php
===================================================================
--- wp-admin/plugins.php	(revision 6979)
+++ wp-admin/plugins.php	(working copy)
@@ -152,6 +152,7 @@
 	<?php
 	} // endif active/inactive plugin check
 	?>
+	</td>
 </tr>
 
 </table>
Index: wp-admin/link-manager.php
===================================================================
--- wp-admin/link-manager.php	(revision 6979)
+++ wp-admin/link-manager.php	(working copy)
@@ -211,6 +211,10 @@
 ?>
 	</tbody>
 </table>
+
+<?php } else { ?>
+<p><?php _e('No links found.') ?></p>
+<?php } ?>
 </form>
 
 <div id="ajax-response"></div>
@@ -219,7 +223,6 @@
 <br style="clear:both;" />
 </div>
 
-<?php } ?>
 
 </div>
 
Index: wp-admin/widgets.php
===================================================================
--- wp-admin/widgets.php	(revision 6979)
+++ wp-admin/widgets.php	(working copy)
@@ -181,7 +181,7 @@
 	<h2><?php _e( 'Widgets' ); ?></h2>
 	<p id="widget-search">
 		<input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
-		<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" class="button" />
+		<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
 	</p>
 
 	<div class="widget-liquid-left-holder">
Index: wp-admin/options-permalink.php
===================================================================
--- wp-admin/options-permalink.php	(revision 6979)
+++ wp-admin/options-permalink.php	(working copy)
@@ -130,7 +130,7 @@
 <table class="niceblue">
 	<tr>
 		<th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>
-		<td><code><?php echo get_option('home'); ?>/?p=123</code></span></td>
+		<td><code><?php echo get_option('home'); ?>/?p=123</code></td>
 	</tr>
 	<tr>
 		<th><label><input name="selection" type="radio" value="<?php echo $structures[1]; ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Date and name based'); ?></label></th>
Index: wp-admin/options-writing.php
===================================================================
--- wp-admin/options-writing.php	(revision 6979)
+++ wp-admin/options-writing.php	(working copy)
@@ -76,7 +76,7 @@
 <label for="medium_size_w"><?php _e('Width'); ?></label>
 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
 <label for="medium_size_h"><?php _e('Height'); ?></label>
-<input name="medium_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
+<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
 </td>
 </tr>
 </table>
@@ -128,7 +128,7 @@
 
 <?php else : ?>
 
-	<p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog\'s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?>
+	<p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog\'s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?></p>
 
 <?php endif; ?>
 
Index: wp-admin/edit-pages.php
===================================================================
--- wp-admin/edit-pages.php	(revision 6979)
+++ wp-admin/edit-pages.php	(working copy)
@@ -53,7 +53,7 @@
 }
 
 ?>
-<script>
+<script type="text/javascript">
 /* <![CDATA[ */
 jQuery(function($){$('#the-list').wpList();});
 /* ]]> */
@@ -146,6 +146,7 @@
 <?php
 } else {
 ?>
+</form>
 <p><?php _e('No pages found.') ?></p>
 <?php
 } // end if ($posts)
