Index: wp-admin/edit.php
===================================================================
--- wp-admin/edit.php	(revision 19260)
+++ wp-admin/edit.php	(working copy)
@@ -9,17 +9,15 @@
 /** WordPress Administration Bootstrap */
 require_once( './admin.php' );
 
-if ( !isset($_GET['post_type']) )
-	$post_type = 'post';
-elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) )
-	$post_type = $_GET['post_type'];
-else
-	wp_die( __('Invalid post type') );
+if ( ! $typenow )
+	wp_die( __( 'Invalid post type' ) );
 
-$_GET['post_type'] = $post_type;
-
+$post_type = $typenow;
 $post_type_object = get_post_type_object( $post_type );
 
+if ( ! $post_type_object )
+	wp_die( __('Invalid post type') );
+
 if ( !current_user_can($post_type_object->cap->edit_posts) )
 	wp_die(__('Cheatin&#8217; uh?'));
 
