diff -r a4642baaf829 -r 4d4862461b8d web/wp-admin/media.php
--- a/web/wp-admin/media.php Tue Feb 02 14:45:47 2010 +0000
+++ b/web/wp-admin/media.php Tue Feb 02 15:44:16 2010 +0000
@@ -1,119 +1,124 @@
-
$message
\n";
-
-?>
-
-
-
-
+ID) ) wp_die( __('You attempted to edit an attachment that doesn’t exist. Perhaps it was deleted?') );
+ if ( $att->post_status == 'trash' ) wp_die( __('You can’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
+
+ add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
+
+ wp_enqueue_script( 'wp-ajax-response' );
+ wp_enqueue_script('image-edit');
+ wp_enqueue_style('imgareaselect');
+
+ require( 'admin-header.php' );
+
+ $parent_file = 'upload.php';
+ $message = '';
+ $class = '';
+ if ( isset($_GET['message']) ) {
+ switch ( $_GET['message'] ) :
+ case 'updated' :
+ $message = __('Media attachment updated.');
+ $class = 'updated fade';
+ break;
+ endswitch;
+ }
+ if ( $message )
+ echo "\n";
+
+?>
+
+
+
+