Make WordPress Core


Ignore:
Timestamp:
11/12/2011 12:52:26 AM (14 years ago)
Author:
azaozz
Message:

Uploader: fix file-size-exceeded error handling, see #18206

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r19260 r19262  
    10641064    <a class='toggle describe-toggle-off' href='#'>$toggle_off</a>";
    10651065    } else {
    1066         $class = 'form-table';
     1066        $class = '';
    10671067        $toggle_links = '';
    10681068    }
     
    11091109        <tr valign='top'>
    11101110            <td class='A1B1' id='thumbnail-head-$post->ID'>
    1111             <p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' style='margin-top: 3px' /></a></p>
     1111            <p><a href='$attachment_url' target='_blank'><img class='thumbnail' src='$thumb_url' alt='' /></a></p>
    11121112            <p>$image_edit_button</p>
    11131113            </td>
     
    12681268    $upload_action_url = admin_url('async-upload.php');
    12691269    $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0;
     1270    $_type = isset($type) ? $type : '';
     1271    $_tab = isset($tab) ? $tab : '';
    12701272
    12711273    $upload_size_unit = $max_upload_size = wp_max_upload_size();
     
    13081310        "post_id" => $post_id,
    13091311        "_wpnonce" => wp_create_nonce('media-form'),
    1310         "type" => $type,
    1311         "tab" => $tab,
     1312        "type" => $_type,
     1313        "tab" => $_tab,
    13121314        "short" => "1",
    13131315);
Note: See TracChangeset for help on using the changeset viewer.