Provide the attachment_id of a media item in the XML-RPC call wp.getMediaItem.

Props skithund
Fixes #18683


git-svn-id: https://develop.svn.wordpress.org/trunk@19885 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joseph Scott 2012-02-08 23:32:25 +00:00
parent 08160dcccf
commit 0ae4ea81c1
1 changed files with 1 additions and 0 deletions

View File

@ -2260,6 +2260,7 @@ class wp_xmlrpc_server extends IXR_Server {
'caption' => $attachment->post_excerpt,
'description' => $attachment->post_content,
'metadata' => wp_get_attachment_metadata($attachment->ID),
'attachment_id' => (string) $attachment->ID
);
return $attachment_struct;