Changeset 7160 for trunk/wp-admin/includes/media.php
- Timestamp:
- 03/05/2008 06:46:42 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/media.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r7151 r7160 271 271 if ( isset($_POST['insertonly']['align']) ) { 272 272 $align = attribute_escape($_POST['insertonly']['align']); 273 $class = " class='align -$align'";273 $class = " class='align$align'"; 274 274 } 275 275 $html = "<img src='$src' alt='$alt'$class />"; … … 603 603 foreach ( $attachments as $id => $attachment ) 604 604 if ( $item = get_media_item($id, isset($errors[$id]) ? $errors[$id] : null) ) 605 $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div id='media-upload-error-$id'></div>< span class='filename'></span><div class='progress'><div class='bar'></div></div>$item<div class='progress clickmask'></div>\n</div>";605 $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div id='media-upload-error-$id'></div><div class='filename'></div><div class='progress'><div class='bar'></div></div>$item<div class='progress clickmask'></div>\n</div>"; 606 606 607 607 return $output; … … 646 646 <a class='toggle describe-toggle-on' href='#'>$toggle_on</a> 647 647 <a class='toggle describe-toggle-off' href='#'>$toggle_off</a> 648 < span class='filename new'>$filename</span>648 <div class='filename new'>$filename</div> 649 649 <table class='slidetoggle describe $class'><tbody> 650 650 <tr> … … 731 731 } 732 732 733 function media_upload_header($title = false) { 734 if ( empty($title) ) 735 $title = __('Choose a File'); 733 function media_upload_header() { 736 734 ?> 737 735 <script type="text/javascript">post_id = <?php echo intval($_REQUEST['post_id']); ?>;</script> 738 736 <div id="media-upload-header"> 739 <h3><?php echo $title ?></h3>740 737 <?php the_media_upload_tabs(); ?> 741 738 </div> … … 857 854 858 855 function media_upload_gallery_form($errors) { 859 media_upload_header( __('Browse attached files'));856 media_upload_header(); 860 857 861 858 $post_id = intval($_REQUEST['post_id']); … … 895 892 global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types; 896 893 897 media_upload_header( __('Browse Media Library'));894 media_upload_header(); 898 895 899 896 $post_id = intval($_REQUEST['post_id']);
Note: See TracChangeset
for help on using the changeset viewer.