From 8fa4b51cb6880d99e469494b39617c806aec8a2f Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 25 Dec 2009 22:22:21 +0000 Subject: [PATCH] Media editing: When you have many custom taxonomies this page can get rather long, or just normally, so adding a "save" button to the top as well, for easy access. There was no place on this page that actually linked to the item being edited, so I hyperinked the thumbnail. git-svn-id: https://develop.svn.wordpress.org/trunk@12542 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/media.php | 26 +++++++++++++++----------- wp-admin/media.php | 4 ++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 1bfe3e2760..396d0d5972 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1201,6 +1201,8 @@ function get_media_item( $attachment_id, $args = null ) { $image_edit_button = " "; } + $attachment_url = get_permalink( $attachment_id ); + $item = " $type_html $toggle_links @@ -1209,7 +1211,9 @@ function get_media_item( $attachment_id, $args = null ) { - + @@ -1441,7 +1445,7 @@ SWFUpload.onload = function() {
- +

@@ -1452,7 +1456,7 @@ SWFUpload.onload = function() {

- +

@@ -1772,8 +1776,8 @@ jQuery(function($){
+ + " . __('File name:') . " $filename
" . __('File type:') . " $post->post_mime_type

- - + +

@@ -2000,11 +2004,11 @@ function type_url_form_image() { - + - + - + @@ -2015,15 +2019,15 @@ function type_url_form_image() {
- - + +

' . __('Enter a link URL or click above for presets.') . '

- + diff --git a/wp-admin/media.php b/wp-admin/media.php index 09776b4851..403b9eb166 100644 --- a/wp-admin/media.php +++ b/wp-admin/media.php @@ -90,6 +90,10 @@ case 'edit' :

+

+ +

+
false, 'send' => false, 'delete' => false, 'show_title' => false, 'errors' => $errors ) ); ?>