Make WordPress Core


Ignore:
Timestamp:
02/08/2012 11:32:25 PM (13 years ago)
Author:
josephscott
Message:

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

Props skithund
Fixes #18683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r19884 r19885  
    22612261            'description'           => $attachment->post_content,
    22622262            'metadata'              => wp_get_attachment_metadata($attachment->ID),
     2263            'attachment_id'         => (string) $attachment->ID
    22632264        );
    22642265
Note: See TracChangeset for help on using the changeset viewer.