Make WordPress Core

Changeset 4628 for trunk/xmlrpc.php


Ignore:
Timestamp:
12/07/2006 10:42:22 PM (18 years ago)
Author:
ryan
Message:

Create attachment metadata for xmlrpc uploads. Props mdawaffe. fixes #3452

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r4612 r4628  
    873873        // Save the data
    874874        $id = wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id );
    875         wp_update_attachment_metadata( $id, array() );
     875        wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) );
    876876
    877877        return apply_filters( 'wp_handle_upload', array( 'file' => $upload[ 'file' ], 'url' => $upload[ 'url' ], 'type' => $type ) );
Note: See TracChangeset for help on using the changeset viewer.