diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-11 11:45:03 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-11 11:45:03 +0000 |
commit | 040b8591582940de99442bb1de04afdf9d3daf59 (patch) | |
tree | ceaa054562fa6089c307b48fc30e963eee357e73 /xmlrpc.php | |
parent | 91725f574d4fa83b30d8d7c2794e9f078628e6da (diff) | |
download | wordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.tar.gz wordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.tar.xz wordpress-mu-040b8591582940de99442bb1de04afdf9d3daf59.zip |
WP Merge to rev 4640
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@823 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
-rw-r--r-- | xmlrpc.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -882,7 +882,7 @@ class wp_xmlrpc_server extends IXR_Server { ); // Save the data $id = wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id ); - wp_update_attachment_metadata( $id, array() ); + wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) ); return apply_filters( 'wp_handle_upload', array( 'file' => $upload[ 'file' ], 'url' => $upload[ 'url' ], 'type' => $type ) ); } |