Opened 13 years ago
Closed 10 years ago
#18684 closed enhancement (wontfix)
XMLRPC metaWeblog.newMediaObject doesn't have possibility for setting excerpt/content
Reported by: | skithund | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2.1 |
Component: | XML-RPC | Keywords: | has-patch |
Focuses: | Cc: |
Description
XMLRPC metaWeblog.newMediaObject method only sets empty content for attachment and doesn't have possibility for setting excerpt and/or content for attachments.
Attachments (2)
Change History (7)
#2
@
13 years ago
- Keywords dev-feedback added
I've uploaded a diff that uses 'content' and 'description' for the field names. Those are the labels WP shows in wp-admin and those are the field names that wp.getMediaItem uses to expose the same data.
I'd like to get some extra review on this though. We want to make sure these fields can't be used to inject bad things by people how shouldn't be able to do that sort of thing.
Note: See
TracTickets for help on using
tickets.
Add possibility for setting post_excerpt and post_content