Make WordPress Core


Ignore:
Timestamp:
10/06/2006 01:14:47 AM (19 years ago)
Author:
matt
Message:

Some UI cleanups, changes, and various miscellany.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload-functions.php

    r4348 r4349  
    1313   
    1414    $class = 'text';
    15     $thumb_src = '';
    1615    $innerHTML = get_attachment_innerHTML( $id, false, $dims );
    1716    if ( $image_src = strstr($innerHTML, 'src="') ) {
    1817        $image_src = explode('"', $image_src);
    1918        $image_src = $image_src[1];
    20         $thumb_src = wp_make_link_relative($image_src);
    2119        $class = 'image';
    22         $innerHTML = ' ' . str_replace($image_src, $thumb_src, $innerHTML);
     20        $innerHTML = ' ' . $innerHTML;
    2321    }
    24 
    25     $src = wp_make_link_relative( get_the_guid() );
    2622
    2723    $r = '';
     
    3430        $r .= "</a>\n";
    3531    $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";
    3733
    3834    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";
    4036    if ( isset($width) ) {
    4137        $r .= "\t\t\t\t<input type='hidden' name='attachment-width-$id' id='attachment-width-$id' value='$width' />\n";
     
    147143                    <?php wp_nonce_field( 'inlineuploading' ); ?>
    148144                    <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'); ?> &raquo;" />
    150146<?php   if ( $id ) : ?>
    151147                        <input type="submit" name="delete" class="delete" value="<?php _e('Delete'); ?>" />
Note: See TracChangeset for help on using the changeset viewer.