Changeset 4349 for trunk/wp-admin/upload-functions.php
- Timestamp:
- 10/06/2006 01:14:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-functions.php
r4348 r4349 13 13 14 14 $class = 'text'; 15 $thumb_src = '';16 15 $innerHTML = get_attachment_innerHTML( $id, false, $dims ); 17 16 if ( $image_src = strstr($innerHTML, 'src="') ) { 18 17 $image_src = explode('"', $image_src); 19 18 $image_src = $image_src[1]; 20 $thumb_src = wp_make_link_relative($image_src);21 19 $class = 'image'; 22 $innerHTML = ' ' . str_replace($image_src, $thumb_src, $innerHTML);20 $innerHTML = ' ' . $innerHTML; 23 21 } 24 25 $src = wp_make_link_relative( get_the_guid() );26 22 27 23 $r = ''; … … 34 30 $r .= "</a>\n"; 35 31 $r .= "\n\t\t<div class='upload-file-data'>\n\t\t\t<p>\n"; 36 $r .= "\t\t\t\t<input type='hidden' name='attachment-url-$id' id='attachment-url-$id' value=' $src' />\n";32 $r .= "\t\t\t\t<input type='hidden' name='attachment-url-$id' id='attachment-url-$id' value='" . get_the_guid() . "' />\n"; 37 33 38 34 if ( $image_src ) 39 $r .= "\t\t\t\t<input type='hidden' name='attachment-thumb-url-$id' id='attachment-thumb-url-$id' value='$ thumb_src' />\n";35 $r .= "\t\t\t\t<input type='hidden' name='attachment-thumb-url-$id' id='attachment-thumb-url-$id' value='$image_src' />\n"; 40 36 if ( isset($width) ) { 41 37 $r .= "\t\t\t\t<input type='hidden' name='attachment-width-$id' id='attachment-width-$id' value='$width' />\n"; … … 147 143 <?php wp_nonce_field( 'inlineuploading' ); ?> 148 144 <div class="submit"> 149 <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?> " />145 <input type="submit" value="<?php $id ? _e('Save') : _e('Upload'); ?> »" /> 150 146 <?php if ( $id ) : ?> 151 147 <input type="submit" name="delete" class="delete" value="<?php _e('Delete'); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.