Changes from branches/2.3/wp-admin/includes/upload.php at r6234 to trunk/wp-admin/includes/upload.php at r5965
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upload.php
r6234 r5965 32 32 $src_base = str_replace($src, '', $src_base); 33 33 34 if ( !trim($post_title) )35 $post_title = basename($src);36 37 34 $r = ''; 38 35 … … 43 40 if ( $href ) 44 41 $r .= "</a>\n"; 45 $size = @filesize($filesystem_path); 46 if ( !empty($size) ) 47 $r .= "\t\t\t\t<span class='upload-file-size'>".size_format($size)."</span>\n"; 42 $r .= "\t\t\t\t<span class='upload-file-size'>".size_format(filesize($filesystem_path))."</span>\n"; 48 43 $r .= "\n\t\t<div class='upload-file-data'>\n\t\t\t<p>\n"; 49 44 $r .= "\t\t\t\t<input type='hidden' name='attachment-url-$id' id='attachment-url-$id' value='$src' />\n";
Note: See TracChangeset
for help on using the changeset viewer.