<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[12543] trunk/wp-admin: More cleanup of the edit media screen:</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12543">12543</a></dd>
<dt>Author</dt> <dd>matt</dd>
<dt>Date</dt> <dd>2009-12-25 23:04:48 +0000 (Fri, 25 Dec 2009)</dd>
</dl>
<h3>Log Message</h3>
<pre>More cleanup of the edit media screen:
* Simplified table to not need rowspan, and other markup where possible.
* Put more elements in a paragraph tag for better spacing.
* Brought edit image buton under the image.
* Everything is now in line with WordPress Coding Standards, particularly with regards to spacing and attribute quotes.
* Minor styling for better alignment.
TODO: We show the file URL here, but for images we should show the URL to each size, with its dimensions.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesmediaphp">trunk/wp-admin/includes/media.php</a></li>
<li><a href="#trunkwpadminmediaphp">trunk/wp-admin/media.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/media.php (12542 => 12543)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/media.php        2009-12-25 22:22:21 UTC (rev 12542)
+++ trunk/wp-admin/includes/media.php        2009-12-25 23:04:48 UTC (rev 12543)
</span><span class="lines">@@ -1019,6 +1019,8 @@
</span><span class="cx">
</span><span class="cx">         $edit_post = sanitize_post($post, 'edit');
</span><span class="cx">
</span><ins>+        
+
</ins><span class="cx">         $form_fields = array(
</span><span class="cx">                 'post_title' => array(
</span><span class="cx">                         'label' => __('Title'),
</span><span class="lines">@@ -1131,7 +1133,7 @@
</span><span class="cx"> function get_media_item( $attachment_id, $args = null ) {
</span><span class="cx">         global $redir_tab;
</span><span class="cx">
</span><del>-        if ( ( $attachment_id = intval($attachment_id) ) && $thumb_url = get_attachment_icon_src( $attachment_id ) )
</del><ins>+        if ( ( $attachment_id = intval( $attachment_id ) ) && $thumb_url = get_attachment_icon_src( $attachment_id ) )
</ins><span class="cx">                 $thumb_url = $thumb_url[0];
</span><span class="cx">         else
</span><span class="cx">                 return false;
</span><span class="lines">@@ -1140,29 +1142,29 @@
</span><span class="cx">         $args = wp_parse_args( $args, $default_args );
</span><span class="cx">         extract( $args, EXTR_SKIP );
</span><span class="cx">
</span><del>-        $toggle_on = __('Show');
-        $toggle_off = __('Hide');
</del><ins>+        $toggle_on = __( 'Show' );
+        $toggle_off = __( 'Hide' );
</ins><span class="cx">
</span><del>-        $post = get_post($attachment_id);
</del><ins>+        $post = get_post( $attachment_id );
</ins><span class="cx">
</span><del>-        $filename = basename($post->guid);
-        $title = esc_attr($post->post_title);
</del><ins>+        $filename = basename( $post->guid );
+        $title = esc_attr( $post->post_title );
</ins><span class="cx">
</span><del>-        if ( $_tags = get_the_tags($attachment_id) ) {
</del><ins>+        if ( $_tags = get_the_tags( $attachment_id ) ) {
</ins><span class="cx">                 foreach ( $_tags as $tag )
</span><span class="cx">                         $tags[] = $tag->name;
</span><del>-                $tags = esc_attr(join(', ', $tags));
</del><ins>+                $tags = esc_attr( join( ', ', $tags ) );
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $post_mime_types = get_post_mime_types();
</span><del>-        $keys = array_keys(wp_match_mime_types(array_keys($post_mime_types), $post->post_mime_type));
-        $type = array_shift($keys);
</del><ins>+        $keys = array_keys( wp_match_mime_types( array_keys( $post_mime_types ), $post->post_mime_type ) );
+        $type = array_shift( $keys );
</ins><span class="cx">         $type_html = "<input type='hidden' id='type-of-$attachment_id' value='" . esc_attr( $type ) . "' />";
</span><span class="cx">
</span><del>-        $form_fields = get_attachment_fields_to_edit($post, $errors);
</del><ins>+        $form_fields = get_attachment_fields_to_edit( $post, $errors );
</ins><span class="cx">
</span><span class="cx">         if ( $toggle ) {
</span><del>-                $class = empty($errors) ? 'startclosed' : 'startopen';
</del><ins>+                $class = empty( $errors ) ? 'startclosed' : 'startopen';
</ins><span class="cx">                 $toggle_links = "
</span><span class="cx">         <a class='toggle describe-toggle-on' href='#'>$toggle_on</a>
</span><span class="cx">         <a class='toggle describe-toggle-off' href='#'>$toggle_off</a>";
</span><span class="lines">@@ -1172,33 +1174,33 @@
</span><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case
</span><del>-        $display_title = $show_title ? "<div class='filename new'><span class='title'>" . wp_html_excerpt($display_title, 60) . "</span></div>" : '';
</del><ins>+        $display_title = $show_title ? "<div class='filename new'><span class='title'>" . wp_html_excerpt( $display_title, 60 ) . "</span></div>" : '';
</ins><span class="cx">
</span><del>-        $gallery = ( (isset($_REQUEST['tab']) && 'gallery' == $_REQUEST['tab']) || (isset($redir_tab) && 'gallery' == $redir_tab) ) ? true : false;
</del><ins>+        $gallery = ( ( isset( $_REQUEST['tab'] ) && 'gallery' == $_REQUEST['tab'] ) || ( isset( $redir_tab ) && 'gallery' == $redir_tab ) ) ? true : false;
</ins><span class="cx">         $order = '';
</span><span class="cx">
</span><span class="cx">         foreach ( $form_fields as $key => $val ) {
</span><span class="cx">                 if ( 'menu_order' == $key ) {
</span><span class="cx">                         if ( $gallery )
</span><del>-                                $order = '<div class="menu_order"> <input class="menu_order_input" type="text" id="attachments['.$attachment_id.'][menu_order]" name="attachments['.$attachment_id.'][menu_order]" value="'.$val['value'].'" /></div>';
</del><ins>+                                $order = "<div class='menu_order'> <input class='menu_order_input' type='text' id='attachments[$attachment_id][menu_order]' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ). "' /></div>";
</ins><span class="cx">                         else
</span><del>-                                $order = '<input type="hidden" name="attachments['.$attachment_id.'][menu_order]" value="'.$val['value'].'" />';
</del><ins>+                                $order = "<input type='hidden' name='attachments[$attachment_id][menu_order]' value='" . esc_attr( $val['value'] ) . "' />";
</ins><span class="cx">
</span><del>-                        unset($form_fields['menu_order']);
</del><ins>+                        unset( $form_fields['menu_order'] );
</ins><span class="cx">                         break;
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $media_dims = '';
</span><del>-        $meta = wp_get_attachment_metadata($post->ID);
-        if ( is_array($meta) && array_key_exists('width', $meta) && array_key_exists('height', $meta) )
-                $media_dims .= "<span id='media-dims-{$post->ID}'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
-        $media_dims = apply_filters('media_meta', $media_dims, $post);
</del><ins>+        $meta = wp_get_attachment_metadata( $post->ID );
+        if ( is_array( $meta ) && array_key_exists( 'width', $meta ) && array_key_exists( 'height', $meta ) )
+                $media_dims .= "<span id='media-dims-$post->ID'>{$meta['width']}&nbsp;&times;&nbsp;{$meta['height']}</span> ";
+        $media_dims = apply_filters( 'media_meta', $media_dims, $post );
</ins><span class="cx">
</span><span class="cx">         $image_edit_button = '';
</span><del>-        if ( gd_edit_image_support($post->post_mime_type) ) {
-                $nonce = wp_create_nonce("image_editor-$post->ID");
-                $image_edit_button = "<input type='button' id='imgedit-open-btn-{$post->ID}' onclick='imageEdit.open($post->ID, \"$nonce\")' class='button' value='" . esc_attr__( 'Edit image' ) . "' /> <img src='images/wpspin_light.gif' class='imgedit-wait-spin' alt='' />";
</del><ins>+        if ( gd_edit_image_support( $post->post_mime_type ) ) {
+                $nonce = wp_create_nonce( "image_editor-$post->ID" );
+                $image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit image' ) . "' /> <img src='images/wpspin_light.gif' class='imgedit-wait-spin' alt='' />";
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         $attachment_url = get_permalink( $attachment_id );
</span><span class="lines">@@ -1210,20 +1212,23 @@
</span><span class="cx">         $display_title
</span><span class="cx">         <table class='slidetoggle describe $class'>
</span><span class="cx">                 <thead class='media-item-info' id='media-head-$post->ID'>
</span><del>-                <tr>
-                        <td class='A1B1' id='thumbnail-head-$post->ID' rowspan='5'>
-                        <a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a>
</del><ins>+                <tr valign='top'>
+                        <td class='A1B1' id='thumbnail-head-$post->ID'>
+                        <p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' style='margin-top: 3px' /></a></p>
+                        <p>$image_edit_button</p>
</ins><span class="cx">                         </td>
</span><del>-                        <td><strong>" . __('File name:') . "</strong> $filename</td>
-                </tr>
-                <tr><td><strong>" . __('File type:') . "</strong> $post->post_mime_type</td></tr>
-                <tr><td><strong>" . __('Upload date:') . "</strong> " . mysql2date( get_option('date_format'), $post->post_date ) . "</td></tr>\n";
</del><ins>+                        <td>
+                        <p><strong>" . __('File name:') . "</strong> $filename</p>
+                        <p><strong>" . __('File type:') . "</strong> $post->post_mime_type</p>
+                        <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( get_option('date_format'), $post->post_date ). '</p>';
+                        if ( !empty( $media_dims ) )
+                                $item .= "<p><strong>" . __('Dimensions:') . "</strong> $media_dims</p>\n";
+                        
+                        echo "</td></tr>\n";
</ins><span class="cx">
</span><del>-        if ( !empty($media_dims) )
-                $item .= "<tr><td><strong>" . __('Dimensions:') . "</strong> $media_dims</td></tr>\n";
</del><ins>+        
</ins><span class="cx">
</span><span class="cx">         $item .= "
</span><del>-                <tr><td class='A1B1'>$image_edit_button</td></tr>
</del><span class="cx">                 </thead>
</span><span class="cx">                 <tbody>
</span><span class="cx">                 <tr><td colspan='2' class='imgedit-response' id='imgedit-response-$post->ID'></td></tr>
</span><span class="lines">@@ -1238,13 +1243,18 @@
</span><span class="cx">
</span><span class="cx">         if ( $send )
</span><span class="cx">                 $send = "<input type='submit' class='button' name='send[$attachment_id]' value='" . esc_attr__( 'Insert into Post' ) . "' />";
</span><del>-        if ( $delete && current_user_can('delete_post', $attachment_id) ) {
</del><ins>+        if ( $delete && current_user_can( 'delete_post', $attachment_id ) ) {
</ins><span class="cx">                 if ( !EMPTY_TRASH_DAYS ) {
</span><del>-                        $delete = "<a href=\"" . wp_nonce_url("post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Delete Permanently') . "</a>";
</del><ins>+                        $delete = "<a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Delete Permanently' ) . '</a>';
</ins><span class="cx">                 } elseif ( !MEDIA_TRASH ) {
</span><del>-                        $delete = "<a href=\"#\" class=\"del-link\" onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __('Delete') . "</a> <div id=\"del_attachment_$attachment_id\" class=\"del-attachment\" style=\"display:none;\">" . sprintf(__("You are about to delete <strong>%s</strong>."), $filename) . " <a href=\"" . wp_nonce_url("post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"button\">" . __('Continue') . "</a> <a href=\"#\" class=\"button\" onclick=\"this.parentNode.style.display='none';return false;\">" . __('Cancel') . "</a></div>";
</del><ins>+                        $delete = "<a href='#' class='del-link' onclick=\"document.getElementById('del_attachment_$attachment_id').style.display='block';return false;\">" . __( 'Delete' ) . "</a>
+                         <div id='del_attachment_$attachment_id' class='del-attachment' style='display:none;'>" . sprintf( __( 'You are about to delete <strong>%s</strong>.' ), $filename ) . "
+                         <a href='" . wp_nonce_url( "post.php?action=delete&amp;post=$attachment_id", 'delete-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='button'>" . __( 'Continue' ) . "</a>
+                         <a href='#' class='button' onclick=\"this.parentNode.style.display='none';return false;\">" . __( 'Cancel' ) . "</a>
+                         </div>";
</ins><span class="cx">                 } else {
</span><del>-                        $delete = "<a href=\"" . wp_nonce_url("post.php?action=trash&amp;post=$attachment_id", 'trash-post_' . $attachment_id) . "\" id=\"del[$attachment_id]\" class=\"delete\">" . __('Move to Trash') . "</a> <a href=\"" . wp_nonce_url("post.php?action=untrash&amp;post=$attachment_id", 'untrash-post_' . $attachment_id) . "\" id=\"undo[$attachment_id]\" class=\"undo hidden\">" . __('Undo') . "</a>";
</del><ins>+                        $delete = "<a href='" . wp_nonce_url( "post.php?action=trash&amp;post=$attachment_id", 'trash-post_' . $attachment_id ) . "' id='del[$attachment_id]' class='delete'>" . __( 'Move to Trash' ) . "</a>
+                        <a href='" . wp_nonce_url( "post.php?action=untrash&amp;post=$attachment_id", 'untrash-post_' . $attachment_id ) . "' id='undo[$attachment_id]' class='undo hidden'>" . __( 'Undo' ) . "</a>";
</ins><span class="cx">                 }
</span><span class="cx">         } else {
</span><span class="cx">                 $delete = '';
</span><span class="lines">@@ -1259,8 +1269,8 @@
</span><span class="cx">         if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id )
</span><span class="cx">                 $thumbnail = "<a class='wp-post-thumbnail' id='wp-post-thumbnail-" . $attachment_id . "' href='#' onclick='WPSetAsThumbnail(\"$attachment_id\");return false;'>" . esc_html__( "Use as thumbnail" ) . "</a>";
</span><span class="cx">
</span><del>-        if ( ( $send || $thumbnail || $delete ) && !isset($form_fields['buttons']) )
-                $form_fields['buttons'] = array('tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>$send $thumbnail $delete</td></tr>\n");
</del><ins>+        if ( ( $send || $thumbnail || $delete ) && !isset( $form_fields['buttons'] ) )
+                $form_fields['buttons'] = array( 'tr' => "\t\t<tr class='submit'><td></td><td class='savesend'>$send $thumbnail $delete</td></tr>\n" );
</ins><span class="cx">
</span><span class="cx">         $hidden_fields = array();
</span><span class="cx">
</span><span class="lines">@@ -1268,12 +1278,12 @@
</span><span class="cx">                 if ( $id{0} == '_' )
</span><span class="cx">                         continue;
</span><span class="cx">
</span><del>-                if ( !empty($field['tr']) ) {
</del><ins>+                if ( !empty( $field['tr'] ) ) {
</ins><span class="cx">                         $item .= $field['tr'];
</span><span class="cx">                         continue;
</span><span class="cx">                 }
</span><span class="cx">
</span><del>-                $field = array_merge($defaults, $field);
</del><ins>+                $field = array_merge( $defaults, $field );
</ins><span class="cx">                 $name = "attachments[$attachment_id][$id]";
</span><span class="cx">
</span><span class="cx">                 if ( $field['input'] == 'hidden' ) {
</span><span class="lines">@@ -1281,30 +1291,30 @@
</span><span class="cx">                         continue;
</span><span class="cx">                 }
</span><span class="cx">
</span><del>-                $required = $field['required'] ? '<abbr title="required" class="required">*</abbr>' : '';
</del><ins>+                $required = $field['required'] ? '<abbr title="required" class="required">*</abbr>' : '';
</ins><span class="cx">                 $aria_required = $field['required'] ? " aria-required='true' " : '';
</span><span class="cx">                 $class = $id;
</span><span class="cx">                 $class .= $field['required'] ? ' form-required' : '';
</span><span class="cx">
</span><span class="cx">                 $item .= "\t\t<tr class='$class'>\n\t\t\t<th valign='top' scope='row' class='label'><label for='$name'><span class='alignleft'>{$field['label']}</span><span class='alignright'>$required</span><br class='clear' /></label></th>\n\t\t\t<td class='field'>";
</span><del>-                if ( !empty($field[$field['input']]) )
-                        $item .= $field[$field['input']];
</del><ins>+                if ( !empty( $field[ $field['input'] ] ) )
+                        $item .= $field[ $field['input'] ];
</ins><span class="cx">                 elseif ( $field['input'] == 'textarea' ) {
</span><del>-                        $item .= "<textarea type='text' id='$name' name='$name'" . $aria_required . ">" . esc_html( $field['value'] ) . "</textarea>";
</del><ins>+                        $item .= "<textarea type='text' id='$name' name='$name' $aria_required>" . esc_html( $field['value'] ) . '</textarea>';
</ins><span class="cx">                 } else {
</span><del>-                        $item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "'" . $aria_required . "/>";
</del><ins>+                        $item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "' $aria_required />";
</ins><span class="cx">                 }
</span><del>-                if ( !empty($field['helps']) )
-                        $item .= "<p class='help'>" . join( "</p>\n<p class='help'>", array_unique((array) $field['helps']) ) . '</p>';
</del><ins>+                if ( !empty( $field['helps'] ) )
+                        $item .= "<p class='help'>" . join( "</p>\n<p class='help'>", array_unique( (array) $field['helps'] ) ) . '</p>';
</ins><span class="cx">                 $item .= "</td>\n\t\t</tr>\n";
</span><span class="cx">
</span><span class="cx">                 $extra_rows = array();
</span><span class="cx">
</span><del>-                if ( !empty($field['errors']) )
-                        foreach ( array_unique((array) $field['errors']) as $error )
</del><ins>+                if ( !empty( $field['errors'] ) )
+                        foreach ( array_unique( (array) $field['errors'] ) as $error )
</ins><span class="cx">                                 $extra_rows['error'][] = $error;
</span><span class="cx">
</span><del>-                if ( !empty($field['extra_rows']) )
</del><ins>+                if ( !empty( $field['extra_rows'] ) )
</ins><span class="cx">                         foreach ( $field['extra_rows'] as $class => $rows )
</span><span class="cx">                                 foreach ( (array) $rows as $html )
</span><span class="cx">                                         $extra_rows[$class][] = $html;
</span><span class="lines">@@ -1314,7 +1324,7 @@
</span><span class="cx">                                 $item .= "\t\t<tr><td></td><td class='$class'>$html</td></tr>\n";
</span><span class="cx">         }
</span><span class="cx">
</span><del>-        if ( !empty($form_fields['_final']) )
</del><ins>+        if ( !empty( $form_fields['_final'] ) )
</ins><span class="cx">                 $item .= "\t\t<tr class='final'><td colspan='2'>{$form_fields['_final']}</td></tr>\n";
</span><span class="cx">         $item .= "\t</tbody>\n";
</span><span class="cx">         $item .= "\t</table>\n";
</span><span class="lines">@@ -1322,11 +1332,10 @@
</span><span class="cx">         foreach ( $hidden_fields as $name => $value )
</span><span class="cx">                 $item .= "\t<input type='hidden' name='$name' id='$name' value='" . esc_attr( $value ) . "' />\n";
</span><span class="cx">
</span><del>-        if ( $post->post_parent < 1 && isset($_REQUEST['post_id']) ) {
</del><ins>+        if ( $post->post_parent < 1 && isset( $_REQUEST['post_id'] ) ) {
</ins><span class="cx">                 $parent = (int) $_REQUEST['post_id'];
</span><span class="cx">                 $parent_name = "attachments[$attachment_id][post_parent]";
</span><del>-
-                $item .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='" . $parent . "' />\n";
</del><ins>+                $item .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='$parent' />\n";
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">         return $item;
</span></span></pre></div>
<a id="trunkwpadminmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/media.php (12542 => 12543)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/media.php        2009-12-25 22:22:21 UTC (rev 12542)
+++ trunk/wp-admin/media.php        2009-12-25 23:04:48 UTC (rev 12543)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx"> <h2><?php _e( 'Edit Media' ); ?></h2>
</span><span class="cx">
</span><span class="cx"> <form method="post" action="<?php echo esc_url( remove_query_arg( 'message' ) ); ?>" class="media-upload-form" id="media-single-form">
</span><del>-<p class="submit">
</del><ins>+<p class="submit" style="padding-bottom: 0;">
</ins><span class="cx"> <input type="submit" class="button-primary" name="save" value="<?php esc_attr_e('Update Media'); ?>" />
</span><span class="cx"> </p>
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>