WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/15/2008 06:10:35 PM (13 years ago)
Author:
ryan
Message:

Unused var fixes. Props DD32. see #8220

File:
1 edited

Legend:

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

    r9699 r9716  
    263263
    264264    // Save the data
    265     $id = wp_insert_attachment($attachment, $file, $post_parent);
     265    $id = wp_insert_attachment($attachment, $file, $post_id);
    266266    if ( !is_wp_error($id) ) {
    267267        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
     
    906906
    907907    $edit_post = sanitize_post($post, 'edit');
    908     $file = wp_get_attachment_url($post->ID);
    909     $link = get_attachment_link($post->ID);
    910908
    911909    $form_fields = array(
     
    10201018        return false;
    10211019
    1022     $title_label = __('Title');
    1023     $description_label = __('Description');
    1024     $tags_label = __('Tags');
    1025 
    10261020    $toggle_on = __('Show');
    10271021    $toggle_off = __('Hide');
     
    10311025    $filename = basename($post->guid);
    10321026    $title = attribute_escape($post->post_title);
    1033     $description = attribute_escape($post->post_content);
     1027
    10341028    if ( $_tags = get_the_tags($attachment_id) ) {
    10351029        foreach ( $_tags as $tag )
Note: See TracChangeset for help on using the changeset viewer.